Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rmonic79 on Tue 02/02/2021 12:31:26

Title: Strange Audio issues.
Post by: rmonic79 on Tue 02/02/2021 12:31:26
I'm on release of my game and i found some issues with music never happened before.
First of all, i have assigned all music to a variable but, if i try to change or fade volume it comes back to its original state in a fade way. I've searched all game from feet to head in all rep_exec all script imported and there's nothing related to it. The e sliders have on_change but nothing more. I'm going crazy.
One other stuff, there's  a Bgm music that doesn't start if i come to room from previous parts of the game but works if i start from the room itself. I can't find any reason...
Any ideas? I have less than 15 days to try to fix this stuff, anay help would be appreciated a lot!  ;-D
p.s. i'm using 3.4.0.16 version for a lot of reason and i can't change it
Title: Re: Strange Audio issues.
Post by: Crimson Wizard on Tue 02/02/2021 13:58:57
Please clarify some things.

Quote from: rmonic79 on Tue 02/02/2021 12:31:26
First of all, i have assigned all music to a variable but,

What do you mean by that? Are you talking about audio clip, audio channel or audio volume variable, for example, or something else?


Quote from: rmonic79 on Tue 02/02/2021 12:31:26
One other stuff, there's  a Bgm music that doesn't start if i come to room from previous parts of the game but works if i start from the room itself. I can't find any reason...

How do you start the music, in which function/event, which commands do you use?
Title: Re: Strange Audio issues.
Post by: rmonic79 on Tue 02/02/2021 14:10:56
Assigned to variable with volume function.

And i tried in every start functions Musica=music.play( etc...
Title: Re: Strange Audio issues.
Post by: rmonic79 on Tue 02/02/2021 14:19:58
https://www.youtube.com/watch?v=y8w3kQ7CDsw&feature=youtu.be&ab_channel=IBeceriVideoludici

by the way this is what happen putting Musica.volume zero after fade in, it return to 100 without reason

this is a code snippet in after fade in
Code (ags) Select
function room_AfterFadeIn()
{
   MUSICA=aOrchestraleNuovo.Play(eAudioPriorityHigh, eRepeat);
 
   Wait(80);
 
   videoMotion(0.2, "Video/Viaggio_Antartide.ogv");
   FadeInCust(0.5);
    MUSICA.Volume=0;
   narratoreFadeInTrans("Partirono da Arkham il 2 Ottobre.",0.5, 50, 0.5, aNARR6);



And this is the snippet for the audio that doesn't start from previous room (it's wav and the previous music is different and it's stopped before claiming this) and starts if i start from current room

Code (ags) Select
function room_AfterFadeIn()
{
 
  MUSICA=aBackGroundZadok.Play(eAudioPriorityHigh, eRepeat);
  //MUSICA.TweenFadeOut(2.0, eEaseLinearTween, eNoBlockTween, 0.1, eTweenSeconds);
 
   //cLone.ChangeRoom(13);
   cLone.Walk(351, 290, eBlock, eWalkableAreas);
   cLone.Walk(367, 274, eBlock, eAnywhere);
   cLone.ChangeRoom(16, 1266, 504, eDirectionRight);
  // MUSICA.Stop();
   //MUSICA.Volume=SlMusic.Value;
}
Title: Re: Strange Audio issues.
Post by: rmonic79 on Thu 04/02/2021 11:40:07
Guys any Ideas?
Title: Re: Strange Audio issues.
Post by: Crimson Wizard on Thu 04/02/2021 15:40:37
Sorry, I got very busy recently, maybe I will take a look soon, but from a quick glance I cannot think of anything in posted information that would explain what is happening. Some detail is missing here, but idk what. Need to think more on this.

Could you tell, how many channels are reserved for the music audio type in your game?
Also, in regards to the video, how do you play video itself? Does it have its own sound or the regular audioclip is played on background?
Title: Re: Strange Audio issues.
Post by: rmonic79 on Thu 04/02/2021 16:04:36
There’s only one audiochannel dedicated to music, the one you see above.
i use music for music, audio for fx and ambient sound for bgspeech.
i cannot find in any repex in the game and exterbal scripts related to variable volume.
Volume of type of sound are only linked to volume slider in the options but are onclick stuff.
In the video you see d3d pkugin that doesn’t have audio and a MUSICA variable playing background and after fade in i tried to force volume but returns fading to 100 as you can see