Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HELP!Simple MIDI player based on Sequencer:how to set Volume?

843802Oct 12 2006 — edited Apr 17 2008
Hi,i'm Roberto,i'm student and i'm realizing a simple midi player in java (using java1.5 and javax.sound.midi package).....the program has a gui and it can just play midi files,and the player is a class based on a Sequencer object:so the method play() initializes a Sequence object from a file and this is given as parameter to the sequencer,so it runs with Sequencer.start();......
my BIG problem is:"how can change the volume when playng if the player's class is created as above?","how can i realize a method setVolume(int volume)?"......please help me!!!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2008
Added on Oct 12 2006
5 comments
286 views