mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-18 14:29:57 +00:00
Move AudioTrack flush to cleanup() callback since all sample submission has ceased by then
This commit is contained in:
@@ -176,14 +176,14 @@ public class AndroidAudioRenderer implements AudioRenderer {
|
|||||||
public void start() {}
|
public void start() {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stop() {
|
public void stop() {}
|
||||||
// Immediately drop all pending data
|
|
||||||
track.pause();
|
|
||||||
track.flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void cleanup() {
|
public void cleanup() {
|
||||||
|
// Immediately drop all pending data
|
||||||
|
track.pause();
|
||||||
|
track.flush();
|
||||||
|
|
||||||
track.release();
|
track.release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user