audio: extract mix render block from update
This commit is contained in:
@@ -51,6 +51,7 @@ public:
|
||||
void SetSpeedOfSound(float metersPerSecond);
|
||||
float GetSpeedOfSound() const { return m_speedOfSound; }
|
||||
|
||||
void RenderAudio(float* buffer, uint32 frameCount, uint32 channels, uint32 sampleRate);
|
||||
void ProcessAudio(float* buffer, uint32 frameCount, uint32 channels);
|
||||
|
||||
void SetListenerTransform(const Math::Vector3& position, const Math::Quaternion& rotation);
|
||||
@@ -79,6 +80,7 @@ private:
|
||||
AudioSystem& operator=(const AudioSystem&) = delete;
|
||||
|
||||
void ProcessSource(Components::AudioSourceComponent* source, float* buffer, uint32 frameCount, uint32 channels, uint32 sampleRate);
|
||||
void RenderAudioBlock(uint32 frameCount, uint32 channels, uint32 sampleRate);
|
||||
|
||||
private:
|
||||
std::unique_ptr<IAudioBackend> m_backend;
|
||||
|
||||
Reference in New Issue
Block a user