Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rmonic79 on Thu 27/07/2017 11:40:58

Title: help with sayqueued module and background voice act. [SOLVED]
Post by: rmonic79 on Thu 27/07/2017 11:40:58
Hi guys i realized right now that i have problem add speech to phrases said with sayqueued, when i add audio they go out screen in a flash like audioclip is empty. The is a portion of the code
Code (ags) Select


 
    if (value==1)
    {
     
      cVedetta.SayQueued(GetTranslation("&11 ...as I already told you, you're good to go."), aVEDE11);
             
      cContra.SayQueued(GetTranslation("&3 And the shipment? It's the tally we be agreed on?"), aCont3);
      cVedetta.SayQueued(GetTranslation("&12 Twen'y crates good to go!"), aVEDE12);
             
      cContra.SayQueued(GetTranslation("&4 We don't be havin' room onboard for that many!"),  aCont4);
      cVedetta.SayQueued(GetTranslation("&13 Rest easy!"), aVEDE13);
             
     
      cVedetta.SayQueued(GetTranslation("&14 You'll be gettin' them all within the week!"), aVEDE14);
             
      cVedetta.SayQueued(" ");
      cContra.SayQueued(" ");
    }
   
Title: Re: help with sayqueued module and background voice act.
Post by: Khris on Thu 27/07/2017 12:36:56
If you're using this: http://www.adventuregamestudio.co.uk/forums/index.php?topic=23806
then you need to implement queued voice speech as AudioClip parameter; putting "&123" at the start of the line no longer works.
Title: Re: help with sayqueued module and background voice act.
Post by: rmonic79 on Thu 27/07/2017 12:54:16
yes i know that doesn't work it's a trace of previous numbering but also remove them doesn't solve the problem. I must study the thread you linked. I think i'm using the previous version.
Title: Re: help with sayqueued module and background voice act.
Post by: Khris on Thu 27/07/2017 12:57:28
Sorry, I missed that you were already adding the AudioClip. Maybe GetTranslation() is the cause? Does it work without that?
Title: Re: help with sayqueued module and background voice act.
Post by: rmonic79 on Thu 27/07/2017 13:00:17
No, tried it now, same behave.
Title: Re: help with sayqueued module and background voice act.
Post by: Khris on Thu 27/07/2017 13:03:38
Just to make sure, aVEDE11.Play(); works fine, right?
Title: Re: help with sayqueued module and background voice act.
Post by: rmonic79 on Thu 27/07/2017 13:56:42
yes, i tested all. tried also with wav to be sure.
Title: Re: help with sayqueued module and background voice act.
Post by: Khris on Thu 27/07/2017 14:16:51
Open the module's main code, then go to line 170. It should look like this (almost):
  if (((this._channel != null) && (!this._channel.IsPlaying)) ||

insert the exclamation mark where I did to fix it.
Title: Re: help with sayqueued module and background voice act.
Post by: rmonic79 on Thu 27/07/2017 14:19:33
Oh thanks Khris it works fine! :)