1
0

main.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include "../nsv/enc_if.h"
  4. #include "resource.h"
  5. // LGIVEN Mods 4-25-05
  6. // Config info saved in Winamp.ini [enc_wma]---conf=xxxxxxxxxxx
  7. typedef struct
  8. {
  9. int config_nch; // Number of channels of encoder/fmt selected
  10. int config_bitrate; // Bitrate of encoder/fmt selected
  11. int config_bitsSample; // Bits/Sample of encoder/fmt selected
  12. int config_samplesSec; // Sample rate of encoder/fmt selected
  13. int config_encoder; // Encoder offset in table in Config Dialog
  14. BOOL config_vbr; // VBR or not
  15. DWORD config_passes; // number of passes (1 or 2)
  16. }
  17. configtype;
  18. typedef struct
  19. {
  20. configtype cfg; // config type struct
  21. char *configfile; // Name of config file (...\Winamp.ini)
  22. }
  23. configwndrec;
  24. // Data table values in Config Dialog
  25. // One of these for each format
  26. struct formatType
  27. {
  28. wchar_t *formatName; // Format Name (for display)
  29. int offset; // offset in WMEncoder for this Encoder
  30. int nChannels; // number of channels
  31. int bitsSample; // Bits per sample
  32. int samplesSec; // Samples per sec
  33. int bitrate; // Bitrate value
  34. int vbr;
  35. };
  36. // One of these for each encoder
  37. struct EncoderType
  38. {
  39. wchar_t *encoderName; // Encoder name (for display)
  40. int offset; // Offset in WMEncoder
  41. int numFormats; // Number of formats in WMEncoder for this encoder
  42. struct _GUID mediaType; // Media type GUID
  43. BOOL vbr;
  44. DWORD numPasses;
  45. formatType* formats;
  46. };
  47. BOOL CALLBACK ConfigProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);