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

Parduz
Reged: 01/08/08
Posts: 30
Loc: Bologna, ITALY
Send PM
How do i use util::wav_open and wav_close?
12/12/22 04:53 PM


I have problems using the wavwrite functions.

I open the files this way (actually stoled from sounds.cpp)

Code:


m_wavraw = util::wav_open("raw.wav", m_sample_rate, 2);



but then i get compile errors:

Code:


util::wav_close(*m_wavraw);


throws "error: cannot convert 'util::wav_file' to 'util::wav_file*"


Code:


util::wav_close(m_wavraw);


throws "error: cannot convert 'util::wav_file_ptr' {aka 'std::unique_ptr'} to 'util::wav_file*' "

How am i supposed to close that file?







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 3 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 188