Restart audio after ALSA stall.

This commit is contained in:
Robin E. R. Davies
2024-11-29 23:44:00 -05:00
parent 5544057393
commit 4a4bd12d38
11 changed files with 114 additions and 27 deletions
+4 -3
View File
@@ -38,7 +38,8 @@ namespace pipedal
EffectReplaced,
SetValue,
SetBypass,
AudioStopped,
//AudioStopped,
AudioTerminatedAbnormally, // specifically for an ALSA loss of connection.
SetVuSubscriptions,
FreeVuSubscriptions,
@@ -507,10 +508,10 @@ namespace pipedal
write(RingBufferCommand::ReplaceEffect, pedalboard);
}
void AudioStopped()
void AudioTerminatedAbnormally()
{
AudioStoppedBody body;
write(RingBufferCommand::AudioStopped, body);
write(RingBufferCommand::AudioTerminatedAbnormally, body);
}
void EffectReplaced(Lv2Pedalboard *pedalboard)