Skip to content

Commit

Permalink
3ds: add getMasterVolume/ChannelVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed Oct 5, 2023
1 parent 7aeb2ba commit d0fe402
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions platform/ctr/source/utilities/driver/dsp_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void DSP<Console::CTR>::SetMasterVolume(float volume)

float DSP<Console::CTR>::GetMasterVolume() const
{
return 1.0f;
return ndspGetMasterVol();
}

bool DSP<Console::CTR>::ChannelReset(size_t id, int channels, int bitDepth, int sampleRate)
Expand Down Expand Up @@ -80,7 +80,10 @@ void DSP<Console::CTR>::ChannelSetVolume(size_t id, float volume)

float DSP<Console::CTR>::ChannelGetVolume(size_t id) const
{
return 1.0f;
float mix[12] { 0.0f };
ndspChnGetMix(id, mix);

return mix[0];
}

size_t DSP<Console::CTR>::ChannelGetSampleOffset(size_t id) const
Expand Down

0 comments on commit d0fe402

Please sign in to comment.