Polygon Dash
Loading...
Searching...
No Matches
AudioResource Struct Reference

A loaded sound artifact. More...

Public Member Functions

 this (string audioFilePath, int volume=MIX_MAX_VOLUME)
 Load a .wav file into memory.
 
 ~this ()
 Destroy loaded .wav file.
 

Public Attributes

Mix_Chunk * mSound
 The loaded sound chunk.
 

Detailed Description

A loaded sound artifact.

Not intended to be called outside of AudioManager.

See also
AudioManager

Constructor & Destructor Documentation

◆ this()

AudioResource::this ( string audioFilePath,
int volume = MIX_MAX_VOLUME )
inline

Load a .wav file into memory.

Parameters
audioFilePaththe path to the .wav file.
volumethe volume scale to apply to the loaded waveform.

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