$insong

From Scriptwiki
(Redirected from $inmp3)
Jump to: navigation, search

Return $true if the specified sound type is playing, $false otherwise.

$inwave
$inmidi
$insong
  • These functions have no parameters.

Properties

  • fname - returns the filename of the currently playing song
  • pos - returns the position in the currently playing song
  • length - returns the length of the currently playing song
  • pause - returns $true if a song is paused, $false otherwise

Example

$insong.fname    returns the filename of the currently playing song
$inmidi.length   returns the length of the currently playing midi file

See Also

  • /splay - Plays a sound file.
  • $sound - Returns the directory for a sound type or returns information about a sound file.