diff options
author | Morph1984 <39850852+Morph1984@users.noreply.github.com> | 2019-09-03 22:30:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 22:30:20 -0400 |
commit | b1ca56bed2eca5ee2b2f71ad8215fd19dddc26a4 (patch) | |
tree | db822e1088d7d2bcaed983ff71140ac9fb4308b7 | |
parent | ba661c8d9a4f28976613223b0cc459da9e0e3436 (diff) |
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>();
```
-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: IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push<u32>(1); + rb.Push<f32>(1); } void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { |