Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: rmonic79 on 27 Jul 2017, 11:40

Title: help with sayqueued module and background voice act. [SOLVED]
Post by: rmonic79 on 27 Jul 2017, 11:40
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: Adventure Game Studio
  1.  
  2.  
  3.     if (value==1)
  4.     {
  5.      
  6.       cVedetta.SayQueued(GetTranslation("&11 ...as I already told you, you're good to go."), aVEDE11);
  7.              
  8.       cContra.SayQueued(GetTranslation("&3 And the shipment? It's the tally we be agreed on?"), aCont3);
  9.       cVedetta.SayQueued(GetTranslation("&12 Twen'y crates good to go!"), aVEDE12);
  10.              
  11.       cContra.SayQueued(GetTranslation("&4 We don't be havin' room onboard for that many!"),  aCont4);
  12.       cVedetta.SayQueued(GetTranslation("&13 Rest easy!"), aVEDE13);
  13.              
  14.      
  15.       cVedetta.SayQueued(GetTranslation("&14 You'll be gettin' them all within the week!"), aVEDE14);
  16.              
  17.       cVedetta.SayQueued(" ");
  18.       cContra.SayQueued(" ");
  19.     }
  20.    
  21.  
Title: Re: help with sayqueued module and background voice act.
Post by: Khris on 27 Jul 2017, 12:36
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 27 Jul 2017, 12:54
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 27 Jul 2017, 12:57
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 27 Jul 2017, 13:00
No, tried it now, same behave.
Title: Re: help with sayqueued module and background voice act.
Post by: Khris on 27 Jul 2017, 13:03
Just to make sure, aVEDE11.Play(); works fine, right?
Title: Re: help with sayqueued module and background voice act.
Post by: rmonic79 on 27 Jul 2017, 13:56
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 27 Jul 2017, 14:16
Open the module's main code, then go to line 170. It should look like this (almost):
Code: [Select]
  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 27 Jul 2017, 14:19
Oh thanks Khris it works fine! :)