blob: 460fb03e15bde3f8ab3544d4b976ba0d8ea8604b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#include <windows.h>
#include <stdio.h>
#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);
|