fix: stop warning about a silent mic when the radio is streaming
The log read: recorder: the second audio source is silent — recording the radio alone recorder: no audio at all from "DAX Mic" after 3 s — nothing is streaming Both true, and together they read as a fault while the recording was going perfectly well — it was saved seconds later. On CW the mic channel legitimately delivers nothing; the mixer already said what it was doing about it. The watchdog now mentions the mic only when the radio is silent too, which is the case where the recording really is empty.
This commit is contained in:
@@ -225,8 +225,12 @@ func (r *Recorder) Start(fromDev, micDev string, prerollSec int) error {
|
|||||||
LogSink("recorder: no audio at all from %q after 3 s — the device opened but nothing is streaming", DeviceName(fromDev))
|
LogSink("recorder: no audio at all from %q after 3 s — the device opened but nothing is streaming", DeviceName(fromDev))
|
||||||
AlertSink("No audio from %s — nothing is being recorded", DeviceName(fromDev))
|
AlertSink("No audio from %s — nothing is being recorded", DeviceName(fromDev))
|
||||||
}
|
}
|
||||||
if twoSrc && bQuiet {
|
// The mic is only worth a warning when the RADIO is silent too. On CW the
|
||||||
LogSink("recorder: no audio at all from %q after 3 s — the device opened but nothing is streaming", DeviceName(micDev))
|
// mic channel legitimately delivers nothing, and the mixer has already
|
||||||
|
// said "recording the radio alone" — repeating it as an alarm made the log
|
||||||
|
// read as if something were broken while the recording was going fine.
|
||||||
|
if twoSrc && bQuiet && aQuiet {
|
||||||
|
LogSink("recorder: no audio at all from %q either", DeviceName(micDev))
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user