ElevenMPV/include/audio/opus.h
Joel16 e7109de726 Add seeking via touchscreen
- WAV: works perfectly
- FLAC: works perfectly but just a tad bit slower than WAV.
- MP3: works perfectly but a tad bit slower than FLAC.
- MOD: works perfectly
- OGG: works perfectly however might crash if you use it right after seeking at an index.
- OPUS: works perfectly however WILL crash if you use it right after seeking at an index, but works fine if you wait a second before seeking again. (cannot constantly seek like the others)
2019-05-17 13:52:41 -04:00

16 lines
394 B
C

#ifndef _ELEVENMPV_AUDIO_OPUS_H_
#define _ELEVENMPV_AUDIO_OPUS_H_
#include <psp2/types.h>
int OPUS_Init(const char *path);
SceUInt32 OPUS_GetSampleRate(void);
SceUInt8 OPUS_GetChannels(void);
void OPUS_Decode(void *buf, unsigned int length, void *userdata);
SceUInt64 OPUS_GetPosition(void);
SceUInt64 OPUS_GetLength(void);
SceUInt64 OPUS_Seek(SceUInt64 index);
void OPUS_Term(void);
#endif