Making a module: Void *?

BlitzMax Forums/BlitzMax Programming/Making a module: Void *?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

I'm making a module for OpenAL, and I'm having some problems.
My small test crashes while trying to load a wav file.
The point where my test is crashing is here at the alutLoadWAVfile:
	Local format:Int
	Local size:Int
	Local data:Byte Ptr ' <- Not sure if this is the bmax version of void *
	Local freq:Int
	Local loop:Int
	
	alGenBuffers(1, wav_data )
	If alGetError() <> AL_NO_ERROR Then Return False
	
	alutLoadWAVFile("test.wav".tocstring(), format, data, size, freq, loop )

And this is how the original C source looked like:
    ALenum format;
    ALsizei size;
    ALvoid* data;
    ALsizei freq;
    ALboolean loop;

    alGenBuffers(1, &Buffer);
    if (alGetError() != AL_NO_ERROR)
        return AL_FALSE;

    alutLoadWAVFile("wavdata/FancyPants.wav", &format, &data, &size, &freq, &loop);


I think it's the void *data -> data:byte ptr part that I got wrong, but if somebody can spot any other errors I would be grateful.

Thankful for any help.