• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Mute the Volume of PC

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends,
I have encountered a problem... I don't know how to mute the volume of my PC using Java??.......
I searched in JDK 1.5 ... MIDIChannel interface looked useful ... I wrote some peices of code and used setMute of this interface ... but nothing happened...
I suppose I'm wrong... may be I should do it in another way........help me please... how can I mute the volume of my PC??

thanks in advance,
Maryam
 
Maryam Nouhnejad
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please sb help me...
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Controlling the volume of sound output is up to the operating system and/or the drivers for your hardware. This is something that varies tremendously between operating systems and sound generating hardware. The standard Java library is pretty primitive about sound - you can only affect the sound your Java program is generating.

If you can find an operating system command to mute the sound on your particular system, Java might be able to execute it.

Advanced sound capabilities for Java are in the java media framework you might try looking there.

Bill
[ November 17, 2006: Message edited by: William Brogden ]
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Execute the tool below for windows

http://magic.aladdin.cs.cmu.edu/wp-uploads/cmdmute.zip
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic