From 9370fea3596d5daadc6f460db955db45749b14f7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 19 Jul 2014 14:18:52 -0700 Subject: Trace when a soundfont buffer goes unused --- Alc/midi/sf2load.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c index 4b8fd6a6..670f4ee9 100644 --- a/Alc/midi/sf2load.c +++ b/Alc/midi/sf2load.c @@ -1353,7 +1353,10 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context) Soundfont_Destruct(&sfont); /* If the buffer ends up unused, delete it. */ if(ReadRef(&buffer->ref) == 0) + { + TRACE("Deleting unused buffer...\n"); DeleteBuffer(context->Device, buffer); + } return AL_TRUE; -- cgit v1.2.3