Fireset
Loading...
Searching...
No Matches
FsSound Struct Reference

Represents a loaded sound buffer. More...

#include <audio.h>

Public Attributes

int channels
int sampleRate
int bps
long frames
short * samples
ALenum format
ALuint buffer

Detailed Description

Represents a loaded sound buffer.

Contains audio data and OpenAL buffer information.

Member Data Documentation

◆ bps

int FsSound::bps

Bits per sample (usually 16)

◆ buffer

ALuint FsSound::buffer

OpenAL buffer handle

◆ channels

int FsSound::channels

Number of channels (1 = mono, 2 = stereo)

◆ format

ALenum FsSound::format

OpenAL format (AL_FORMAT_MONO16 or AL_FORMAT_STEREO16)

◆ frames

long FsSound::frames

Total number of frames

◆ sampleRate

int FsSound::sampleRate

Sample rate in Hz

◆ samples

short* FsSound::samples

Raw PCM samples


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