ElevenMPV/include/audio/audio.h
Joel16 32ab69e92d Minor fixes & bump version
- Fixed issue with some FLAC audio files crashing if metadata is enabled.
- OPUS metadata is now enabled in settings. (For picture data only)
2019-05-15 00:06:19 -04:00

33 lines
670 B
C

#ifndef _ELEVENMPV_AUDIO_H_
#define _ELEVENMPV_AUDIO_H_
#include <psp2/types.h>
#include <vita2d.h>
extern SceBool playing, paused;
typedef struct {
SceBool has_meta;
char title[64];
char album[64];
char artist[64];
char year[64];
char comment[64];
char genre[64];
vita2d_texture *cover_image;
} Audio_Metadata;
extern Audio_Metadata metadata;
int Audio_Init(const char *path);
SceBool Audio_IsPaused(void);
void Audio_Pause(void);
void Audio_Stop(void);
SceUInt64 Audio_GetPosition(void);
SceUInt64 Audio_GetLength(void);
SceUInt64 Audio_GetPositionSeconds(void);
SceUInt64 Audio_GetLengthSeconds(void);
void Audio_Term(void);
#endif