diff options
| author | 2019-09-03 22:30:20 -0400 | |
|---|---|---|
| committer | 2019-09-03 22:30:20 -0400 | |
| commit | b1ca56bed2eca5ee2b2f71ad8215fd19dddc26a4 (patch) | |
| tree | db822e1088d7d2bcaed983ff71140ac9fb4308b7 /src | |
| parent | service/audio/audren_u: Stub IAudioDevice::GetAudioDeviceOutputVolume (diff) | |
| download | yuzu-b1ca56bed2eca5ee2b2f71ad8215fd19dddc26a4.tar.gz yuzu-b1ca56bed2eca5ee2b2f71ad8215fd19dddc26a4.tar.xz yuzu-b1ca56bed2eca5ee2b2f71ad8215fd19dddc26a4.zip | |
Change u32 -> f32
Volume is a f32 value. (SwIPC describes it as a u32, but it is actually f32 as corroborated by switchbrew docs and SetAudioDeviceOutputVolume)
```cpp
const f32 volume = rp.Pop<f32>();
```
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 278332cfe..547dab26d 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp | |||
| @@ -256,7 +256,7 @@ private: | |||
| 256 | 256 | ||
| 257 | IPC::ResponseBuilder rb{ctx, 3}; | 257 | IPC::ResponseBuilder rb{ctx, 3}; |
| 258 | rb.Push(RESULT_SUCCESS); | 258 | rb.Push(RESULT_SUCCESS); |
| 259 | rb.Push<u32>(1); | 259 | rb.Push<f32>(1); |
| 260 | } | 260 | } |
| 261 | 261 | ||
| 262 | void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { | 262 | void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { |