Add check for Opus file type

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2016-12-27 17:58:13 +00:00
parent c12bf9eb82
commit 37ee6e2f58
3 changed files with 23 additions and 2 deletions

View File

@@ -1,6 +1,16 @@
#include <3ds.h>
#include <opus/opusfile.h>
int playOpus(const char* in)
{
return 0;
}
int isOpus(const char* in)
{
int err = 0;
OggOpusFile* opusTest = op_test_file(in, &err);
op_free(opusTest);
return err;
}