Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ship/audio/NullAudioPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ void NullAudioPlayer::DoClose() {
}

int NullAudioPlayer::Buffered() {
return 0;
// Report the device as always full; it discards all audio, so returning the
// true count (0) makes the producer spin feeding it forever and hang.
return GetDesiredBuffered();
}

void NullAudioPlayer::DoPlay(const uint8_t* buf, size_t len) {
Expand Down
Loading