audio_core: Fix return value types and shift some error handling to library. (#1212)

This commit is contained in:
squidbus
2024-10-02 21:01:39 -07:00
committed by GitHub
parent 7e533ccf50
commit 388d717205
4 changed files with 32 additions and 38 deletions

View File

@@ -11,6 +11,10 @@ namespace Libraries::AudioOut {
constexpr int SCE_AUDIO_OUT_VOLUME_0DB = 32768; // max volume value
// main up to 8 ports, BGM 1 port, voice up to 4 ports,
// personal up to 4 ports, padspk up to 5 ports, aux 1 port
constexpr int SCE_AUDIO_OUT_NUM_PORTS = 22;
enum OrbisAudioOutPort {
ORBIS_AUDIO_OUT_PORT_TYPE_MAIN = 0,
ORBIS_AUDIO_OUT_PORT_TYPE_BGM = 1,