Audaspace  1.9.0
A high level audio library.
Echo.h
Go to the documentation of this file.
1 #pragma once
2 
9 #include "fx/Effect.h"
10 
12 
13 class AUD_API Echo : public Effect
14 {
15 private:
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 
21 public:
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_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116
Definition: Echo.h:13
#define AUD_API
Used for exporting symbols in the shared library.
Definition: Audaspace.h:93
The Effect class.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
virtual std::shared_ptr< IReader > createReader()=0
Creates a reader for playback of the sound source.
This sound is a base class for all effect factories that take one other sound as input.
Definition: Effect.h:33