Closed askoufis closed 4 years ago
I was going to sleep on it but figured it out. FFMS_AudioSource::CreateResampleOptions
gives you a std::unique_ptr
, so you can't just pass a normal mutable raw pointer to the destructor, you need to use Box::into_raw
.
I'll make a PR for this.
Hi. I'm trying to work with
SetOutputFormatA
, but I can't even get a basic program to work because whenResampleOptions
goes out of scope I get afree(): invalid pointer
error. Here is an example program:Output: