|
Re: How do i use util::wav_open and wav_close?
12/15/22 09:47 AM
|
|
|
Dude, let’s think about this for a moment:
- When you look at wavfile.h you see it has a wav_deleter class with a call operator that calls wav_close if the argument is not null.
- The wav_file_ptr is declared as a unique_ptr involving wav_file and wav_file_deleter – looking up what a unique_ptr does would probably be a good idea.
- Various MAME developers run MAME under memory analysers (e.g. Firewave and me). If everything was leaking wav_file we’d be screaming.
|
|