I’m trying to modify the 8’th tutorial on OpenAl and make a fuction that
stop the sound and then play it again from the start, but i’m having
some difficulties with this. Can you post a snippet of how would you
write such a function?
Please log in or register to post a reply.
you would need to change the while loop in the main() to check for key
input and process it … something like this:
bool running = true;
char=getKeyBoardInput(); ///not that this needs to not pause the system
if(char == "P"||char=="p")
idle() should look something like this:
you should be able to make stop just:
if you wanted to do a pause it should simply be:
now I’m no expert, but I think that’ll work. if anyone sees anything
wrong with that please correct me.