area51/Scratch/SA/SoundPkg/decode.hpp
Andrew Sampson 431f72b93a source
2021-08-27 19:22:41 -07:00

21 lines
No EOL
517 B
C++

#ifndef __DECODE_H
#define __DECODE_H
#include "x_types.hpp"
typedef struct s_DecodeHeader
{
s32 Length;
s32 SampleRate;
s16 Type;
s16 Flags;
s32 LoopStart;
s32 LoopEnd;
s16 *pLeft;
s16 *pRight;
} t_DecodeHeader;
// Input a filename. Returns a ptr to a block of decoded data
// in pcm format. NULL if it can't decode it.
void DecodeToPcm(char *pFilename,t_DecodeHeader *pHeader);
#endif