Sound not playing after alxstopall()
by Santosh Pillai · in Technical Issues · 03/13/2008 (11:24 am) · 1 replies
Hi All,
I got a peculiar problem here.
Presently i'm playing one audio which you can imagine as Background Audio in game. but some times i've to stop that Background audio and i've to play some effects audio ONLY. for that what i'm doing is
I'm using alxstopall(); function to stop the background audio. Then i'm creating new audioprofile and using alxplay(); to play that newly created audio. But that newly created audio is not played at all. and when i'm stopping the newly created audio and tried to play back the background music, even its not played. All game going muted.
I checked wether the voulme is going down.. but volume is high only. I tried the same method by deleting the background music objects and creating new audio profiles whenever necessary. But everything is of no use.
example code i'm using:
%background = new audioprofile()
{
blah..
b;ah...
}
alxplay( %background );
--------------------------------------------------------------------------------------------
in another file
----------------------------------------------------------------------------------------------
alxstopAll();
%newmusic = new audioprofile()
{
blah..
b;ah...
}
alxplay( %newmusic );
-------------------------------------------------------------------------------------------
No audio can be heard from now on.
Please help me with this. I'm using .OGG files for audio and recent OPENAL32.DLL file.
Thanks.
I got a peculiar problem here.
Presently i'm playing one audio which you can imagine as Background Audio in game. but some times i've to stop that Background audio and i've to play some effects audio ONLY. for that what i'm doing is
I'm using alxstopall(); function to stop the background audio. Then i'm creating new audioprofile and using alxplay(); to play that newly created audio. But that newly created audio is not played at all. and when i'm stopping the newly created audio and tried to play back the background music, even its not played. All game going muted.
I checked wether the voulme is going down.. but volume is high only. I tried the same method by deleting the background music objects and creating new audio profiles whenever necessary. But everything is of no use.
example code i'm using:
%background = new audioprofile()
{
blah..
b;ah...
}
alxplay( %background );
--------------------------------------------------------------------------------------------
in another file
----------------------------------------------------------------------------------------------
alxstopAll();
%newmusic = new audioprofile()
{
blah..
b;ah...
}
alxplay( %newmusic );
-------------------------------------------------------------------------------------------
No audio can be heard from now on.
Please help me with this. I'm using .OGG files for audio and recent OPENAL32.DLL file.
Thanks.
Torque Owner Lee Latham
Default Studio Name