Initial commit
This commit is contained in:
30
source/engine/datastream.h
Normal file
30
source/engine/datastream.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef DATASTREAM_H
|
||||
#define DATASTREAM_H
|
||||
|
||||
#include <SDL_audio.h>
|
||||
|
||||
typedef struct plm_t plm_t;
|
||||
|
||||
|
||||
struct datastream {
|
||||
plm_t *plm;
|
||||
struct mShader *shader;
|
||||
double last_time;
|
||||
int playing;
|
||||
SDL_AudioDeviceID audio_device;
|
||||
uint32_t texture_y;
|
||||
uint32_t texture_cb;
|
||||
uint32_t texture_cr;
|
||||
};
|
||||
|
||||
struct datastream *MakeDatastream(struct mShader *shader);
|
||||
void ds_openvideo(struct datastream *ds, const char *path,
|
||||
const char *adriver);
|
||||
void ds_advance(struct datastream *ds, uint32_t ms);
|
||||
void ds_seek(struct datastream *ds, uint32_t time);
|
||||
void ds_pause(struct datastream *ds);
|
||||
void ds_stop(struct datastream *ds);
|
||||
int ds_videodone(struct datastream *ds);
|
||||
double ds_remainingtime(struct datastream *ds);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user