Commit 30dcfdd0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

MMDevice: only WASAPI lacks S/PDIF support so far (refs #6827)

parent 36f9c403
......@@ -939,10 +939,6 @@ static int Open(vlc_object_t *obj)
{
audio_output_t *aout = (audio_output_t *)obj;
if (!aout->b_force && var_InheritBool(aout, "spdif"))
/* Fallback to other plugin until pass-through is implemented */
return VLC_EGENERIC;
aout_sys_t *sys = malloc(sizeof (*sys));
if (unlikely(sys == NULL))
return VLC_ENOMEM;
......@@ -1047,7 +1043,7 @@ static void Close(vlc_object_t *obj)
vlc_module_begin()
set_shortname("MMDevice")
set_description(N_("Windows Multimedia Device output"))
set_capability("audio output", /*150*/0)
set_capability("audio output", 150)
#if VLC_WINSTORE_APP
/* Pointer to the activated AudioClient* */
add_integer("mmdevice-audioclient", 0x0, NULL, NULL, true);
......
......@@ -313,6 +313,10 @@ static unsigned vlc_CheckWaveOrder (const WAVEFORMATEX *restrict wf,
static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt,
const GUID *sid)
{
if (!s->b_force && var_InheritBool(s, "spdif"))
/* Fallback to other plugin until pass-through is implemented */
return E_NOTIMPL;
aout_stream_sys_t *sys = malloc(sizeof (*sys));
if (unlikely(sys == NULL))
return E_OUTOFMEMORY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment