shaileshmulange / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

sample RecordActivity broken version 0.5 #304

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The Android RecordActivity is broken becouse the record method does not accept 
a single instance of ShortBuffer anymore in v0.5. This is needed for recoring 
audio.

The method record(Buffer) has been changed to record(Buffer[])

I've fixed this changing line 343:
recorder.record(ShortBuffer.wrap(audioData, 0, bufferReadResult));

To:
ShortBuffer[] bufferArray = new ShortBuffer[1];
bufferArray[0] = ShortBuffer.wrap(audioData, 0, bufferReadResult);
recorder.record(bufferArray)

Original issue reported on code.google.com by johannes...@gmail.com on 13 Apr 2013 at 12:25