game.audio

Undocumented in source.

Members

Aliases

WaveForm
alias WaveForm = float function(float)
Undocumented in source.

Functions

applyDelay
auto applyDelay(Buffer chnBuf, uint waveSamples, Instrument* instr, uint rowLen)
Undocumented in source. Be warned that the author may not have intended to support it.
audioBufferGetChannelData
Handle audioBufferGetChannelData(Handle ctx, uint channel)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
audioBufferSourceNodeBuffer
void audioBufferSourceNodeBuffer(Handle node, Handle buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
audioBufferSourceNodeConnect
void audioBufferSourceNodeConnect(Handle node, Handle destination)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
audioBufferSourceNodeLoopSet
void audioBufferSourceNodeLoopSet(Handle ctx, bool loop)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
audioBufferSourceNodeStart
void audioBufferSourceNodeStart(Handle node)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
baseAudioContextCreateBuffer
Handle baseAudioContextCreateBuffer(Handle ctx, uint numberOfChannels, uint length, float sampleRate)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
baseAudioContextCreateBufferSource
Handle baseAudioContextCreateBufferSource(Handle ctx)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
baseAudioContextDestination
Handle baseAudioContextDestination(Handle ctx)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
connect
void connect(AudioBufferSourceNode node, AudioDestinationNode destination)
Undocumented in source. Be warned that the author may not have intended to support it.
createAudioBuffer
auto createAudioBuffer(AudioContext ctx, Instrument* instr, uint rowLen, uint n)
Undocumented in source. Be warned that the author may not have intended to support it.
createBuffer
AudioBuffer createBuffer(BaseAudioContext ctx, uint numberOfChannels, uint length, float sampleRate)
Undocumented in source. Be warned that the author may not have intended to support it.
createBufferSource
AudioBufferSourceNode createBufferSource(BaseAudioContext ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
createSfx
auto createSfx(AudioContext ctx, Instrument* instrument, uint note)
Undocumented in source. Be warned that the author may not have intended to support it.
createSoundPlayer
auto createSoundPlayer()
Undocumented in source. Be warned that the author may not have intended to support it.
float32ArraySet
void float32ArraySet(Handle ctx, float[] array)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
generateBuffer
auto generateBuffer(size_t samples)
Undocumented in source. Be warned that the author may not have intended to support it.
getAudioBuffer
auto getAudioBuffer(AudioContext ctx, Buffer mixBuf)
Undocumented in source. Be warned that the author may not have intended to support it.
getChannelData
Float32Array getChannelData(AudioBuffer buffer, uint channel)
Undocumented in source. Be warned that the author may not have intended to support it.
getnotefreq
auto getnotefreq(int n)
Undocumented in source. Be warned that the author may not have intended to support it.
newAudioContext
AudioContext newAudioContext()
Undocumented in source. Be warned that the author may not have intended to support it.
osc_saw
float osc_saw(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
osc_sin
auto osc_sin(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
osc_square
float osc_square(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
osc_tri
auto osc_tri(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(Float32Array arr, float[] array)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start(AudioBufferSourceNode node)
Undocumented in source. Be warned that the author may not have intended to support it.
windowNewAudioContext
Handle windowNewAudioContext()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Manifest constants

MAX_TIME
enum MAX_TIME;
Undocumented in source.
WAVE_SPS
enum WAVE_SPS;
Undocumented in source.

Static variables

explodeFx
Instrument explodeFx;
Undocumented in source.
gSoundPlayer
SoundPlayer* gSoundPlayer;
Undocumented in source.
hitFx
Instrument hitFx;
Undocumented in source.
shootFx
Instrument shootFx;
Undocumented in source.
terminalFx
Instrument terminalFx;
Undocumented in source.

Structs

AudioBuffer
struct AudioBuffer
Undocumented in source.
AudioBufferSourceNode
struct AudioBufferSourceNode
Undocumented in source.
AudioContext
struct AudioContext
Undocumented in source.
AudioDestinationNode
struct AudioDestinationNode
Undocumented in source.
BaseAudioContext
struct BaseAudioContext
Undocumented in source.
Buffer
struct Buffer
Undocumented in source.
Float32Array
struct Float32Array
Undocumented in source.
Instrument
struct Instrument
Undocumented in source.
SoundPlayer
struct SoundPlayer
Undocumented in source.

Meta