|
|
| CAudioEmitter (IStream *stream, IAudioDecoder::EDecoderType type, ISoundDriver *driver) |
|
| CAudioEmitter (const char *file, bool cache, ISoundDriver *driver) |
| void | setName (const char *name) |
| | Set name for this emitter.
|
| const char * | getName () |
| | Get name of this emitter.
|
| IAudioDecoder::EDecoderType | getDecoderType () |
| | Get decoder type.
|
| IStream * | getStream () |
| | Get underlying stream.
|
| ISoundSource::ESourceState | getState () |
| | Get current state of the sound source.
|
|
void | initDefaultValue () |
| | Initialize default values for the emitter.
|
| bool | init () |
| | Initialize the emitter (streaming and decoding).
|
|
virtual void | update () |
| | Update the emitter state, handles decoding and streaming buffers. This is called automatically by CAudioEngine.
|
| virtual void | play (bool fromBegin=true) |
| | Start or resume playback.
|
|
virtual void | stop () |
| | Stop playback.
|
|
virtual void | pause () |
| | Pause playback.
|
|
virtual void | reset () |
| | Reset emitter state to Stopped.
|
|
virtual void | stopStream () |
| | Stop streaming and decoding.
|
| virtual void | seek (float time) |
| | Seek to a specific time in the audio.
|
| void | stopWithFade (float time) |
| | Stop playback with a fade-out effect.
|
| void | playWithFade (float gain, float time) |
| | Start playback with a fade-in effect.
|
| virtual void | setLoop (bool loop) |
| | Enable or disable looping.
|
| virtual bool | isLoop () |
| | Check if looping is enabled.
|
| virtual void | setPitch (float p) |
| | Set playback pitch.
|
| virtual float | getPitch () |
| | Get current playback pitch.
|
| virtual void | setGain (float g) |
| | Set playback volume (gain).
|
| virtual float | getGain () |
| | Get current playback volume (gain).
|
| bool | isPlaying () |
| | Check if the sound is currently playing.
|
| void | setPosition (float x, float y, float z) |
| | Set 3D position of the sound source.
|
| void | setRollOff (float rollOff) |
| | Set roll-off factor for 3D distance attenuation.
|
| float | getCurrentTime () |
| | Get current playback time in milliseconds.
|
| IAudioDecoder * | getDecoder () |
| | Get underlying audio decoder.
|
Audio emitter for playing and managing sound sources.
#include "SkylichtAudio.h"
if (sound) {
}
Audio emitter for playing and managing sound sources.
Definition CAudioEmitter.h:70
virtual void play(bool fromBegin=true)
Start or resume playback.
virtual void setGain(float g)
Set playback volume (gain).
virtual void setLoop(bool loop)
Enable or disable looping.
void stopWithFade(float time)
Stop playback with a fade-out effect.
void setPosition(float x, float y, float z)
Set 3D position of the sound source.
The main audio engine singleton for managing audio playback and resources.
Definition CAudioEngine.h:84
CAudioEmitter * createAudioEmitter(IStream *stream, IAudioDecoder::EDecoderType decode)
Create an audio emitter from a stream.
static CAudioEngine * getSoundEngine()
Get the singleton instance of the audio engine.
void initSkylichtAudio()
Initialize the Skylicht Audio system.