diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-12-05 16:07:26 +0100 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-12-05 16:07:26 +0100 |
commit | 13e06e633d966a7600794deb43d725cbd89e108c (patch) | |
tree | 5285721085c225f1a547830471e3a628d0657565 /src/player/player2_private.h | |
parent | d25764daa0c4c1e4a5887ca1599d4975a7a799c6 (diff) | |
parent | 864afb87798a0669f9a58aaebba5d874546acffe (diff) | |
download | pianobar-windows-13e06e633d966a7600794deb43d725cbd89e108c.tar.gz pianobar-windows-13e06e633d966a7600794deb43d725cbd89e108c.tar.bz2 pianobar-windows-13e06e633d966a7600794deb43d725cbd89e108c.zip |
Merge branch 'release/2015.12.05'2015.12.05
Diffstat (limited to 'src/player/player2_private.h')
-rw-r--r-- | src/player/player2_private.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/player/player2_private.h b/src/player/player2_private.h new file mode 100644 index 0000000..757a07e --- /dev/null +++ b/src/player/player2_private.h @@ -0,0 +1,35 @@ +#ifndef __PIANOBAR_PLAYER2_PRIVATE_H__ +#define __PIANOBAR_PLAYER2_PRIVATE_H__ +#pragma once + +#include "config.h" +#include <stdbool.h> +#include "player2.h" + +typedef struct _player2_iface +{ + const char* Id; + const char* Name; + player2_t (*Create) (); + void (*Destroy) (player2_t player); + void (*SetVolume) (player2_t player, float volume); + float (*GetVolume) (player2_t player); + void (*SetGain) (player2_t player, float gainDb); + float (*GetGain) (player2_t player); + double (*GetDuration) (player2_t player); + double (*GetTime) (player2_t player); + bool (*Open) (player2_t player, const char* url); + bool (*Play) (player2_t player); + bool (*Pause) (player2_t player); + bool (*Stop) (player2_t player); + bool (*Finish) (player2_t player); + bool (*IsPlaying) (player2_t player); + bool (*IsPaused) (player2_t player); + bool (*IsStopped) (player2_t player); + bool (*IsFinished) (player2_t player); +} player2_iface; + +extern player2_iface player2_direct_show; +extern player2_iface player2_windows_media_foundation; + +#endif /* __PIANOBAR_PLAYER2_PRIVATE_H__ */ |