SimpleAudio is a pure Java library which allows you to play WAV, AIFF, AU, OGG and MP3 audio files in a unified way. Audio output can be played streamed or buffered. It is also possible to record audio from input devices with it. The library was designed to be easy to use. Code written with it, is highly readable and maintainable.
- Added the method
setTracktoPlaylist - Fixed an
IndexOutOfBoundsExceptionin thenextandpreviousmethods of thePlaylistclass - Made the project Maven compatible
- Renamed
UtilstoUtil - Added Unit-Tests
- Updated the documentation
- Moved everything static in the
Audiointerface toAbstractAudio - Fixed a bug that caused
BufferedAudio.isPlaying()to return a wrong value - Fixed a bug that would re-open an instance of
StreamedAudioif it was closed in theREACHED_ENDevent - Added a close method in the
Playlistclass - Fixed most threading issues in
StreamedAudio - Disabled dead code
- Made the project modular for Java 9 (should still be compatible with Java 8 and below though; not tested)
- Added some more documentation
- Created the package
de.ralleytb.simple.audio.internaland moved theUtilsandVorbisInputStreamclasses in it
- Added the method
Recorder.start(File). - Added the method
Audio.getDefaultAudioFormat(). - The
Recorderclass now uses the AU file format because it doesn't need a pre-defined length. - Replaced the
ogg-vorbis.jarwithj-ogg.jar.
- Found a more elegant solution for reading the OGG headers.
- Added the ability to read headers of OGG files.
- Added three new audio event types.
- Audio events now also have attributes for old and new value.
- Added the method
Playable.isPaused(). (could cause incompatibility with older versions) - Added a
PlaylistListener.
- Removed the
RecordingListenerinterface. (causes incompatibility with older versions) - Removed the
disposemethod fromRecorder. (causes incompatibility with older versions) - Added a new
startmethod toRecorderwhich takes in anOutputStreamon which the recorded data will be written. - Added the method
Audio.getAudioInputStream(URL). - Added some system specific file formats.
- Added the class
Playlist. - Added the interface
Playableand moved some methods fromAudioto there. - Fixed some odd behavior with the
StreamedAudio.resume()method. - Fixed weird control behavior.
- The constructors of
StreamedAudioandBufferedAudionow all throw anAudioException. (causes incompatibility with older versions) - Added the method
Audio.getHeaders(). This works for all supported formats exceptFileFormat.OGG. - Added the method
Audio.isOpen(). - Added the
AudioListenerclass. - Removed the
Audio.ends()method. You should use anAudioListenerinstead. (causes incompatibility with older versions)
- Release
MIT License Copyright (c) 2017 Ralph Niemitz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.