summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2016-01-10 20:09:06 +0200
committerTuomas Virtanen <katajakasa@gmail.com>2016-01-10 20:09:06 +0200
commit8ee9b3e560a39d65c62a87fc797ddcc1279b3a78 (patch)
tree95fcffd406041b6ee09721e3d5d708588ab7de47 /include
parentc29fb5865954310042aa833baf85064364883b28 (diff)
Cleanups + allow audio only playback
Diffstat (limited to 'include')
-rw-r--r--include/kitchensink/kitplayer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/kitchensink/kitplayer.h b/include/kitchensink/kitplayer.h
index 8cae811..8f67a9b 100644
--- a/include/kitchensink/kitplayer.h
+++ b/include/kitchensink/kitplayer.h
@@ -3,11 +3,12 @@
#include "kitchensink/kitsource.h"
#include "kitchensink/kitconfig.h"
-#include <stdbool.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_thread.h>
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -25,13 +26,15 @@ typedef enum Kit_PlayerState {
} Kit_PlayerState;
typedef struct Kit_AudioFormat {
- int bytes;
+ bool is_enabled;
bool is_signed;
+ int bytes;
int samplerate;
int channels;
} Kit_AudioFormat;
typedef struct Kit_VideoFormat {
+ bool is_enabled;
unsigned int format;
int width;
int height;