naev 0.12.5
LuaAudio_t Struct Reference
Collaboration diagram for LuaAudio_t:

Data Fields

char * name
int ok
LuaAudioType_t type
int nocleanup
ALuint source
ALuint slot
double volume
LuaBuffer_tbuf
SDL_mutex * lock
OggVorbis_File stream
vorbis_info * info
ALenum format
ALfloat rg_scale_factor
ALfloat rg_max_scale
ALuint stream_buffers [2]
int active
SDL_Thread * th
SDL_cond * cond

Detailed Description

Definition at line 27 of file nlua_audio.h.

Field Documentation

◆ active

int LuaAudio_t::active

Active buffer.

Definition at line 48 of file nlua_audio.h.

◆ buf

LuaBuffer_t* LuaAudio_t::buf

Shared buffer.

Definition at line 36 of file nlua_audio.h.

◆ cond

SDL_cond* LuaAudio_t::cond

For message passing.

Definition at line 50 of file nlua_audio.h.

◆ format

ALenum LuaAudio_t::format

Stream format.

Definition at line 43 of file nlua_audio.h.

◆ info

vorbis_info* LuaAudio_t::info

Information of the tream.

Definition at line 42 of file nlua_audio.h.

◆ lock

SDL_mutex* LuaAudio_t::lock

Lock for vorbis file stream. This should be locked only when stream is accessed and not while soundLock() is active.

Definition at line 39 of file nlua_audio.h.

◆ name

char* LuaAudio_t::name

Filename of the audio.

Definition at line 28 of file nlua_audio.h.

◆ nocleanup

int LuaAudio_t::nocleanup

No need to clean up this source.

Definition at line 31 of file nlua_audio.h.

◆ ok

int LuaAudio_t::ok

The source and audio is valid if ok==0.

Definition at line 29 of file nlua_audio.h.

◆ rg_max_scale

ALfloat LuaAudio_t::rg_max_scale

Replaygain maximum scale factor before clipping.

Definition at line 46 of file nlua_audio.h.

◆ rg_scale_factor

ALfloat LuaAudio_t::rg_scale_factor

Replaygain scale factor.

Definition at line 44 of file nlua_audio.h.

◆ slot

ALuint LuaAudio_t::slot

Effects.

Definition at line 33 of file nlua_audio.h.

◆ source

ALuint LuaAudio_t::source

Source to use.

Definition at line 32 of file nlua_audio.h.

◆ stream

OggVorbis_File LuaAudio_t::stream

Vorbis file stream.

Definition at line 41 of file nlua_audio.h.

◆ stream_buffers

ALuint LuaAudio_t::stream_buffers[2]

Double buffering for streaming.

Definition at line 47 of file nlua_audio.h.

◆ th

SDL_Thread* LuaAudio_t::th

Buffering thread.

Definition at line 49 of file nlua_audio.h.

◆ type

LuaAudioType_t LuaAudio_t::type

Type of audio.

Definition at line 30 of file nlua_audio.h.

◆ volume

double LuaAudio_t::volume

Volume setting.

Definition at line 34 of file nlua_audio.h.


The documentation for this struct was generated from the following file: