• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdemid
 

libtdemid

Public Attributes | List of all members
PlayerController Struct Reference

#include <player.h>

Public Attributes

volatile ulong ticksTotal
 
volatile ulong ticksPlayed
 
volatile double millisecsPlayed
 
volatile ulong beginmillisec
 
volatile int tempo
 
volatile int num
 
volatile int den
 
volatile int SPEVprocessed
 
volatile int SPEVplayed
 
volatile int OK
 
volatile int playing
 
volatile int paused
 
volatile int moving
 
volatile int finished
 
volatile int message TDE_DEPRECATED
 
volatile ulong gotomsec
 
volatile int error
 
volatile int gm
 
volatile int volumepercentage
 
volatile bool forcepgm [16]
 
volatile int pgm [16]
 
volatile double ratioTempo
 
volatile bool isSendingAllNotesOff
 
volatile MidiEvent * ev
 

Detailed Description

PlayerController is a struct that is used by the MidiPlayer object to tell other parts of the application about the status of the MIDI playing.

Struct used to have control over the player engine

Version
0.9.5 17/01/2000
Author
Antonio Larrosa Jimenez larro.nosp@m.sa@k.nosp@m.de.or.nosp@m.g

Definition at line 138 of file player.h.

Member Data Documentation

◆ error

volatile int PlayerController::error

When error is 1, an error has ocurred (i.e.

it coultn't open the device)

Definition at line 196 of file player.h.

◆ finished

volatile int PlayerController::finished

When the player has finished playing a song, finished is set to 1.

Definition at line 177 of file player.h.

◆ forcepgm

volatile bool PlayerController::forcepgm[16]

Activate or disactivate the force to use a patch for a given channel.

See also
pgm

Definition at line 215 of file player.h.

◆ gm

volatile int PlayerController::gm

If gm is 1, the song follows the General Midi standard, if gm is 0, the song is in MT 32 format.

Definition at line 202 of file player.h.

◆ moving

volatile int PlayerController::moving

When the player seeking the position of the song, moving is set to 1.

Definition at line 172 of file player.h.

◆ OK

volatile int PlayerController::OK

When pause is released, if the caller must know when the player has opened the devices and is playing again, then it just has to check to see when OK changes the value to 1.

Definition at line 157 of file player.h.

◆ paused

volatile int PlayerController::paused

When the player is paused, paused is set to 1.

Definition at line 167 of file player.h.

◆ pgm

volatile int PlayerController::pgm[16]

Force a given patch in each channel at "this" moment, as determined by forcepgm.

Definition at line 221 of file player.h.

◆ playing

volatile int PlayerController::playing

When the player is playing (or paused), playing is set to 1.

Definition at line 162 of file player.h.

◆ ratioTempo

volatile double PlayerController::ratioTempo

Ratio to multiply the tempo to.

Definition at line 226 of file player.h.

◆ volumepercentage

volatile int PlayerController::volumepercentage

100 means no change, 50 halfs the volume, 200 doubles it (if possible), etc.

See also
DeviceManager::setVolumePercentage()

Definition at line 209 of file player.h.


The documentation for this struct was generated from the following file:
  • player.h

libtdemid

Skip menu "libtdemid"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdemid

Skip menu "libtdemid"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for libtdemid by doxygen 1.9.1
This website is maintained by Timothy Pearson.