RaylibAudioFlat<R extends RaylibBase> class abstract

Backend-agnostic contract for the Raylib Audio flat module.

Concrete platform implementations mix in or extend this to provide the full API surface across different backends.

Inheritance
Implementers

Constructors

RaylibAudioFlat(R rl)

Properties

hashCode → int
The hash code for this object.
no setterinherited
RaylibCaptureIds → _RaylibAudioDartCaptureIds
Capture ID generator for pointer slots allocated by this module.
final
rl → R
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Temp → RaylibTemp<RaylibBase>
See RaylibTemp.
no setterinherited

Methods

AttachAudioMixedProcessor(MemoryPointer<RFunction<AudioCallbackBase>> processor) → void
Attach audio stream processor to the entire audio pipeline, receives the samples as 'float'
AttachAudioStreamProcessor(AudioStream stream, MemoryPointer<RFunction<AudioCallbackBase>> processor) → void
Attach audio stream processor to stream, receives the samples as 'float'
CloseAudioDevice() → void
Close the audio device and context
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(MemoryPointer<RFunction<AudioCallbackBase>> processor) → void
Detach audio stream processor from the entire audio pipeline
DetachAudioStreamProcessor(AudioStream stream, MemoryPointer<RFunction<AudioCallbackBase>> processor) → void
Detach audio stream processor from stream
disableSync<T>(T f()) → T
Executes f with RaylibTemp syncing temporarily disabled, restoring the previous sync state afterward.
inherited
dispose() → void
Calls all registered onDispose callbacks and clears them.
override
disposeStructWithOpFreed<D extends RaylibStruct<D>>(D struct, void fn(StructPointer<D> ptr)) → void
Disposes struct, invokes fn with its underlying pointer, and then frees the temporary allocation backing the pointer, if any.
inherited
disposeStructWithOpUnslotted<D extends RaylibStruct<D>>(D struct, void fn(StructPointer<D> ptr)) → void
Disposes struct, invokes fn with its underlying pointer, and then unslots the temporary allocation backing the pointer, if any.
inherited
ExportWave(Wave wave, MemoryPointer<RInt8> fileName) → bool
Export wave data to file, returns true on success
ExportWaveAsCode(Wave wave, MemoryPointer<RInt8> fileName) → bool
Export wave sample data to code (.h), returns true on success
GetMasterVolume() → double
Get master volume (listener)
GetMusicTimeLength(Music music) → double
Get music time length (in seconds)
GetMusicTimePlayed(Music music) → double
Get current music time played (in seconds)
InitAudioDevice() → void
Initialize audio device and context
IsAudioDeviceReady() → bool
Check if audio device has been initialized successfully
IsAudioStreamPlaying(AudioStream stream) → bool
Check if audio stream is playing
IsAudioStreamProcessed(AudioStream stream) → bool
Check if any audio stream buffers requires refill
IsAudioStreamValid(AudioStream stream) → bool
Checks if an audio stream is valid (buffers initialized)
IsMusicStreamPlaying(Music music) → bool
Check if music is playing
IsMusicValid(Music music) → bool
Checks if a music stream is valid (context and buffers initialized)
IsSoundPlaying(Sound sound) → bool
Check if a sound is currently playing
IsSoundValid(Sound sound) → bool
Checks if a sound is valid (data loaded and buffers initialized)
IsWaveValid(Wave wave) → bool
Checks if wave data is valid (data loaded and parameters)
load() → void
Override to perform one-time module initialization.
inherited
LoadAudioStream(int sampleRate, int sampleSize, int channels) → AudioStream
Load audio stream (to stream raw audio pcm data)
LoadMusicStream(MemoryPointer<RInt8> fileName) → Music
Load music stream from file
LoadMusicStreamFromMemory(MemoryPointer<RInt8> fileType, MemoryPointer<RUint8> data, int dataSize) → Music
Load music stream from data
LoadSound(MemoryPointer<RInt8> fileName) → Sound
Load sound from file
LoadSoundAlias(Sound source) → Sound
Create a new sound that shares the same sample data as the source sound, does not own the sound data
LoadSoundFromWave(Wave wave) → Sound
Load sound from wave data
LoadWave(MemoryPointer<RInt8> fileName) → Wave
Load wave data from file
LoadWaveFromMemory(MemoryPointer<RInt8> fileType, MemoryPointer<RUint8> fileData, int dataSize) → Wave
Load wave from memory buffer, fileType refers to extension: i.e. '.wav'
LoadWaveSamples(Wave wave) → MemoryPointer<RFloat32>
Load samples data from wave as a 32bit float data array
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(AudioStream stream) → void
Pause audio stream
PauseMusicStream(Music music) → void
Pause music playing
PauseSound(Sound sound) → void
Pause a sound
PlayAudioStream(AudioStream stream) → void
Play audio stream
PlayMusicStream(Music music) → void
Start music playing
PlaySound(Sound sound) → void
Play a sound
ResumeAudioStream(AudioStream stream) → void
Resume audio stream
ResumeMusicStream(Music music) → void
Resume playing paused music
ResumeSound(Sound sound) → void
Resume a paused sound
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(Music music, double position) → void
Seek music to a position (in seconds)
SetAudioStreamBufferSizeDefault(int size) → void
Default size for new audio streams
SetAudioStreamCallback(AudioStream stream, MemoryPointer<RFunction<AudioCallbackBase>> callback) → void
Audio thread callback to request new data
SetAudioStreamPan(AudioStream stream, double pan) → void
Set pan for a sound (-1.0 left, 0.0 center, 1.0 right)
SetAudioStreamPitch(AudioStream stream, double pitch) → void
Set pitch for audio stream (1.0 is base level)
SetAudioStreamVolume(AudioStream stream, double volume) → void
Set volume for audio stream (1.0 is max level)
SetMasterVolume(double volume) → void
Set master volume (listener)
SetMusicPan(Music music, double pan) → void
Set pan for a music (0.5 is center)
SetMusicPitch(Music music, double pitch) → void
Set pitch for a music (1.0 is base level)
SetMusicVolume(Music music, double volume) → void
Set volume for music (1.0 is max level)
SetSoundPan(Sound sound, double pan) → void
Set pan for a sound (0.5 is center)
SetSoundPitch(Sound sound, double pitch) → void
Set pitch for a sound (1.0 is base level)
SetSoundVolume(Sound sound, double volume) → void
Set volume for a sound (1.0 is max level)
StopAudioStream(AudioStream stream) → void
Stop audio stream
StopMusicStream(Music music) → void
Stop music playing
StopSound(Sound sound) → void
Stop playing a sound
toString() → String
A string representation of this object.
inherited
UnloadAudioStream(AudioStream stream) → void
Unload audio stream and free memory
UnloadMusicStream(Music music) → void
Unload music stream
UnloadSound(Sound sound) → void
Unload sound
UnloadSoundAlias(Sound alias) → void
Unload a sound alias (does not deallocate sample data)
UnloadWave(Wave wave) → void
Unload wave data
UnloadWaveSamples(MemoryPointer<RFloat32> samples) → void
Unload samples data loaded with LoadWaveSamples()
UpdateAudioStream(AudioStream stream, MemoryPointer<RVoid> data, int frameCount) → void
Update audio stream buffers with data
UpdateMusicStream(Music music) → void
Updates buffers for music streaming
UpdateSound(Sound sound, MemoryPointer<RVoid> data, int sampleCount) → void
Update sound buffer with new data
WaveCopy(Wave wave) → Wave
Copy a wave to a new wave
WaveCrop(StructPointer<Wave> wave, int initFrame, int finalFrame) → void
Crop a wave to defined frames range
WaveFormat(StructPointer<Wave> wave, int sampleRate, int sampleSize, int channels) → void
Convert wave data to desired format

Operators

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