Skip to content
Snippets Groups Projects
Commit 5666d70c authored by Vincent Lucas's avatar Vincent Lucas
Browse files

Mac Core Audio: Stops the rendering process at most after 500 ms even if there...

Mac Core Audio: Stops the rendering process at most after 500 ms even if there is more data already buffered.
parent 508c257b
No related branches found
No related tags found
No related merge requests found
......@@ -468,7 +468,6 @@ public void stop()
long timeout = 500;
long startTime = System.currentTimeMillis();
long currentTime = startTime;
long startNbData = nbBufferData;
// Wait at most 500 ms to render the already received data.
while(nbBufferData > 0
&& (currentTime - startTime) < timeout)
......@@ -480,13 +479,7 @@ public void stop()
catch(InterruptedException ex)
{
}
currentTime = System.currentTimeMillis();
if(startNbData > nbBufferData)
{
startTime = currentTime;
startNbData = nbBufferData;
}
}
stopLock.lock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment