mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-04 04:47:22 +12:00
HLE DSP: Track voice status better
This commit is contained in:
parent
43a1c89478
commit
37f9f5d894
2 changed files with 52 additions and 4 deletions
|
@ -8,6 +8,8 @@
|
|||
namespace Audio {
|
||||
struct DSPSource {
|
||||
std::array<float, 3> gain0, gain1, gain2;
|
||||
u16 syncCount;
|
||||
bool enabled;
|
||||
|
||||
// Audio buffer information
|
||||
// https://www.3dbrew.org/wiki/DSP_Memory_Region
|
||||
|
@ -86,6 +88,7 @@ namespace Audio {
|
|||
Audio::HLE::SharedMemory& readRegion() { return readRegionIndex() == 0 ? dspRam.region0 : dspRam.region1; }
|
||||
Audio::HLE::SharedMemory& writeRegion() { return readRegionIndex() == 0 ? dspRam.region1 : dspRam.region0; }
|
||||
|
||||
void updateSourceConfig(Source& source, HLE::SourceConfiguration::Configuration& config);
|
||||
void generateFrame(StereoFrame<s16>& frame);
|
||||
void outputFrame();
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue