Commit 3f03852
Avoid calling audioTrack.play() on stopped AudioTrack
We already avoid calling pause() because it has no effect once
the AudioTrack is stopped. But still call play(), leaving the
platform AudioTrack in a strange perpetual playing state that
does not match our internal state tracking.
Also simplify the flow a bit by letting DefaultAudioSink decide
that by itself without going via return values from
AudioTrackPositionTracker.
PiperOrigin-RevId: 7841904181 parent 5e0dc3e commit 3f03852
File tree
2 files changed
+10
-13
lines changed- libraries/exoplayer/src/main/java/androidx/media3/exoplayer/audio
2 files changed
+10
-13
lines changedLines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 453 | + | |
| 454 | + | |
459 | 455 | | |
460 | 456 | | |
461 | 457 | | |
462 | 458 | | |
463 | 459 | | |
464 | | - | |
465 | 460 | | |
466 | 461 | | |
467 | | - | |
468 | | - | |
469 | 462 | | |
470 | 463 | | |
471 | 464 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
| |||
1599 | 1601 | | |
1600 | 1602 | | |
1601 | 1603 | | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
1605 | 1609 | | |
1606 | 1610 | | |
1607 | 1611 | | |
| |||
0 commit comments