Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::Audio Namespace Reference

Handles all core audio functionality. More...

Classes

class  CAdpcmState
class  CAudioDecoderMp3
class  CAudioDecoderRawWav
class  CAudioDecoderWav
class  CAudioEmitter
 Audio emitter for playing and managing sound sources. More...
class  CAudioEngine
 The main audio engine singleton for managing audio playback and resources. More...
class  CAudioReader
 Audio reader for decoding audio data to raw PCM wave data. This class is intended for reading audio samples (e.g., for analysis, visualization, or custom processing) and does not support direct playback. More...
class  CDriverNull
class  CFileStream
 Standard file stream implementation using C stdio (fopen). More...
class  CFileStreamCursor
 Stream cursor for standard file access. More...
class  CMemoryStream
 Audio stream that reads from a memory buffer. More...
class  CMemoryStreamCursor
 Stream cursor for memory buffer access. More...
class  COnlineMemoryStream
 A thread-safe dynamic memory stream for online data (e.g. voice chat or network audio). New data can be uploaded at runtime while the cursor reads from it. More...
class  COnlineMemoryStreamCursor
 Stream cursor for dynamic/online memory streams. Supports trimming data from the start of the stream to save memory. More...
class  CSoundSource
class  CStreamFactory
 Default factory for creating audio streams (Memory, File, Online). More...
class  CWavSubDecoderIMAADPCM
class  CWavSubDecoderMSADPCM
class  CWavSubDecoderPCM
class  IAudioDecoder
class  ISoundDriver
class  ISoundSource
class  IStream
 Interface for an audio data stream (File, Memory, etc.). More...
class  IStreamCursor
 Interface for a stream cursor, providing seek and read operations on an audio stream. More...
class  IStreamFactory
 Interface for stream factories. Register a custom factory to CAudioEngine to support different data sources (e.g. ZIP, Network). More...
class  IWavSubDecoder
struct  SChunkHeader
struct  SDataHeader
struct  SDataNode
struct  SDriverBuffer
struct  SFactHeader
struct  SFmtExtendedInfos
struct  SFormatHeader
struct  SListener
struct  SMsAdpcmState
struct  SRiffHeader
struct  SSourceParam
struct  STrackParams
struct  SVector3
struct  SWaveChunk

Enumerations

enum  EStatus { Failed = 0 , Success , WaitData , EndStream }
enum  ECompressionCode {
  CompressUnknown = 0x0000 , CompressPCM = 0x0001 , CompressMSADPCM = 0x0002 , CompressITUG_711_A_LAW = 0x0006 ,
  CompressITUG_711_AMU_LAW = 0x0007 , CompressIMAADPCM = 0x0011 , CompressITUG_723_ADPCM = 0x0016 , CompressGSM_6_10 = 0x0031 ,
  CompressITUG_721_ADPCM = 0x0040 , CompressMPEG = 0x0050
}
enum  EChunkSize { ChunkHeaderSize = 8 , RiffChunkSize = 12 , FmtChunkSize = 24 , FactChunkSize = 12 }

Functions

void printLog (const char *fmt,...)
void initSkylichtAudio ()
 Initialize the Skylicht Audio system.
void releaseSkylichtAudio ()
 Release the Skylicht Audio system.
void updateSkylichtAudio ()
 Update the audio driver. Should be called every frame if multithreading is disabled.

Variables

const int Adaptive []
const int Adaptive16 []

Detailed Description

Handles all core audio functionality.

Variable Documentation

◆ Adaptive

const int Skylicht::Audio::Adaptive[]
Initial value:
=
{
230, 230, 230, 230, 307, 409, 512, 614,
768, 614, 512, 409, 307, 230, 230, 230
}

◆ Adaptive16

const int Skylicht::Audio::Adaptive16[]
Initial value:
=
{
230, 230, 230, 230, 307, 409, 512, 614,
768, 614, 512, 409, 307, 230, 230, 230
}