Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: C.T.C.B on Fri 03/05/2013 00:05:40

Title: [SOLVED] Problem with Audio Level(s)
Post by: C.T.C.B on Fri 03/05/2013 00:05:40
Here is the Code I currently have:
[embed=425,349]
function room_Load()
{
  aCovertAffair.Play (eAudioPriorityNormal, eRepeat);
  aMenuRain.Play (eAudioPriorityNormal, eRepeat);
}
[/embed]

The Problem I am having:
They both play fine at the same time, but the Rain is overpowering the Music. I want the Rain audio to be lower than the Music, and I'm going to need the same when I add thunder audio as well. But I don't want this to effect other rooms or the game in general.
Title: Re: Problem with Audio Level(s)
Post by: Khris on Fri 03/05/2013 00:17:39
Code (ags) Select
  AudioChannel* rain = aMenuRain.Play(eAudioPriorityNormal, eRepeat);
  rain.Volume = 40;


Edit: code fixed
Title: Re: Problem with Audio Level(s)
Post by: C.T.C.B on Fri 03/05/2013 00:23:11
Quote from: Khris on Fri 03/05/2013 00:17:39
Code (ags) Select
  Audiochannel* rain = aMenuRain.Play(eAudioPriorityNormal, eRepeat);
  rain.Volume = 40;


Failed to save room room995.crm; details below
room995.asc(5): Error (line 5): Undefined token 'Audiochannel'
Title: Re: Problem with Audio Level(s)
Post by: Gilbert on Fri 03/05/2013 03:17:03
Change Audiochannel to AudioChannel .
Title: Re: Problem with Audio Level(s)
Post by: C.T.C.B on Fri 03/05/2013 04:41:47
Quote from: Iceboty V7000a on Fri 03/05/2013 03:17:03
Change Audiochannel to AudioChannel .

Thanks, That fixed it!