MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4457
Loc: Melbourne, Australia
Send PM
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.







Entire thread
Subject Posted by Posted on
* How do i use util::wav_open and wav_close? Parduz 12/12/22 04:53 PM
. * Re: How do i use util::wav_open and wav_close? MooglyGuy  12/14/22 05:51 AM
. * Re: How do i use util::wav_open and wav_close? Parduz  12/14/22 07:11 PM
. * Re: How do i use util::wav_open and wav_close? MooglyGuy  12/14/22 11:28 PM
. * Re: How do i use util::wav_open and wav_close? Parduz  12/15/22 12:11 AM
. * Re: How do i use util::wav_open and wav_close? Vas Crabb  12/15/22 09:47 AM
. * Re: How do i use util::wav_open and wav_close? Parduz  12/15/22 10:45 AM
. * Re: How do i use util::wav_open and wav_close? Vas Crabb  12/15/22 03:46 PM
. * Re: How do i use util::wav_open and wav_close? Parduz  12/15/22 05:23 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 4 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 187