medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0fb0e8f57777aee667810f494e44f96e704dc0ea
parent 84fb68e52c64b2e4c8e190555832ddcfcff7591d
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Feb  2 19:43:17 +0000

Remove some prints from audio.cc

Diffstat:
audio.cc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/audio.cc b/audio.cc @@ -26,6 +26,7 @@ static void freelist_init( MemoryArena * arena, SoundStateFreeList * freelist ) ss_head = memarena_push_type( arena, SoundState ); *ss_head = { }; ss_head->stopped = true; + // printf( "%p\n", ss_head ); freelist->tail = freelist->dummy = freelist->last_free = ss_head; write_barrier(); } @@ -41,6 +42,7 @@ static void pc( SoundStateFreeList * freelist, const char * msg ) { } static void freelist_add( SoundStateFreeList * freelist, SoundState * ss ) { + // printf( "add to freelist\n" ); freelist->tail->next_free = ss; write_barrier(); freelist->tail = ss; @@ -75,6 +77,7 @@ static bool audio_alloc_soundstate( MemoryArena * arena, SoundState ** out ) { Sound audio_play_sound( MemoryArena * arena, SoundData data, bool loop ) { SoundState * ss; bool reused = audio_alloc_soundstate( arena, &ss ); + // printf( "use freelist? %s. %p\n", reused ? "yes" : "no", ss ); const u32 new_generation = ss->generation + 1;