rodrigoti / aacdecoder-android

Automatically exported from code.google.com/p/aacdecoder-android
GNU Lesser General Public License v3.0
0 stars 0 forks source link

decoder reaches end-of-file but playerStopped() callback never called. #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I don't know why it happens. We have a looping 32bit stream on the internet 
which we are using AAC decoder to play in our android app. Occationally the 
stream will just stop and this will be the output on logcat:

I/Decoder (  242): decode() detected end-of-file
D/AACPlayer(  242): play(): decoded 32768 samples
I/Decoder (  242): decode() detected end-of-file
D/AACPlayer(  242): play(): decoded 0 samples
D/dalvikvm(  242): +++ not scanning '/system/lib/libwebcore.so' for 
'nativeStop' (wrong CL)
D/dalvikvm(  242): +++ not scanning '/system/lib/libmedia_jni.so' for 
'nativeStop' (wrong CL)
D/dalvikvm(  242): +++ not scanning '/system/lib/libexif.so' for 'nativeStop' 
(wrong CL)
I/Decoder (  242): stop() stopping native decoder
I/AACPlayer(  242): play(): average decoding time: 478 ms
I/AACPlayer(  242): play(): average rate (samples/sec): audio=88200, 
decoding=127087, audio/decoding= 44 %  (the higher, the better; negative means 
that decoding is slower than needed by audio)
D/PCMFeed (  242): run() stopped.

What is the expected output? What do you see instead?

I would EXPECT the callback to call playerStopped(). Also as this is a looping 
stream there is no reason why it should stop. It would be good to potentially 
diagnose a problem and throw an exception in this case so that it can be error 
tracked.

What version of the product are you using? On which device ?

AAC Decoder 0.5.1 (compiled). Using this on the android emulator, google nexus 
s with ICS, android 2.3 and other various devices with similar android versions.

Please provide any additional information below.

Original issue reported on code.google.com by tclay...@gmail.com on 24 Jan 2012 at 9:56

GoogleCodeExporter commented 9 years ago
Please provide the URL of your stream.
Thanks.
Vaclav

Original comment by vbarta...@gmail.com on 28 Mar 2012 at 3:45