mirror of https://github.com/lwvmobile/dsd-fme.git
Cast &err into pa_simple_new on ALL calls to the function (missed a few in haste);
This commit is contained in:
parent
ef94b311fa
commit
c07fa3a0bc
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue