RaylibAudio class

Inheritance

Constructors

RaylibAudio(Raylib rl)

Properties

hashCode int
The hash code for this object.
no setterinherited
rl Raylib
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

AttachAudioMixedProcessor(AudioCallbackC processor) → void
AttachAudioStreamProcessor(AudioStreamC stream, AudioCallbackC processor) → void
CloseAudioDevice() → void
debug(bool v) → void
Enables or disables debug logging for this module.
inherited
debugError(String message) → void
Logs message at error level if debug is enabled and message passes all filters.
inherited
debugFilter(bool filter(String)) → void
Adds a predicate that gates debug output. Only messages satisfying at least one filter are logged.
inherited
debugInfo(String message) → void
Logs message at info level if debug is enabled and message passes all filters.
inherited
debugTime(bool v) → void
Enables or disables per-call timing output alongside debug logs.
inherited
debugWarn(String message) → void
Logs message at warn level if debug is enabled and message passes all filters.
inherited
DetachAudioMixedProcessor(AudioCallbackC processor) → void
DetachAudioStreamProcessor(AudioStreamC stream, AudioCallbackC processor) → void
disableSync<T>(T f()) → T
Executes f with RaylibTempBase syncing temporarily disabled, restoring the previous sync state afterward.
inherited
dispose() → void
Calls all registered onDispose callbacks and clears them.
inherited
doLoad() → void
Ensures load is called exactly once, regardless of how many times doLoad is invoked.
inherited
ExportWave(WaveC wave, Pointer<Char> fileName) bool
ExportWaveAsCode(WaveC wave, Pointer<Char> fileName) bool
GetMasterVolume() double
GetMusicTimeLength(MusicC music) double
GetMusicTimePlayed(MusicC music) double
InitAudioDevice() → void
IsAudioDeviceReady() bool
IsAudioStreamPlaying(AudioStreamC stream) bool
IsAudioStreamProcessed(AudioStreamC stream) bool
IsAudioStreamValid(AudioStreamC stream) bool
IsMusicStreamPlaying(MusicC music) bool
IsMusicValid(MusicC music) bool
IsSoundPlaying(SoundC sound) bool
IsSoundValid(SoundC sound) bool
IsWaveValid(WaveC wave) bool
load() → void
Override to perform one-time module initialization. Called by doLoad.
inherited
LoadAudioStream(int sampleRate, int sampleSize, int channels) AudioStreamC
LoadMusicStream(Pointer<Char> fileName) MusicC
LoadMusicStreamFromMemory(Pointer<Char> fileType, Pointer<UnsignedChar> data, int dataSize) MusicC
LoadSound(Pointer<Char> fileName) SoundC
LoadSoundAlias(SoundC source) SoundC
LoadSoundFromWave(WaveC wave) SoundC
LoadWave(Pointer<Char> fileName) WaveC
LoadWaveFromMemory(Pointer<Char> fileType, Pointer<UnsignedChar> fileData, int dataSize) WaveC
LoadWaveSamples(WaveC wave) Pointer<Float>
logError(Object? message) → void
inherited
logInfo(Object? message) → void
inherited
logWarn(Object? message) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose(void fn()) → void
Registers fn to be called when this module is disposed.
inherited
PauseAudioStream(AudioStreamC stream) → void
PauseMusicStream(MusicC music) → void
PauseSound(SoundC sound) → void
PlayAudioStream(AudioStreamC stream) → void
PlayMusicStream(MusicC music) → void
PlaySound(SoundC sound) → void
ResumeAudioStream(AudioStreamC stream) → void
ResumeMusicStream(MusicC music) → void
ResumeSound(SoundC sound) → void
run<T>(String name(), T f()) → T
Executes f, logging its label (and optionally timing it) when debug is enabled and the label passes all filters.
inherited
SeekMusicStream(MusicC music, double position) → void
SetAudioStreamBufferSizeDefault(int size) → void
SetAudioStreamCallback(AudioStreamC stream, AudioCallbackC callback) → void
SetAudioStreamPan(AudioStreamC stream, double pan) → void
SetAudioStreamPitch(AudioStreamC stream, double pitch) → void
SetAudioStreamVolume(AudioStreamC stream, double volume) → void
SetMasterVolume(double volume) → void
SetMusicPan(MusicC music, double pan) → void
SetMusicPitch(MusicC music, double pitch) → void
SetMusicVolume(MusicC music, double volume) → void
SetSoundPan(SoundC sound, double pan) → void
SetSoundPitch(SoundC sound, double pitch) → void
SetSoundVolume(SoundC sound, double volume) → void
StopAudioStream(AudioStreamC stream) → void
StopMusicStream(MusicC music) → void
StopSound(SoundC sound) → void
toString() String
A string representation of this object.
inherited
UnloadAudioStream(AudioStreamC stream) → void
UnloadMusicStream(MusicC music) → void
UnloadSound(SoundC sound) → void
UnloadSoundAlias(SoundC alias) → void
UnloadWave(WaveC wave) → void
UnloadWaveSamples(Pointer<Float> samples) → void
UpdateAudioStream(AudioStreamC stream, Pointer<Void> data, int frameCount) → void
UpdateMusicStream(MusicC music) → void
UpdateSound(SoundC sound, Pointer<Void> data, int sampleCount) → void
WaveCopy(WaveC wave) WaveC
WaveCrop(Pointer<WaveC> wave, int initFrame, int finalFrame) → void
WaveFormat(Pointer<WaveC> wave, int sampleRate, int sampleSize, int channels) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited