mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-05 02:48:29 -04:00
Rework ADSP into a wrapper for apps
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include "audio_core/common/common.h"
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace AudioCore::AudioRenderer {
|
||||
namespace AudioCore::Renderer {
|
||||
/**
|
||||
* Represents one channel for mixing a voice.
|
||||
*/
|
||||
@@ -35,4 +35,4 @@ public:
|
||||
bool in_use{};
|
||||
};
|
||||
|
||||
} // namespace AudioCore::AudioRenderer
|
||||
} // namespace AudioCore::Renderer
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "audio_core/renderer/voice/voice_context.h"
|
||||
#include "common/polyfill_ranges.h"
|
||||
|
||||
namespace AudioCore::AudioRenderer {
|
||||
namespace AudioCore::Renderer {
|
||||
|
||||
VoiceState& VoiceContext::GetDspSharedState(const u32 index) {
|
||||
if (index >= dsp_states.size()) {
|
||||
@@ -84,4 +84,4 @@ void VoiceContext::UpdateStateByDspShared() {
|
||||
std::memcpy(cpu_states.data(), dsp_states.data(), voice_count * sizeof(VoiceState));
|
||||
}
|
||||
|
||||
} // namespace AudioCore::AudioRenderer
|
||||
} // namespace AudioCore::Renderer
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "audio_core/renderer/voice/voice_state.h"
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace AudioCore::AudioRenderer {
|
||||
namespace AudioCore::Renderer {
|
||||
/**
|
||||
* Contains all voices, with utility functions for managing them.
|
||||
*/
|
||||
@@ -123,4 +123,4 @@ private:
|
||||
u32 active_count{};
|
||||
};
|
||||
|
||||
} // namespace AudioCore::AudioRenderer
|
||||
} // namespace AudioCore::Renderer
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "audio_core/renderer/voice/voice_info.h"
|
||||
#include "audio_core/renderer/voice/voice_state.h"
|
||||
|
||||
namespace AudioCore::AudioRenderer {
|
||||
namespace AudioCore::Renderer {
|
||||
|
||||
VoiceInfo::VoiceInfo() {
|
||||
Initialize();
|
||||
@@ -405,4 +405,4 @@ void VoiceInfo::ResetResources(VoiceContext& voice_context) const {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace AudioCore::AudioRenderer
|
||||
} // namespace AudioCore::Renderer
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "audio_core/renderer/memory/address_info.h"
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace AudioCore::AudioRenderer {
|
||||
namespace AudioCore::Renderer {
|
||||
class PoolMapper;
|
||||
class VoiceContext;
|
||||
struct VoiceState;
|
||||
@@ -377,4 +377,4 @@ public:
|
||||
u8 flush_buffer_count{};
|
||||
};
|
||||
|
||||
} // namespace AudioCore::AudioRenderer
|
||||
} // namespace AudioCore::Renderer
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "common/common_types.h"
|
||||
#include "common/fixed_point.h"
|
||||
|
||||
namespace AudioCore::AudioRenderer {
|
||||
namespace AudioCore::Renderer {
|
||||
/**
|
||||
* Holds a state for a voice. One is kept host-side, and one is used by the AudioRenderer,
|
||||
* host-side is updated on the next iteration.
|
||||
@@ -67,4 +67,4 @@ struct VoiceState {
|
||||
s32 loop_count;
|
||||
};
|
||||
|
||||
} // namespace AudioCore::AudioRenderer
|
||||
} // namespace AudioCore::Renderer
|
||||
|
||||
Reference in New Issue
Block a user