WAVEncoder.h 583 B

12345678910111213141516171819202122232425
  1. #ifndef NULLSOFT_ENC_WAV_WAVENCODER_H
  2. #define NULLSOFT_ENC_WAV_WAVENCODER_H
  3. #include <windows.h>
  4. #include <mmreg.h>
  5. #include <msacm.h>
  6. #include "../nsv/enc_if.h"
  7. #include "Config.h"
  8. #include "Finisher.h"
  9. class WAVEncoder : public AudioCommon
  10. {
  11. public:
  12. WAVEncoder(int nch, int srate, int bps, ACMConfig *config);
  13. int Encode(int framepos, void *in, int in_avail, int *in_used, void *out, int out_avail); //returns bytes in out
  14. void FinishAudio(const wchar_t *filename);
  15. void PrepareToFinish();
  16. WAVEFORMATEX inputFormat;
  17. size_t numBytes;
  18. int first;
  19. bool do_header;
  20. };
  21. #endif