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/Plugins/Input/in_flac/main.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/Plugins/Input/in_flac/main.h')
-rw-r--r-- | Src/Plugins/Input/in_flac/main.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Src/Plugins/Input/in_flac/main.h b/Src/Plugins/Input/in_flac/main.h new file mode 100644 index 00000000..bbe316a4 --- /dev/null +++ b/Src/Plugins/Input/in_flac/main.h @@ -0,0 +1,40 @@ +#ifndef NULLSOFT_IN_FLAC_MAIN_H +#define NULLSOFT_IN_FLAC_MAIN_H + +#define PLUGIN_VER L"3.2" + +#include <windows.h> +extern HANDLE killswitch; + +#include "../Winamp/in2.h" +extern In_Module plugin; + +DWORD CALLBACK FLACThread(LPVOID param); +extern int pan, volume; +extern volatile int currentSongLength; + +void CALLBACK APCPause(ULONG_PTR data); +void CALLBACK APCSeek(ULONG_PTR data); + +void ResetMetadataCache(); + +#include <FLAC/all.h> +void InterleaveAndTruncate(const FLAC__int32 *const buffer[], void *_output, int bps, int channels, int blocksize, double gain=1.0); + +extern const wchar_t *winampINI; +char *BuildExtensions(const char *extensions); +extern bool config_average_bitrate; +extern bool fixBitrate; + +extern int m_force_seek; // set this to something other than -1 to make the file start from the given time (in ms) +extern wchar_t *lastfn; + +// {B6CB4A7C-A8D0-4c55-8E60-9F7A7A23DA0F} +static const GUID playbackConfigGroupGUID = + { + 0xb6cb4a7c, 0xa8d0, 0x4c55, { 0x8e, 0x60, 0x9f, 0x7a, 0x7a, 0x23, 0xda, 0xf } + }; + +#define DEFAULT_EXTENSIONS "FLAC" +#define DEFAULT_EXTENSIONSW L"FLAC" +#endif
\ No newline at end of file |