SoftSynthesizer: getChannels() and getVoiceStatus()

View: New views
1 Messages — Rating Filter:   Alert me  

SoftSynthesizer: getChannels() and getVoiceStatus()

by Alex Menkov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
_______________________________________________
audio-engine-dev mailing list
audio-engine-dev@...
http://mail.openjdk.java.net/mailman/listinfo/audio-engine-dev