Volume

Non-platform specific questions.

Volume

Postby phyzix5761 » Tue Jun 19, 2012 9:38 pm

The volume parameter makes no change in the playMusic function. How do i control the volume of the music?
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: Volume

Postby skydereign » Tue Jun 19, 2012 9:41 pm

Are you trying to change the parameter in the PlayMusic2 function? Because changeing the volume of the game should be done by changing the musicvol variable.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Volume

Postby phyzix5761 » Wed Jun 20, 2012 12:22 am

Yes I am trying to use the parameter in playMusic2. Let me look into musicvol.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: Volume

Postby phyzix5761 » Wed Jun 20, 2012 12:27 am

Yeah musicvol isn't doing anything.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: Volume

Postby skydereign » Wed Jun 20, 2012 12:58 am

What values are you using? musicvol is a double of range 0.0-1.0. Anything above 1.0 probably plays the music at the same volume as at 1.0.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Volume

Postby phyzix5761 » Wed Jun 20, 2012 2:56 am

I used 0.5 and 0.0. It didn't make any difference.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: Volume

Postby phyzix5761 » Wed Jun 20, 2012 6:11 pm

File was not ogg. It was wav. That's why it didn't work.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron