aspose file tools*
The moose likes Beginning Java and the fly likes Using the MidiDevice interface (Java Sound API) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Using the MidiDevice interface (Java Sound API)

Ravaa Bal
Ranch Hand

Joined: Apr 15, 2009
Posts: 31
Hi all, I'm trying to understand interfaces in Java so hope someone can help.

I have a class which is implementing the MidiDevice interface (http://java.sun.com/j2se/1.5.0/docs/api/javax/sound/midi/MidiDevice.html).

There is a method in there that I need to declare called isOpen(). The thing is I'm not sure how I would check if the device 'is open'. These are the lines I'm thinking along:



Is this correct? If not, what kind of thing would I need to do for this method?

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using the MidiDevice interface (Java Sound API)
 
Similar Threads
Java Sound API Problems
Multiple Midi Channels Problem
Static methods and nullpointerexceptions
I didn't think you could instantiate an Interface
Using the MidiDevice interface (Java Sound API)