@@ -760,7 +760,7 @@ Play_44_1_Silence(snd_pcm_t *pcm)
|
||||
throw Alsa::MakeError(err, "snd_pcm_prepare() failed");
|
||||
|
||||
AllocatedArray<int16_t> buffer{channels * period_size};
|
||||
std::fill(buffer.begin(), buffer.end(), 0);
|
||||
buffer = {};
|
||||
|
||||
/* play at least 250ms of silence */
|
||||
for (snd_pcm_uframes_t remaining_frames = rate / 4;;) {
|
||||
|
Reference in New Issue
Block a user