Problem with tutorial lesson2
Posted 10 May 2010 - 12:38 PM
At first I have to say hello to all of you ..i'm very new in here. I've just startet with a little project in open al and devC++.
Now i've got a little problem with lesson2 of the tutorial on this page (http://www.devmaster...als/lesson2.php)
I want to replay an other file instead of these footsteps. I just changend the path but my wav-files are probably too big.
if(alGetError() != AL_NO_ERROR)
alutLoadWAVFile("wavdata/sound.wav", &format, &data, &size, &freq, &loop);
alBufferData(Buffer, format, data, size, freq);
alutUnloadWAV(format, data, size, freq);
So how will I be able to put some bigger files in these example?
PS: Sorry for my bad english ;-)
Posted 10 May 2010 - 01:56 PM
Posted 10 May 2010 - 04:45 PM
Posted 11 May 2010 - 11:19 AM
There is no error message when I compile. But if i start the programm nothing happens. Theres just a black window for a second and then it disappears. No sound, no error just nothing.
When I take a small file (about 50kB) everything works but with bigger files there is a probem
I will take a look at lesson 8. maybe this will help me
thank you so far
Posted 11 May 2010 - 12:09 PM
Same problem with your eyes, If you start your program and all you get is a blank screen, youve got nothing to go off, so you at least have to
see something. :)
Posted 11 May 2010 - 04:12 PM
When that happens for me, I go into command prompt and run the exe with dos commands. You may be getting a system error but the window is closing before you can read it. Hopefully you know a few dos commands. Mainly you just need to get to the directory and then type the name of the program. It sounds like it is related to size of the file though, so streaming will probably take care of it.
You may be able to run it inside an IDE and view the runtime error, also. I haven't used c++ in a while or one of the IDE's of late.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users