selvinEduardo / 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 #303

Closed GoogleCodeExporter closed 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

GoogleCodeExporter commented 9 years ago
Right, maybe I should change the signature to record(Buffer ... samples) 
instead :) Thanks!

Original comment by samuel.a...@gmail.com on 13 Apr 2013 at 1:12

GoogleCodeExporter commented 9 years ago
I made the changes here:
http://code.google.com/p/javacv/source/detail?r=9fab7522f5904904eaec4744e7f99b7b
d8f48ac6
Let me know what you think! Thanks

Original comment by samuel.a...@gmail.com on 14 Apr 2013 at 12:15

GoogleCodeExporter commented 9 years ago
Fixed included in JavaCV 0.6, thanks again for reporting!

Original comment by samuel.a...@gmail.com on 16 Sep 2013 at 4:12