diff options
-rw-r--r-- | audio/out/ao_pulse.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c index 13813745f9..d553b6700c 100644 --- a/audio/out/ao_pulse.c +++ b/audio/out/ao_pulse.c @@ -431,8 +431,13 @@ static int init(struct ao *ao) goto unlock_and_fail; if (!set_format(ao, format)) { - MP_ERR(ao, "Invalid audio format\n"); - goto unlock_and_fail; + ao->channels = (struct mp_chmap) MP_CHMAP_INIT_STEREO; + ao->samplerate = 48000; + ao->format = AF_FORMAT_FLOAT; + if (!set_format(ao, format)) { + MP_ERR(ao, "Invalid audio format\n"); + goto unlock_and_fail; + } } if (!(priv->stream = pa_stream_new_extended(priv->context, "audio stream", |