Interface for all players. More...
Public Member Functions | |
void | Play () |
Plays the record. More... | |
void | PlayOrStop () |
Plays or stops the record. More... | |
void | Next () |
Plays the next record. More... | |
void | Previous () |
Plays the previous record. More... | |
void | PauseOrUnPause () |
Pause or unpause the playback of the record. More... | |
void | Pause () |
Pauses the playback of the record. More... | |
void | UnPause () |
Unpause the playback of the record. More... | |
void | Stop () |
Stops the playback of the record. More... | |
void | Restart () |
Restarts the playback of the record. More... | |
void | MuteOrUnMute () |
Mute or unmute the playback of the record. More... | |
void | Mute () |
Mute the playback of the record. More... | |
void | UnMute () |
Unmute the playback of the record. More... | |
Properties | |
Crosstales.DJ.Model.Record | Record [get, set] |
Current record of this player. More... | |
bool | isLoop [get, set] |
Loop the record on/off. More... | |
byte[] | AudioData [get, set] |
Audio data for the current Record read outside of DJ (e.g. from the Android SAF). More... | |
bool | HandleFocus [get, set] |
Starts and stops the Turntable depending on the focus and running state. More... | |
bool | Caching [get, set] |
Caches the tracks if possible on/off. More... | |
bool | Streaming [get, set] |
Enable or disable the streaming of audio files. More... | |
int | ChunkSize [get, set] |
Size of the streaming-chunk in bytes (CT-decoder only). More... | |
int | CacheStreamSize [get, set] |
Size of the cache stream in bytes (CT-decoder only). More... | |
int | BufferSize [get, set] |
Size of the buffer in bytes (CT-decoder only). More... | |
bool | CaptureDataStream [get, set] |
Capture the encoded PCM-stream from this player. More... | |
bool | ForceInternalMP3Codec [get, set] |
Force internal MP3 codec instead of FMOD (Unity). More... | |
bool | ForceInternalOGGCodec [get, set] |
Force internal OGG codec instead of FMOD (Unity). More... | |
bool | InternalCodecsReadPCM [get, set] |
Read PCM data directly with the internal codecs. This is the standard behaviour for WebGL. More... | |
bool | ReadDataAsStream [get, set] |
Reads the file data as stream. More... | |
AudioSource | Source [get] |
AudioSource for this player. More... | |
float | Position [get, set] |
Position of the current audio record in percent. More... | |
int | SamplePosition [get, set] |
Position of the current audio record in samples. More... | |
float | Elapsed [get, set] |
Elapsed time of the current audio record in seconds. More... | |
float | Duration [get] |
Returns the duration of the current audio record in seconds. More... | |
int | Samples [get] |
Returns the total samples of the current audio record. More... | |
Crosstales.DJ.Model.Enum.AudioCodec | Codec [get] |
Codec of for this player. More... | |
float | BufferProgress [get] |
Current buffer progress. More... | |
bool | isBuffering [get] |
Is this player buffering? More... | |
bool | isPlayback [get] |
Is this player in playback-mode? More... | |
bool | isAudioPlaying [get] |
Is this player playing audio? More... | |
bool | isPaused [get, set] |
Is this player in paused? More... | |
System.IO.Stream | DataStream [get] |
Encoded PCM-stream from this player. More... | |
int | Channels [get] |
Current audio channels of the current record. More... | |
int | SampleRate [get] |
Current audio sample rate of the current record. More... | |
float | Volume [get, set] |
Current volume of this player. More... | |
float | Pitch [get, set] |
Current pitch of this player. More... | |
float | StereoPan [get, set] |
Current stereo pan of this player. More... | |
bool | isMuted [get, set] |
Is this player muted? More... | |
System.Collections.Generic.List< Crosstales.DJ.Model.Record > | PlayedRecords [get] |
List of all played records. More... | |
Detailed Description
Interface for all players.
Member Function Documentation
◆ Mute()
void Crosstales.DJ.IPlayer.Mute | ( | ) |
Mute the playback of the record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ MuteOrUnMute()
void Crosstales.DJ.IPlayer.MuteOrUnMute | ( | ) |
Mute or unmute the playback of the record.
Implemented in Crosstales.DJ.BasePlayer.
◆ Next()
void Crosstales.DJ.IPlayer.Next | ( | ) |
Plays the next record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ Pause()
void Crosstales.DJ.IPlayer.Pause | ( | ) |
Pauses the playback of the record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ PauseOrUnPause()
void Crosstales.DJ.IPlayer.PauseOrUnPause | ( | ) |
Pause or unpause the playback of the record.
Implemented in Crosstales.DJ.BasePlayer.
◆ Play()
void Crosstales.DJ.IPlayer.Play | ( | ) |
Plays the record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ PlayOrStop()
void Crosstales.DJ.IPlayer.PlayOrStop | ( | ) |
Plays or stops the record.
Implemented in Crosstales.DJ.BasePlayer.
◆ Previous()
void Crosstales.DJ.IPlayer.Previous | ( | ) |
Plays the previous record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ Restart()
void Crosstales.DJ.IPlayer.Restart | ( | ) |
Restarts the playback of the record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ Stop()
void Crosstales.DJ.IPlayer.Stop | ( | ) |
Stops the playback of the record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ UnMute()
void Crosstales.DJ.IPlayer.UnMute | ( | ) |
Unmute the playback of the record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
◆ UnPause()
void Crosstales.DJ.IPlayer.UnPause | ( | ) |
Unpause the playback of the record.
Implemented in Crosstales.DJ.Turntable, Crosstales.DJ.SimplePlayer, and Crosstales.DJ.BasePlayer.
Property Documentation
◆ AudioData
|
getset |
Audio data for the current Record read outside of DJ (e.g. from the Android SAF).
◆ BufferProgress
|
get |
Current buffer progress.
◆ BufferSize
|
getset |
Size of the buffer in bytes (CT-decoder only).
◆ CacheStreamSize
|
getset |
Size of the cache stream in bytes (CT-decoder only).
◆ Caching
|
getset |
Caches the tracks if possible on/off.
◆ CaptureDataStream
|
getset |
Capture the encoded PCM-stream from this player.
◆ Channels
|
get |
Current audio channels of the current record.
◆ ChunkSize
|
getset |
Size of the streaming-chunk in bytes (CT-decoder only).
◆ Codec
|
get |
Codec of for this player.
◆ DataStream
|
get |
Encoded PCM-stream from this player.
◆ Duration
|
get |
Returns the duration of the current audio record in seconds.
- Returns
- The duration of the current audio record in seconds.
◆ Elapsed
|
getset |
Elapsed time of the current audio record in seconds.
◆ ForceInternalMP3Codec
|
getset |
Force internal MP3 codec instead of FMOD (Unity).
◆ ForceInternalOGGCodec
|
getset |
Force internal OGG codec instead of FMOD (Unity).
◆ HandleFocus
|
getset |
Starts and stops the Turntable depending on the focus and running state.
◆ InternalCodecsReadPCM
|
getset |
Read PCM data directly with the internal codecs. This is the standard behaviour for WebGL.
◆ isAudioPlaying
|
get |
Is this player playing audio?
- Returns
- True if this player is playing audio.
◆ isBuffering
|
get |
Is this player buffering?
- Returns
- True if this player is buffering.
◆ isLoop
|
getset |
Loop the record on/off.
◆ isMuted
|
getset |
Is this player muted?
◆ isPaused
|
getset |
Is this player in paused?
◆ isPlayback
|
get |
Is this player in playback-mode?
◆ Pitch
|
getset |
Current pitch of this player.
◆ PlayedRecords
|
get |
List of all played records.
◆ Position
|
getset |
Position of the current audio record in percent.
◆ ReadDataAsStream
|
getset |
Reads the file data as stream.
◆ Record
|
getset |
Current record of this player.
◆ SamplePosition
|
getset |
Position of the current audio record in samples.
◆ SampleRate
|
get |
Current audio sample rate of the current record.
◆ Samples
|
get |
Returns the total samples of the current audio record.
- Returns
- The total samples of the current audio record.
◆ Source
|
get |
AudioSource for this player.
◆ StereoPan
|
getset |
Current stereo pan of this player.
◆ Streaming
|
getset |
Enable or disable the streaming of audio files.
◆ Volume
|
getset |
Current volume of this player.
The documentation for this interface was generated from the following file:
- C:/Users/slaub/Unity/assets/DJPro/DJPro/Assets/Plugins/crosstales/DJ/Scripts/IPlayer.cs