C# Class javazoom.jl.player.Player

The Player class implements a simple player for playback of an MPEG audio stream.
ファイルを表示 Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
Player ( System stream ) : System

Creates a new Player instance.

Player ( System stream, AudioDevice device ) : System
close ( ) : void

Cloases this player. Any audio currently playing is stopped immediately.

play ( int frames ) : bool

Plays a number of MPEG audio frames.

play ( ) : void

Protected Methods

Method Description
decodeFrame ( ) : bool

Decodes a single frame.

Method Details

Player() public method

Creates a new Player instance.
public Player ( System stream ) : System
stream System
return System

Player() public method

public Player ( System stream, AudioDevice device ) : System
stream System
device AudioDevice
return System

close() public method

Cloases this player. Any audio currently playing is stopped immediately.
public close ( ) : void
return void

decodeFrame() protected method

Decodes a single frame.
protected decodeFrame ( ) : bool
return bool

play() public method

Plays a number of MPEG audio frames.
public play ( int frames ) : bool
frames int
return bool

play() public method

public play ( ) : void
return void