From 9b1c5505973abffe1e3c3ab3ba7f84664fbf161f Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 27 Feb 2004 01:35:23 +0000 Subject: add xfade and audio to status, remove crossfade no args options git-svn-id: https://svn.musicpd.org/mpd/trunk@75 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/player.h | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 43c136e3a..a50b799c8 100644 --- a/src/player.h +++ b/src/player.h @@ -19,6 +19,8 @@ #ifndef PLAYER_H #define PLAYER_H +#include "mpd_types.h" + #include #include @@ -47,27 +49,30 @@ #define PLAYER_QUEUE_LOCKED 1 typedef struct _PlayerControl { - int decodeType; - int stop; - int play; - int pause; - int state; - int closeAudio; - int error; - unsigned long bitRate; + mpd_sint8 decodeType; + mpd_sint8 stop; + mpd_sint8 play; + mpd_sint8 pause; + mpd_sint8 state; + mpd_sint8 closeAudio; + mpd_sint8 error; + mpd_uint16 bitRate; + mpd_sint8 bits; + mpd_sint8 channels; + mpd_uint32 sampleRate; float beginTime; float totalTime; float elapsedTime; char file[MAXPATHLEN+1]; char erroredFile[MAXPATHLEN+1]; - int queueState; - int queueLockState; - int lockQueue; - int unlockQueue; - int seek; + mpd_sint8 queueState; + mpd_sint8 queueLockState; + mpd_sint8 lockQueue; + mpd_sint8 unlockQueue; + mpd_sint8 seek; double seekWhere; float crossFade; - int softwareVolume; + mpd_sint8 softwareVolume; double totalPlayTime; } PlayerControl; @@ -125,4 +130,10 @@ void setPlayerSoftwareVolume(int volume); double getPlayerTotalPlayTime(); +unsigned int getPlayerSampleRate(); + +int getPlayerBits(); + +int getPlayerChannels(); + #endif -- cgit v1.2.3