diff options
| author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
| commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
| tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/mp3-mpg123/nsvmain.h | |
| parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
| parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
| download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz | |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/mp3-mpg123/nsvmain.h')
| -rw-r--r-- | Src/mp3-mpg123/nsvmain.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Src/mp3-mpg123/nsvmain.h b/Src/mp3-mpg123/nsvmain.h new file mode 100644 index 00000000..802b6d88 --- /dev/null +++ b/Src/mp3-mpg123/nsvmain.h @@ -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; +}; |
