mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 15:27:18 +00:00
Move AudioTrack flush to cleanup() callback since all sample submission has ceased by then
This commit is contained in:
1 parent
07d04171c3
commit
15e856dccb
1 file changed
+5
-5
@@ -176,14 +176,14 @@ public class AndroidAudioRenderer implements AudioRenderer {
|
||||
public void start() {}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
// Immediately drop all pending data
|
||||
track.pause();
|
||||
track.flush();
|
||||
}
|
||||
public void stop() {}
|
||||
|
||||
@Override
|
||||
public void cleanup() {
|
||||
// Immediately drop all pending data
|
||||
track.pause();
|
||||
track.flush();
|
||||
|
||||
track.release();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user