Pulse Audio:

Don't Open Audio Stream for Synthesized Digital Voice when using the -fA Analog Only Output Option;
This commit is contained in:
lwvmobile
2025-05-16 23:16:32 -04:00
parent 7c56fb836b
commit 3f0f675fd5

View File

@@ -75,7 +75,7 @@ void openPulseOutput(dsd_opts * opts)
pa_channel_map* fl = 0; //NULL and 0 are same in this context
pa_channel_map* ss = 0; //NULL and 0 are same in this context
if (opts->floating_point == 0)
if (opts->floating_point == 0 && opts->analog_only == 0)
{
opts->pulse_digi_dev_out = pa_simple_new(NULL, "DSD-FME", PA_STREAM_PLAYBACK, dev, opts->output_name, &tt, ss, NULL, &err);
@@ -89,7 +89,7 @@ void openPulseOutput(dsd_opts * opts)
}
}
if (opts->floating_point == 1)
if (opts->floating_point == 1 && opts->analog_only == 0)
{
opts->pulse_digi_dev_out = pa_simple_new(NULL, "DSD-FME", PA_STREAM_PLAYBACK, dev, opts->output_name, &ff, fl, NULL, &err);