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 flags = 0
 One or more bit-masked enumeration values from audio::AudioSpecFlags.

Detailed Description

Definition at line 121 of file audio_defs.hpp.

Member Data Documentation

◆ engine

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

Definition at line 133 of file audio_defs.hpp.

◆ flags

uint32 nom::audio::AudioSpec::flags = 0

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

Definition at line 155 of file audio_defs.hpp.

◆ name

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

Definition at line 130 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 140 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 144 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 147 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 136 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 151 of file audio_defs.hpp.


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