Luanti 5.16.0-dev
Loading...
Searching...
No Matches
sound Namespace Reference

Namespaces

namespace  sound_manager_messages_to_mgr
namespace  sound_manager_messages_to_proxy

Classes

struct  ALExtensions
 Struct for AL and ALC extensions. More...
struct  RAIIALSoundBuffer
 RAII wrapper for openal sound buffers. More...
struct  OggVorbisBufferSource
 For vorbisfile to read from our buffer instead of from a file. More...
struct  OggFileDecodeInfo
 Metadata of an Ogg-Vorbis file, used for decoding. More...
struct  RAIIOggFile
 RAII wrapper for OggVorbis_File. More...
class  PlayingSound
 A sound that is currently played. More...
class  ProxySoundManager
struct  ISoundDataOpen
 Stores sound pcm data buffers. More...
struct  ISoundDataUnopen
 Will be opened lazily when first used. More...
struct  SoundDataUnopenBuffer
 Sound file is in a memory buffer. More...
struct  SoundDataUnopenFile
 Sound file is in file system. More...
struct  SoundDataOpenBuffer
 Non-streaming opened sound data. More...
struct  SoundDataOpenStream
 Streaming opened sound data. More...
class  OpenALSoundManager
class  SoundManagerSingleton
 Class for the openal device and context. More...

Typedefs

using SoundManagerMsgToMgr
using SoundManagerMsgToProxy

Functions

const char * getAlErrorString (ALenum err) noexcept
ALenum warn_if_al_error (const char *desc)
v3f swap_handedness (v3f v) noexcept
 Transforms vectors from a left-handed coordinate system to a right-handed one and vice-versa.

Variables

constexpr f32 REMOVE_DEAD_SOUNDS_INTERVAL = 2.0f
constexpr f32 SOUND_DURATION_MAX_SINGLE = 3.0f
constexpr f32 MIN_STREAM_BUFFER_LENGTH = 1.0f
constexpr f32 STREAM_BIGSTEP_TIME = 0.3f
constexpr f32 SOUNDTHREAD_DTIME = 0.016f

Typedef Documentation

◆ SoundManagerMsgToMgr

Initial value:
std::variant<
std::monostate,
>
Definition sound_manager_messages.h:22
Definition sound_manager_messages.h:27
Definition sound_manager_messages.h:21
Definition sound_manager_messages.h:20
Definition sound_manager_messages.h:14
Definition sound_manager_messages.h:25
Definition sound_manager_messages.h:24
Definition sound_manager_messages.h:30
Definition sound_manager_messages.h:15
Definition sound_manager_messages.h:18
Definition sound_manager_messages.h:26
Definition sound_manager_messages.h:17
Definition sound_manager_messages.h:28

◆ SoundManagerMsgToProxy

Function Documentation

◆ getAlErrorString()

const char * sound::getAlErrorString ( ALenum err)
inlinenoexcept

Referenced by sound::RAIIOggFile::loadBuffer(), and warn_if_al_error().

Here is the caller graph for this function:

◆ swap_handedness()

v3f sound::swap_handedness ( v3f v)
inlinenoexcept

Transforms vectors from a left-handed coordinate system to a right-handed one and vice-versa.

(Needed because Minetest uses a left-handed one and OpenAL a right-handed one.)

Referenced by sound::OpenALSoundManager::playSoundAt(), sound::OpenALSoundManager::updateListener(), and sound::OpenALSoundManager::updateSoundPosVel().

Here is the caller graph for this function:

◆ warn_if_al_error()

ALenum sound::warn_if_al_error ( const char * desc)
inline

References getAlErrorString(), and warningstream.

Referenced by sound::PlayingSound::PlayingSound(), sound::OpenALSoundManager::createPlayingSound(), sound::RAIIALSoundBuffer::reset(), sound::OpenALSoundManager::updateListener(), and sound::PlayingSound::updatePosVel().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MIN_STREAM_BUFFER_LENGTH

f32 sound::MIN_STREAM_BUFFER_LENGTH = 1.0f
constexpr

◆ REMOVE_DEAD_SOUNDS_INTERVAL

f32 sound::REMOVE_DEAD_SOUNDS_INTERVAL = 2.0f
constexpr

◆ SOUND_DURATION_MAX_SINGLE

f32 sound::SOUND_DURATION_MAX_SINGLE = 3.0f
constexpr

◆ SOUNDTHREAD_DTIME

f32 sound::SOUNDTHREAD_DTIME = 0.016f
constexpr

◆ STREAM_BIGSTEP_TIME

f32 sound::STREAM_BIGSTEP_TIME = 0.3f
constexpr