Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: monkey0506 on Thu 02/11/2006 22:19:44

Title: SUGGESTION: Get[Channel/DigitalMaster/Music[Master]/Sound/Speech]Volume
Post by: monkey0506 on Thu 02/11/2006 22:19:44
Wouldn't it be nice if we had some way of finding out what the volume was at any given point?
Title: Re: SUGGESTION: Get[Music/Sound/Speech][Master]Volume
Post by: Rui 'Trovatore' Pires on Thu 02/11/2006 22:21:43
You can use a variable to keep track of it. In fact, you could modulise some simple code and there you'd have it. :)
Title: Re: SUGGESTION: Get[Music[Master]/Sound/Speech]Volume
Post by: monkey0506 on Thu 02/11/2006 22:26:06
First of all it's modularize, not modulise.

But trying to make a module to do this would be...somewhat silly IMO. It would require the users to use my functions for setting the volume just so that I could change my variable, and if they called the built-in functions then my variable would hold the wrong value.

So it's not really practical to try tracking it this way...for a module. It would just be nice if we had some built-in methods of find out the volume.
Title: Re: SUGGESTION: Get[Music[Master]/Sound/Speech]Volume
Post by: Rui 'Trovatore' Pires on Thu 02/11/2006 22:29:59
Oh, I agree with your suggestion, and I think it's a good one, and I don't see it being problematic to add. You just said it would be nice to have a way of getting those values, and I helpfully told you how to get them. ::)

Anyway, I'll say modulise if I wanna.
Title: Re: SUGGESTION: Get[Channel/DigitalMaster/Music[Master]/Sound/Speech]Volume
Post by: Pumaman on Mon 06/11/2006 18:57:51
Yes, someting like this would be useful. The only issue is that AGS doesn't currently get the volume itself at startup, but I'm sure that can be overcome.
Title: Re: SUGGESTION: Get[Channel/DigitalMaster/Music[Master]/Sound/Speech]Volume
Post by: monkey0506 on Mon 06/11/2006 19:38:11
I've just had a thought. It might be easier if there was just a GetVolume function that took an enumerated parameter to determine which volume to retrieve. Of course putting them all together like that might just make things a big mess. ::)