• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic