323324325326327328329330331
// Reverse the byte order if necessary: if( reverseBytes ) reverseBytes( outputBuffer, 0, frames * 4 ); // Wrap the data into a SoundBuffer: SoundBuffer buffer = new SoundBuffer( outputBuffer, myAudioFormat ); return buffer; }
387388389390391392393394395
// Reverse the byte order if necessary: if( reverseBytes ) reverseBytes( fullBuffer, 0, totalBytes ); // Wrap the data into a SoundBuffer: SoundBuffer buffer = new SoundBuffer( fullBuffer, myAudioFormat ); return buffer; }