audout: Properly pass the aruid in audoutOpenAudioOut, fixes #197.

This commit is contained in:
yellows8 2020-08-21 13:32:31 -04:00
parent ac8ac4919e
commit cccef0c525
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -2,6 +2,7 @@
#include "service_guard.h"
#include "kernel/event.h"
#include "services/audout.h"
#include "services/applet.h"
#include "runtime/hosversion.h"
#define DEVICE_NAME_LENGTH 0x100
@ -142,8 +143,8 @@ Result audoutOpenAudioOut(const char *DeviceNameIn, char *DeviceNameOut, u32 Sam
const struct {
u32 sample_rate;
u32 channel_count;
u64 client_pid;
} in = { SampleRateIn, ChannelCountIn, 0 };
u64 AppletResourceUserId;
} in = { SampleRateIn, ChannelCountIn, appletGetAppletResourceUserId() };
struct {
u32 sample_rate;