SUGGESTION: Get[Channel/DigitalMaster/Music[Master]/Sound/Speech]Volume

Started by monkey0506, Thu 02/11/2006 22:19:44

Previous topic - Next topic

monkey0506

Wouldn't it be nice if we had some way of finding out what the volume was at any given point?

Rui 'Trovatore' Pires

You can use a variable to keep track of it. In fact, you could modulise some simple code and there you'd have it. :)
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

monkey0506

#2
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.

Rui 'Trovatore' Pires

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.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

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.

monkey0506

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. ::)

SMF spam blocked by CleanTalk