+
+/*
+====================
+OGG_FreeSfx
+====================
+*/
+static void OGG_FreeSfx (sfx_t* sfx)
+{
+ ogg_stream_persfx_t* per_sfx = (ogg_stream_persfx_t *)sfx->fetcher_data;
+
+ // Free the Ogg Vorbis file
+ Mem_Free(per_sfx->file);
+ sfx->memsize -= per_sfx->filesize;
+
+ // Free the stream structure
+ Mem_Free(per_sfx);
+ sfx->memsize -= sizeof (*per_sfx);
+
+ sfx->fetcher_data = NULL;
+ sfx->fetcher = NULL;
+}
+
+static const snd_fetcher_t ogg_fetcher = { OGG_FetchSound, OGG_FetchEnd, OGG_FreeSfx };