mirror of
https://github.com/videolan/vlc.git
synced 2025-01-21 15:18:11 +08:00
mmdevice: IMMDevice is really only used in desktop builds
This commit is contained in:
parent
8d045bd84a
commit
9b5fbb1298
@ -74,10 +74,10 @@ static wchar_t default_device[1] = L"";
|
||||
struct aout_sys_t
|
||||
{
|
||||
aout_stream_t *stream; /**< Underlying audio output stream */
|
||||
IMMDevice *dev; /**< Selected output device, NULL if none */
|
||||
#if !VLC_WINSTORE_APP
|
||||
audio_output_t *aout;
|
||||
IMMDeviceEnumerator *it; /**< Device enumerator, NULL when exiting */
|
||||
IMMDevice *dev; /**< Selected output device, NULL if none */
|
||||
|
||||
struct IMMNotificationClient device_events;
|
||||
struct IAudioSessionEvents session_events;
|
||||
@ -874,7 +874,11 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
|
||||
if (unlikely(s == NULL))
|
||||
return -1;
|
||||
|
||||
#if !VLC_WINSTORE_APP
|
||||
s->owner.device = sys->dev;
|
||||
#else
|
||||
s->owner.device = sys->client;
|
||||
#endif
|
||||
s->owner.activate = ActivateDevice;
|
||||
|
||||
EnterMTA();
|
||||
|
Loading…
Reference in New Issue
Block a user