mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 02:39:41 +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:
|
||||
SoundTrack(const char* fileName)
|
||||
{
|
||||
/* Parse WAV header, fill in FAudioBuffer, read PCM to malloc buffer */
|
||||
/* SDL_LoadWAV, convert spec to FAudioBuffer */
|
||||
unsigned char *mem;
|
||||
size_t length;
|
||||
FILESYSTEM_loadAssetToMemory(fileName, &mem, &length, false);
|
||||
|
@ -48,7 +48,7 @@ public:
|
|||
|
||||
void Dispose()
|
||||
{
|
||||
/* Destroy all source voices, free buffer used by FAudioBuffer */
|
||||
/* Destroy all track voices, SDL_free buffer from LoadWAV */
|
||||
Mix_FreeChunk(m_sound);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue