载入中...
搜索中...
未找到
Source.h
浏览该文件的文档.
35 Source(Audio *audio, sound::Decoder *decoder, bool streaming, bool takeDecoderOwnership = false);
Object is the base class for all game objects. It provides reference counting and dirty flag for upda...
Definition Object.h:18
OpenAL audio module: device management, master listener state, and Source factory....
Definition Audio.h:27
A playable audio source (static buffer or streaming decoder). Not thread-safe for playback control ex...
Definition Source.h:30
void fillPendingFromDecoder()
Called by the Audio worker thread. Internally synchronized against concurrent decoder teardown (see d...
Definition Source.cpp:250
void setVelocity(float x, float y, float z)
Sets the source velocity (used by OpenAL doppler).
Definition Source.cpp:239
void setRelative(bool relative)
Makes the source ignore the listener position (head-relative).
Definition Source.cpp:241
void setPosition(float x, float y, float z)
Sets the source position in world units.
Definition Source.cpp:238
double getDuration() const
Total duration in seconds (0 for live/unbounded streams).
Definition Source.cpp:229
void setAttenuationDistances(float ref, float max)
Sets OpenAL reference and maximum attenuation distances.
Definition Source.cpp:244
bool seek(double seconds)
Seeks to a time in seconds; false when seeking is unsupported.
Definition Source.cpp:200
void setDirection(float x, float y, float z)
Sets the source directional cone orientation.
Definition Source.cpp:240
ref is a smart pointer that automatically calls ref() and unref() on the object. Type T must be a sub...
Definition Object.h:54
Streaming audio decoder (medialoader-backed). Owns the raw encoded bytes and decodes incrementally vi...
Definition Decoder.h:20
Raw PCM audio buffer with format metadata (samples/rate/bit depth/channels).
Definition SoundData.h:13
Definition Build.cpp:11