aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index 3b3bf250c..6bc671002 100644
--- a/src/player.c
+++ b/src/player.c
@@ -414,3 +414,21 @@ double getPlayerTotalPlayTime() {
return pc->totalPlayTime+pc->elapsedTime-pc->beginTime;
}
+
+unsigned int getPlayerSampleRate() {
+ PlayerControl * pc = &(getPlayerData()->playerControl);
+
+ return pc->sampleRate;
+}
+
+int getPlayerBits() {
+ PlayerControl * pc = &(getPlayerData()->playerControl);
+
+ return pc->bits;
+}
+
+int getPlayerChannels() {
+ PlayerControl * pc = &(getPlayerData()->playerControl);
+
+ return pc->channels;
+}