Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 5627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have succeded to compile my programs... but i dont get any sound.... My testcode, to load a simple wavefile goes like this: alutInit(0, NULL); alGetError(); ALsizei NUM_BUFFERS; ALuint *g_buffers; ALenum format; ALvoid *data; ALsizei size, freq; ALboolean loop; loop = false; ALuint *source; ALsizei number; number = 1; alutInit(0, NULL); alGetError(); alGenBuffers(NUM_BUFFERS, g_buffers); alutLoadWAVFile("funk.wav", &format, &data, &size, &freq,&loop); alBufferData(g_buffers[0], format, data, size, freq); alutUnloadWAV(format, data, size, freq); alGenSources(1, source); alSourcei(source[0], AL_BUFFER, g_buffers[0]); alSourcePlayv(1,source); No errors in visual studio.... but no sound? Thanks // Ioxunimous

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!