mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Point to SDL_LoadWAV for SoundTrack FAudio suggestion
This commit is contained in:
parent
3b18a475dd
commit
84f9bb6dd6
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ class SoundTrack
|
||||||
public:
|
public:
|
||||||
SoundTrack(const char* fileName)
|
SoundTrack(const char* fileName)
|
||||||
{
|
{
|
||||||
/* Parse WAV header, fill in FAudioBuffer, read PCM to malloc buffer */
|
/* SDL_LoadWAV, convert spec to FAudioBuffer */
|
||||||
unsigned char *mem;
|
unsigned char *mem;
|
||||||
size_t length;
|
size_t length;
|
||||||
FILESYSTEM_loadAssetToMemory(fileName, &mem, &length, false);
|
FILESYSTEM_loadAssetToMemory(fileName, &mem, &length, false);
|
||||||
|
@ -48,7 +48,7 @@ public:
|
||||||
|
|
||||||
void Dispose()
|
void Dispose()
|
||||||
{
|
{
|
||||||
/* Destroy all source voices, free buffer used by FAudioBuffer */
|
/* Destroy all track voices, SDL_free buffer from LoadWAV */
|
||||||
Mix_FreeChunk(m_sound);
|
Mix_FreeChunk(m_sound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue