소스 검색

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>();
```
Morph1984 6 년 전
부모
커밋
b1ca56bed2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/hle/service/audio/audren_u.cpp

+ 1 - 1
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) {