janellesnow at March 21st, 2009 11:58 — #1
I am trying to halt and resume the sounds from OpenALSystem. But i discovered that alcSuspendContext does not work for me according to the tutorial.
Belows are my 2 functions, hope anyone has any idea why it is not working. Is there something else that I missed out?
cout << "HaltAudioSystem" << endl;
// Get the current context.
pCurContext = alcGetCurrentContext();
// Get the device used by that context.
pCurDevice = alcGetContextsDevice(pCurContext);
// set the current context to NULL will 'shutdown' openAL
// now suspend your context to 'pause' your sound world
cout << "ResumeAudioSystem " << endl;
// Get Current Context
ALCcontext* alcContext = alcGetCurrentContext();
// Restore open al context
// 'unpause' my context
Thanks in advance
reedbeta at March 21st, 2009 13:09 — #2
Please use ...[/code] tags when you post code on the forum. Thanks! [code]...[/code****] tags when you post code on the forum. Thanks!