Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
3.2 KiB

  1. LPTSTR SoundRec_GetFormatName(LPWAVEFORMATEX pwfx);
  2. MMRESULT FAR PASCAL
  3. ChooseDestinationFormat(
  4. HINSTANCE hInst,
  5. HWND hwndParent,
  6. PWAVEFORMATEX pwfxIn,
  7. PWAVEFORMATEX *ppwfxOut,
  8. DWORD fdwEnum);
  9. typedef struct tPROGRESS {
  10. HWND hPrg; // window to post progress messages
  11. DWORD dwTotal; // percent of full process this requires
  12. DWORD dwComplete; // fixed percent completed
  13. } PROGRESS, *PPROGRESS, FAR * LPPROGRESS;
  14. UINT_PTR CALLBACK SaveAsHookProc(
  15. HWND hdlg,
  16. UINT msg,
  17. WPARAM wParam,
  18. LPARAM lParam);
  19. MMRESULT
  20. ConvertFormat(
  21. PWAVEFORMATEX pwfxSrc, // pwfx specifying source format
  22. DWORD cbSrc, // size of the source buffer
  23. LPBYTE pbSrc, // source buffer
  24. PWAVEFORMATEX pwfxDst, // pwfx specifying dest format
  25. DWORD * pcbDst, // return size of the dest buffer
  26. LPBYTE * ppbDst, // dest buffer
  27. DWORD cBlks, // number of blocks
  28. PPROGRESS pPrg); // progress update
  29. MMRESULT
  30. ConvertMultipleFormats(
  31. PWAVEFORMATEX pwfxSrc, // pwfx specifying source format
  32. DWORD cbSrc, // size of the source buffer
  33. LPBYTE pbSrc, // source buffer
  34. PWAVEFORMATEX pwfxDst, // pwfx specifying dest format
  35. DWORD * pcbDst, // return size of the dest buffer
  36. LPBYTE * ppbDst, // dest buffer
  37. DWORD cBlks, // number of blocks
  38. PPROGRESS pPrg); // progress update
  39. MMRESULT
  40. ConvertFormatDialog(
  41. HWND hParent,
  42. PWAVEFORMATEX pwfxSrc, // pwfx specifying source format
  43. DWORD cbSrc, // size of the source buffer
  44. LPBYTE pbSrc, // source buffer
  45. PWAVEFORMATEX pwfxDst, // pwfx specifying dest format
  46. DWORD * pcbDst, // return size of the dest buffer
  47. LPBYTE * ppbDst, // dest buffer
  48. DWORD cBlks, // number of blocks
  49. PPROGRESS pPrg); // progress update
  50. typedef struct t_SGLOBALS {
  51. PWAVEFORMATEX *ppwfx;
  52. DWORD *pcbwfx;
  53. DWORD *pcbdata;
  54. LPBYTE *ppbdata;
  55. LONG *plSamples; // number of samples
  56. LONG *plSamplesValid;// number of valid samples
  57. LONG *plWavePosition;// current sample position
  58. } SGLOBALS, *PSGLOBALS, FAR * LPSGLOBALS;
  59. /* extend use of this throughout soundrec */
  60. typedef struct t_WAVEDOC
  61. {
  62. PWAVEFORMATEX pwfx; // format
  63. LPBYTE pbdata; // sample data
  64. DWORD cbdata; // sizeof data buffer
  65. LPTSTR pszFileName; // document file name
  66. LPTSTR pszCopyright; // copyright info
  67. HICON hIcon; // document icon
  68. BOOL fChanged; // changed in viewing
  69. LPVOID lpv; // extra
  70. } WAVEDOC, *PWAVEDOC, FAR *LPWAVEDOC;
  71. BOOL SoundRec_Properties(HWND hwnd, HINSTANCE hinst, PWAVEDOC pwd);