xajist / aacdecoder-android

GNU Lesser General Public License v3.0
0 stars 0 forks source link

Uncaught IllegalStateException when starting and stoping #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Call playAsync
2.Call stop
3.Call playAsync again with the same

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

There should not be any IllegalStateException with this kind of behavior

What version of the product are you using? On which device ?
android 4+ on several devices

What is the URL of the stream ?
AAC and MP3 streams

Please provide any additional information below. (the error log)

06-04 10:15:43.531: E/AudioTrack(8218): AudioFlinger could not create track, 
status: -12
06-04 10:15:43.531: E/AudioTrack-JNI(8218): Error initializing AudioTrack
06-04 10:15:43.531: E/android.media.AudioTrack(8218): Error code -20 when 
initializing AudioTrack.
06-04 10:15:43.531: E/PCMFeed(8218): error in playback feed: -3
06-04 10:15:43.541: E/BufferReader(8218): Exception when reading: 
java.net.SocketException: Socket closed
06-04 10:15:43.901: A/libc(8218): Fatal signal 11 (SIGSEGV) at 0x76652748 
(code=1), thread 8955 (Thread-5266)
06-04 10:15:43.911: E/AACPlayer(8218): playAsync():
06-04 10:15:43.911: E/AACPlayer(8218): java.lang.IllegalStateException
06-04 10:15:43.911: E/AACPlayer(8218):  at 
com.spoledge.aacdecoder.Decoder.start(Decoder.java:231)
06-04 10:15:43.911: E/AACPlayer(8218):  at 
com.spoledge.aacdecoder.AACPlayer.playImpl(AACPlayer.java:424)
06-04 10:15:43.911: E/AACPlayer(8218):  at 
com.spoledge.aacdecoder.AACPlayer.play(AACPlayer.java:386)
06-04 10:15:43.911: E/AACPlayer(8218):  at 
com.spoledge.aacdecoder.AACPlayer.play(AACPlayer.java:338)
06-04 10:15:43.911: E/AACPlayer(8218):  at 
com.spoledge.aacdecoder.AACPlayer$1.run(AACPlayer.java:296)
06-04 10:15:43.911: E/AACPlayer(8218):  at java.lang.Thread.run(Thread.java:841)

Link to the issue on stackoverflow : 
http://stackoverflow.com/questions/22220026/android-aacplayer-play-then-stop-the
n-play-again/24031178#24031178

Original issue reported on code.google.com by Julien.M...@gmail.com on 4 Jun 2014 at 8:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
hey, 

I got that issue.

To fix it, i did :

multiPlayer = new MultiPlayer(callback, 1500, 1500); --> not working

replace by : 

multiPlayer = new MultiPlayer(CALLBACK, 500, 500); --> working

hope that will be helpfull for you.

Original comment by sepasgr...@gmail.com on 13 Apr 2015 at 8:11