1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Point to SDL_LoadWAV for SoundTrack FAudio suggestion

This commit is contained in:
Ethan Lee 2022-01-15 01:02:24 -05:00
parent 3b18a475dd
commit 84f9bb6dd6

View file

@ -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);
}