nomlib
Loading...
Searching...
No Matches
nom::audio::AudioSpec Struct Reference

Public Attributes

const char * name = nullptr
const char * engine = nullptr
int sample_rate = 44100
 The final output audio frequency, specified in Hertz (Hz).
int num_mono_sources = audio::TOTAL_NUM_MONO_SOURCES
 A request for a specific number of mono (one channel) sources to be allocated at the time of an audio context creation.
int num_stereo_sources = audio::TOTAL_NUM_STEREO_SOURCES
 A request for a specified number of stereo (two channel) sources to be allocated at the time of an audio context creation.
int refresh_rate = 0
 The update frequency, in Hertz (Hz), of audio context processing.
bool sync_context = false
 A request to the specified audio context that context processing occurs asynchronously where possible.
uint32 fmt_flags = 0
 One or more bit-masked enumeration values from audio::AudioSpecFlags. audio::AudioFormat.
uint32 ctx_flags = 0
uint32 ext_flags = 0

Detailed Description

Definition at line 122 of file audio_defs.hpp.

Member Data Documentation

◆ ctx_flags

uint32 nom::audio::AudioSpec::ctx_flags = 0

Definition at line 158 of file audio_defs.hpp.

◆ engine

const char* nom::audio::AudioSpec::engine = nullptr

Definition at line 134 of file audio_defs.hpp.

◆ ext_flags

uint32 nom::audio::AudioSpec::ext_flags = 0

Definition at line 159 of file audio_defs.hpp.

◆ fmt_flags

uint32 nom::audio::AudioSpec::fmt_flags = 0

One or more bit-masked enumeration values from audio::AudioSpecFlags. audio::AudioFormat.

Definition at line 157 of file audio_defs.hpp.

◆ name

const char* nom::audio::AudioSpec::name = nullptr

Definition at line 131 of file audio_defs.hpp.

◆ num_mono_sources

int nom::audio::AudioSpec::num_mono_sources = audio::TOTAL_NUM_MONO_SOURCES

A request for a specific number of mono (one channel) sources to be allocated at the time of an audio context creation.

Definition at line 141 of file audio_defs.hpp.

◆ num_stereo_sources

int nom::audio::AudioSpec::num_stereo_sources = audio::TOTAL_NUM_STEREO_SOURCES

A request for a specified number of stereo (two channel) sources to be allocated at the time of an audio context creation.

Definition at line 145 of file audio_defs.hpp.

◆ refresh_rate

int nom::audio::AudioSpec::refresh_rate = 0

The update frequency, in Hertz (Hz), of audio context processing.

Definition at line 148 of file audio_defs.hpp.

◆ sample_rate

int nom::audio::AudioSpec::sample_rate = 44100

The final output audio frequency, specified in Hertz (Hz).

Definition at line 137 of file audio_defs.hpp.

◆ sync_context

bool nom::audio::AudioSpec::sync_context = false

A request to the specified audio context that context processing occurs asynchronously where possible.

Definition at line 152 of file audio_defs.hpp.


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