Audaspace 1.9.0
A high level audio library.
Loading...
Searching...
No Matches
Echo.h
Go to the documentation of this file.
1#pragma once
2
8
9#include "fx/Effect.h"
10
12
13class AUD_API Echo : public Effect
14{
15private:
16 float m_delay; /* Delay time in seconds */
17 float m_feedback; /* Feedback amount */
18 float m_mix; /* Wet/dry mix */
19 bool m_resetBuffer; /* Whether to reset the delay buffer */
20
21public:
22 Echo(std::shared_ptr<ISound> sound, float delay, float feedback, float mix, bool resetBuffer = true);
23
24 virtual std::shared_ptr<IReader> createReader();
25};
26
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
The Effect class.
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.