예제 #1
0
        // SetAudioDeviceOutputVolume(f32 volume, buffer<bytes, 5> name)
        public ResultCode SetAudioDeviceOutputVolume(ServiceCtx context)
        {
            float volume = context.RequestData.ReadSingle();

            ulong position = context.Request.SendBuff[0].Position;
            ulong size     = context.Request.SendBuff[0].Size;

            string deviceName = MemoryHelper.ReadAsciiString(context.Memory, position, (long)size);

            return(_impl.SetAudioDeviceOutputVolume(deviceName, volume));
        }