Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

20
Src/mp3-mpg123/nsvmain.h Normal file
View File

@ -0,0 +1,20 @@
#pragma once
#include <mpg123.h>
#include "../nsv/dec_if.h"
class MP3_Decoder : public IAudioDecoder
{
public:
MP3_Decoder();
~MP3_Decoder() { };
int decode(void *in, int in_len,
void *out, int *out_len,
unsigned int out_fmt[8]);
void flush();
private:
mpg123_handle *decoder;
float pcm_buf[1152*2*2];
size_t pcm_buf_used;
int pcm_offs;
int fused;
};