Package

com.malliina.audio

javasound

Permalink

package javasound

Visibility
  1. Public
  2. All

Type Members

  1. class BasicJavaSoundPlayer extends JavaSoundPlayer with SourceClosing

    Permalink
  2. class FileJavaSoundPlayer extends BasicJavaSoundPlayer

    Permalink

    Use for audio files.

    Use for audio files. Since this constructor opens an InputStream, trait SourceClosing is mixed in so that when this player is closed, so is the InputStream.

  3. class JavaSoundPlayer extends IPlayer with JavaSoundPlayerBase with StateAwarePlayer with AutoCloseable

    Permalink

    A music player.

    A music player. Plays one media source. To change source, for example to change track, create a new player.

    The user needs to provide the media length and size to enable seek functionality. Seeking streams which cannot be reopened is only supported if InputStream.markSupported() of media.stream is true, and even then the support is buggy. markSupported() is true at least for java.io.BufferedInputStreams.

    The stream provided in media is not by default closed when the player is closed, but if you wish to do so, subclass this player and override close() accordingly or mix in trait SourceClosing.

    I think it's preferred to use an ExecutionContext with one thread only.

    See also

    UriJavaSoundPlayer

    FileJavaSoundPlayer

  4. trait JavaSoundPlayerBase extends RichPlayer with Seekable

    Permalink
  5. class LineData extends AnyRef

    Permalink
  6. trait Seekable extends AnyRef

    Permalink
  7. trait SourceClosing extends JavaSoundPlayer

    Permalink

    Mix this in to JavaSoundPlayers when you want to close the audio stream when the player is closed.

    Mix this in to JavaSoundPlayers when you want to close the audio stream when the player is closed. Whether you want to do that depends on who creates the stream.

  8. class UriJavaSoundPlayer extends BasicJavaSoundPlayer with SourceClosing

    Permalink

Value Members

  1. object BasicJavaSoundPlayer

    Permalink
  2. object JavaSoundPlayer

    Permalink
  3. object JavaSoundPlayerBase

    Permalink
  4. object LineData

    Permalink
  5. object Seekable

    Permalink

Ungrouped