[Audio-engine-dev] SoftSynthesizer: getChannels() and getVoiceStatus()

Alex Menkov alex.menkov at sun.com
Thu Feb 14 10:08:59 PST 2008


SoftSynthesizer.getChannels() returns internal channels array.
If somebody modify the array it may causes failures. It should return copy of 
the array.

SoftSynthesizer.getVoiceStatus() returns "internal" tempVoiceStatusArray array.
This may causes sharing violation. also it make impossible to do something like:
VoiceStatus[] voices1 = synth.getVoiceStatus();
<some actions>
VoiceStatus[] voices2 = synth.getVoiceStatus();
<compare voices1 & voices2 and do something if voices are changed>


Regards
Alex



More information about the audio-engine-dev mailing list