From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Plugins/Encoder/enc_wma/main.h | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Src/Plugins/Encoder/enc_wma/main.h (limited to 'Src/Plugins/Encoder/enc_wma/main.h') diff --git a/Src/Plugins/Encoder/enc_wma/main.h b/Src/Plugins/Encoder/enc_wma/main.h new file mode 100644 index 00000000..460fb03e --- /dev/null +++ b/Src/Plugins/Encoder/enc_wma/main.h @@ -0,0 +1,55 @@ +#include +#include + +#include "../nsv/enc_if.h" +#include "resource.h" + +// LGIVEN Mods 4-25-05 +// Config info saved in Winamp.ini [enc_wma]---conf=xxxxxxxxxxx +typedef struct +{ + int config_nch; // Number of channels of encoder/fmt selected + int config_bitrate; // Bitrate of encoder/fmt selected + int config_bitsSample; // Bits/Sample of encoder/fmt selected + int config_samplesSec; // Sample rate of encoder/fmt selected + int config_encoder; // Encoder offset in table in Config Dialog + BOOL config_vbr; // VBR or not + DWORD config_passes; // number of passes (1 or 2) +} +configtype; + +typedef struct +{ + configtype cfg; // config type struct + char *configfile; // Name of config file (...\Winamp.ini) +} +configwndrec; + +// Data table values in Config Dialog +// One of these for each format + +struct formatType +{ + wchar_t *formatName; // Format Name (for display) + int offset; // offset in WMEncoder for this Encoder + int nChannels; // number of channels + int bitsSample; // Bits per sample + int samplesSec; // Samples per sec + int bitrate; // Bitrate value + int vbr; +}; + +// One of these for each encoder +struct EncoderType +{ + wchar_t *encoderName; // Encoder name (for display) + int offset; // Offset in WMEncoder + int numFormats; // Number of formats in WMEncoder for this encoder + struct _GUID mediaType; // Media type GUID + BOOL vbr; + DWORD numPasses; + formatType* formats; +}; + + +BOOL CALLBACK ConfigProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); -- cgit