Raising Volume With mciSendString

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Raising Volume With mciSendString

Post by Googie85 » Mon Dec 01, 2014 10:18 am

I am trying to turn the system volume up to the maximum using mciSendString. I have looked at the Microsoft factsheet on MCI and am at a loss. I am trying to play a .WAV file also and I am using MCI to do that, instead of PLAY (File) in LiveCode. Any help would be appreciated.

Many Thanks,

Matthew.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Raising Volume With mciSendString

Post by Klaus » Mon Dec 01, 2014 1:11 pm

Hi Matthew,

MCI, oh boy! I thought that this had been depercated aeons ago :D

Sorry, no idea aobut this Windows specific thingie, but maybe you
can simply use and set "the playloudness"!?

If you omit a target "set the playloudness of player xyz to XX", this will manage
the overall system volume -> set the playloudness to 50


Best

Klaus

Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Re: Raising Volume With mciSendString

Post by Googie85 » Mon Dec 01, 2014 2:12 pm

What would I supply as "Player" the application name?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Raising Volume With mciSendString

Post by Klaus » Mon Dec 01, 2014 2:23 pm

Hi Matthew,
Googie85 wrote:What would I supply as "Player" the application name?
No! As I wrote: supply NOTHING! :D

In that case you set the system volume!
...
set the playloudness to 50
...
Will set the GLOBAL system volume to 1/2 (50%)
Please look up "playloudness" in the doctionary!


Best

Klaus

Post Reply