diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-11-13 22:56:59 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-11-13 22:56:59 -0800 |
commit | 62fdcbc92ba3c4a71742293d75d853c95eb5f3c7 (patch) | |
tree | dce685f5cf74848f6d6a85f93689cf8dec50e89b /psg.c | |
parent | 802454482c2843234a19a06f6acce360e0be3d60 (diff) |
Selecting a second game from the menu now works
Diffstat (limited to 'psg.c')
-rw-r--r-- | psg.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -24,6 +24,15 @@ void psg_init(psg_context * context, uint32_t sample_rate, uint32_t master_clock } } +void psg_free(psg_context *context) +{ + free(context->audio_buffer); + //TODO: Figure out how to make this 100% safe + //audio thread could still be using this + free(context->back_buffer); + free(context); +} + #define BUFFER_INC_RES 1000000000UL void psg_adjust_master_clock(psg_context * context, uint32_t master_clock) |