What does the value returned by 'LoadSound()' represent?
Posted: Mon Jun 14, 2021 4:15 am
Hi. I'd like to find out what the value returned by LoadSound() represents, if anyone knows (this is for the Windows x64 version of PureBasic). I assume that it's a handle\address pointer to a DirectSound object or buffer?
The reason that I'm asking is that I'm in the middle of porting an OpenAL wrapper library I wrote in BlitzMax to PureBasic and I need to get the buffer pointer, buffer size, sound format ID, etc for a loaded sound so that I can use them with the 'alBufferData' OpenAL command. I'm looking for a way to use the system ID returned by LoadSound() to obtain this information.
The reason that I'm asking is that I'm in the middle of porting an OpenAL wrapper library I wrote in BlitzMax to PureBasic and I need to get the buffer pointer, buffer size, sound format ID, etc for a loaded sound so that I can use them with the 'alBufferData' OpenAL command. I'm looking for a way to use the system ID returned by LoadSound() to obtain this information.