载入中...
搜索中...
未找到
Audio.cpp
浏览该文件的文档.
86 streamSources.erase(std::remove(streamSources.begin(), streamSources.end(), s), streamSources.end());
Definition Exception.h:14
virtual std::string getName() const =0
Definition StartupTiming.h:10
OpenAL audio module: device management, master listener state, and Source factory....
Definition Audio.h:27
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
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
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
void registerAudioCapabilities()
Definition AudioCapabilities.cpp:26
Definition Build.cpp:11