Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rocchinator on Sun 15/03/2015 20:18:06

Title: Speech stops music playing
Post by: Rocchinator on Sun 15/03/2015 20:18:06
HI There! Im working on my first Adventure, I have a problem...

I made my character to speak with the speech function, all cool, but i dont want the music to stop when my character is talking, im having a hard time on this, cant find the solution please help me, here is what i scripted



Code (ags) Select
[function room_AfterFadeIn()
{
  aMusic3.Play();
  AudioChannel* chan = aMusic3.Play();
  chan.Volume = 30;
  Wait(200);
  cEgo.Say("&1 Escape... I just want to Escape");
}
]


Im sorry for my english im from Argentina
Title: Re: Speech stops music playing
Post by: Rocchinator on Tue 17/03/2015 01:06:22
Can someone help me I want to move on but i cant, I need to know If I can play both Music and Speech at the same time, It something to do with audiochannels? should I use Abientsound as music?
Title: Re: Speech stops music playing
Post by: Snarky on Tue 17/03/2015 03:10:59
There's a setting under the properties for Audio Types called "VolumeReductionWhileSpeechPlaying". It turns down the volume of that sound type when there's speech (otherwise known as "ducking"). By default it's set to 30 for music, so if you set the volume of a music track to 30... well, you see where this is going.

Change that setting (or raise the volume of the music track) in order to hear both music and speech.
Title: Re: Speech stops music playing
Post by: Rocchinator on Wed 18/03/2015 13:57:02
wow thanks pal that worked, I can now move on I will be posting images of the game soon in the game annousment. Thanks again