Home » Desktop Java » sound

sound

Handle sampled audio playing events

In this tutorial we are going to see how to handle sampled audio playing events.This is a very important task if you plan to create a small media player in your app. Handling samples audio events will help you monitor the progress of the audio playing and inform the user for any mistakes or errors. In short, in order to ...

Read More »

Play sampled audio

This is a tutorial that shows how to play sampled audio in a Java Desktop applications. You can use this if you want to embed a simple media player in your application. In order to play sampled audio one should follow these steps: Obtain an audio input stream from the provided file calling AudioSystem.getAudioInputStream(new File("sampled_file.wav")). Then, obtain the audio format of ...

Read More »

Get Midi audio file properties

With this tutorial we are going to see how to get MIDI audio file properties. This is a useful operation when you want to inform the user about several important properties of the audio files. Basically in order to get MIDI audio file properties one should follow these steps: Obtain the default Sequencer connected to a default device using MidiSystem.getSequencer(). ...

Read More »

Handle Midi playing events

In this tutorial we are going to see how to handle MIDI playing events in a Java Desktop Application. You might find this particularly useful when you want to create a simple media player inside your application and you want to monitor the progress media playing. In short, in order to handle MIDI playing events you should: Obtain the default Sequencer connected ...

Read More »

Play Midi audio

With this example we shall show you how to play MIDI audio files in a Java Desktop Application. This is very useful when you want to embed a simple audio player in your application. In short, playing MIDI audio files requires that you: Obtain the default Sequencer connected to a default device using MidiSystem.getSequencer(). Create a stream from a file to the ...

Read More »