Closed DalisonCPU closed 1 year ago
Can you provide more details or an example of the code you're trying to compile? Which version of the Steam Audio API is your code targeting? IPLhandle
is part of the older v2.x API, so there appears to be some sort of version mismatch.
Hello, i'm using the latest version of the api (4.3), and would like to compile the following code for Windows x86: P.S: I know I must be doing something wrong, but I can't find how to apply the espatilizer effect to an audio buffer and when I try to compile it says that IPLhandle was not declared.
Sorry for the comments in Portuguese.
It definitely looks like the code is written for the old (v2.x) API, but is being compiled against the latest (v4.3.0) API. You will probably have to change the code to use the new API. For example, when creating a context, you need to call iplContextCreate
instead of iplCreateContext
, and pass it an IPLContext
instead of an IPLhandle
. For a full example with the latest API, see https://valvesoftware.github.io/steam-audio/doc/capi/getting-started.html#full-program-listing.
Ok, but even the api example, how do I reproduce the result of it? The inputaudio.raw could be a .wav file, with 44100 and 128 kbps, right? If so, when I do that it generates a file and if I open it in aldacity, it sounds completely strange and has nothing to do with the original audio. Could you give a little more information?
Steam Audio accepts 32-bit floating point samples when creating Audio Buffers. You can load those buffers however you want, from a wav or mp3 file, but you will have to figure out how to load a wav or mp3 file.
For simplicity, I think the examples assumes a raw file which has basically a float array of audio buffer data.
Hello. I downloaded the latest version of steamaudio from the page https://github.com/ValveSoftware/steam-audio/releases I downloaded the file steamaudio_4.3.0.zip, and I can't compile a project because it says IPLhandle not found. My question is: How can I correctly use the api, since the steamaudio/phonon.h file doesn't really have this declaration?