javax.sound.midi.spi (Java SE 26 & JDK 26)
Description: declaration: module: java.desktop, package: javax.sound.midi.spi
Keywords: javax.sound.midi.spi package

# Package javax.sound.midi.spi

package javax.sound.midi.spi
Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers.

## Related Documentation

For more information on using Java Sound see:

- The Java Sound Tutorial

Please note: In the `javax.sound.midi.spi` APIs, a `null` reference parameter to methods is incorrect unless explicitly documented on the method as having a meaningful interpretation. Usage to the contrary is incorrect coding and may result in a run time exception either immediately or at some later time. `NullPointerException` is an example of typical and acceptable run time exception for such cases.

Since:
  1.3

- Related Packages
  Package
  Description
  javax.sound.midi
  Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.
- Classes
  Class
  Description
  MidiDeviceProvider
  A `MidiDeviceProvider` is a factory or provider for a particular type of MIDI device.
  MidiFileReader
  A `MidiFileReader` supplies MIDI file-reading services.
  MidiFileWriter
  A `MidiFileWriter` supplies MIDI file-writing services.
  SoundbankReader
  A `SoundbankReader` supplies soundbank file-reading services.