mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-05 23:48:32 +00:00
28 lines
841 B
C++
28 lines
841 B
C++
// It can simply convert an at3+ file or stream to oma format
|
|
// Thanks to JPCSP project
|
|
|
|
#pragma once
|
|
|
|
#include "../../Globals.h"
|
|
|
|
namespace OMAConvert {
|
|
|
|
// output OMA to outputStream, and return its size. You need to release it by use releaseStream()
|
|
int convertStreamtoOMA(u8* audioStream, int audioSize, u8** outputStream);
|
|
// output OMA to outputStream, and return its size. You need to release it by use releaseStream()
|
|
int convertRIFFtoOMA(u8* riff, int riffSize, u8** outputStream, int *readSize = 0);
|
|
|
|
void releaseStream(u8** stream);
|
|
|
|
int getOMANumberAudioChannels(u8* oma);
|
|
|
|
int getRIFFSize(u8* riff, int bufsize);
|
|
|
|
int getRIFFLoopNum(u8* riff, int bufsize, int *startsample = 0, int *endsample = 0);
|
|
|
|
int getRIFFendSample(u8* riff, int bufsize);
|
|
|
|
int getRIFFChannels(u8* riff, int bufsize);
|
|
} // namespace OMAConvert
|
|
|