Cast &err into pa_simple_new on ALL calls to the function (missed a few in haste);

This commit is contained in:
lwvmobile 2024-05-08 09:33:38 -04:00
parent ef94b311fa
commit c07fa3a0bc
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ void openPulseOutput(dsd_opts * opts)
//reconfigured to open when using edacs or raw analog monitor so we can have a analog audio out that runs at 48k1 and not 8k1 float/short
if (opts->frame_provoice == 1 || opts->monitor_input_audio == 1)
opts->pulse_raw_dev_out = pa_simple_new(NULL, "DSD-FME3", PA_STREAM_PLAYBACK, NULL, "Analog", &ss, 0, NULL, NULL);
opts->pulse_raw_dev_out = pa_simple_new(NULL, "DSD-FME3", PA_STREAM_PLAYBACK, NULL, "Analog", &ss, 0, NULL, &err);
if (err < 0)
{
@ -69,7 +69,7 @@ void openPulseOutput(dsd_opts * opts)
pa_channel_map* ss = 0; //NULL and 0 are same in this context
if (opts->floating_point == 0)
opts->pulse_digi_dev_out = pa_simple_new(NULL, "DSD-FME", PA_STREAM_PLAYBACK, NULL, opts->output_name, &tt, ss, NULL, NULL);
opts->pulse_digi_dev_out = pa_simple_new(NULL, "DSD-FME", PA_STREAM_PLAYBACK, NULL, opts->output_name, &tt, ss, NULL, &err);
if (err < 0)
{
@ -79,7 +79,7 @@ void openPulseOutput(dsd_opts * opts)
if (opts->floating_point == 1)
{
opts->pulse_digi_dev_out = pa_simple_new(NULL, "DSD-FME", PA_STREAM_PLAYBACK, NULL, opts->output_name, &ff, fl, NULL, NULL);
opts->pulse_digi_dev_out = pa_simple_new(NULL, "DSD-FME", PA_STREAM_PLAYBACK, NULL, opts->output_name, &ff, fl, NULL, &err);
if (err < 0)
{
fprintf (stderr, "%s", pa_strerror(err));