aacdecoder-android-0.8 Exception when reading

aacdecoder-android-0.8 Exception when reading



I'm having a problem with the aacdecoder library on devices with Android 8. It works perfectly for a few minutes after the screen locks, approximately after 4 or 5 minutes playback stops.



The error thrown by the Android Studio console is the following:
E/BufferReader: Exception when reading: java.net.SocketException: Software caused connection abort



From what I could see, the problem is in the BufferReader.class file in this part of the code:


public void run()
Log.d(LOG, "run() started....");
int cap = this.capacity;
boolean var2 = false;

while(!this.stopped)
BufferReader.Buffer buffer = this.buffers[this.indexMine];
int total = 0;
if (cap != buffer.data.length)
Log.d(LOG, "run() capacity changed: " + buffer.data.length + " -> " + cap);
buffer = null;
this.buffers[this.indexMine] = null;
this.buffers[this.indexMine] = buffer = new BufferReader.Buffer(cap);


while(!this.stopped && total < cap)
try
int n = this.is.read(buffer.data, total, cap - total);
if (n == -1)
this.stopped = true;
else
total += n;

catch (IOException var8)
Log.e(LOG, "Exception when reading: " + var8);
this.stopped = true;



buffer.size = total;
synchronized(this)
this.notify();
int indexNew = (this.indexMine + 1) % this.buffers.length;

while(!this.stopped && indexNew == this.indexBlocked)
try
this.wait();
catch (InterruptedException var9)
;



this.indexMine = indexNew;
cap = this.capacity;



Log.d(LOG, "run() stopped.");



So far I have not been able to find the solution, I appreciate your help, thank you for your time!









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)