载入中...
搜索中...
未找到
Audio.h
浏览该文件的文档.
Definition Module.h:43
OpenAL audio module: device management, master listener state, and Source factory....
Definition Audio.h:27
Module_REG(Audio)
Source * newSourceFromDecoder(sound::Decoder *decoder, std::string type)
Creates a Source from a decoder; type must be "static" or "stream".
Definition Audio.cpp:103
void unregisterSource(Source *s)
Internal: removes a source from all module tracking.
Definition Audio.cpp:84
void setVolume(float v)
Sets master volume (clamped to >= 0) applied to the OpenAL listener.
Definition Audio.cpp:163
void setVelocity(float x, float y, float z)
Sets the listener velocity (used by OpenAL doppler).
Definition Audio.cpp:170
void setPosition(float x, float y, float z)
Sets the listener position in world units.
Definition Audio.cpp:169
Source * newSourceFromData(Data *data, std::string type)
Creates a Source from raw encoded data; type must be "static" or "stream".
Definition Audio.cpp:125
Source * newSource(sound::SoundData *data)
Creates a static (non-streaming) Source from decoded sound data.
Definition Audio.cpp:96
void registerStream(Source *s)
Internal: registers a streaming source with the decode worker.
Definition Audio.cpp:79
void unregisterStream(Source *s)
Internal: removes a source from worker tracking.
Definition Audio.cpp:90
void setOrientation(float fx, float fy, float fz, float ux, float uy, float uz)
Sets the listener forward and up orientation vectors.
Definition Audio.cpp:171
void pump()
Advances streaming sources; call once per frame from the main thread.
Definition Audio.cpp:176
A playable audio source (static buffer or streaming decoder). Not thread-safe for playback control ex...
Definition Source.h:30
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