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?