Loading sound files into memory for BASS library..

Im using BASS audio library (http://www.un4seen.com/) which allows me to play audio from files and also from memory. I have managed to play audio from a file, but not from memory - which is what i intend to do (i.e. load all audio files, and play when used.) But the API (http://www.un4seen.com/doc/) doesn't give much of an idea as to how i should go about passing the file which i have loaded to it. Specifically i make a call to either BASS_SampleLoad([ARGS]) or BASS_MusicLoad([ARGS] in the API docs the first argument is a boolean representing TRUE if the audio is to be read from memory, the second argument is a void pointer. I have tried passing a pointer to a character array which is simply the whole file, but BASS didn't seem to be able to use that.

Anyone have any experience with this library/any ideas on what it might be expecting to receive?

EDIT: worth noting the error was 20 - "ill paramaters"
Last edited on
Ok i was right, i really needed to read furthur, missing the size parameter
Topic archived. No new replies allowed.