twn_audio: fix ogg vorbis sample reuse
This commit is contained in:
parent
c07e16490e
commit
6d6230c6a1
@ -196,7 +196,7 @@ static union AudioContext init_audio_context(const char *path, AudioFileType typ
|
|||||||
static void free_audio_channel(AudioChannel channel) {
|
static void free_audio_channel(AudioChannel channel) {
|
||||||
switch (channel.file_type) {
|
switch (channel.file_type) {
|
||||||
case AUDIO_FILE_TYPE_OGG: {
|
case AUDIO_FILE_TYPE_OGG: {
|
||||||
SDL_free(channel.context.vorbis.data);
|
stb_vorbis_close(channel.context.vorbis.handle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AUDIO_FILE_TYPE_WAV: {
|
case AUDIO_FILE_TYPE_WAV: {
|
||||||
|
Loading…
Reference in New Issue
Block a user