c_encoder_aacp.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __C_ENCODER_AACP_H__
  2. #define __C_ENCODER_AACP_H__
  3. #include "c_encoder_nsv.h"
  4. struct T_ENCODER_AACP_INFO : public T_ENCODER_NSV_INFO
  5. {
  6. unsigned int output_quality;
  7. unsigned int output_samplerate;
  8. unsigned int output_channelmode;
  9. unsigned int output_v2enable;
  10. };
  11. #define AACP_DEFAULT_OUTPUTCHANNELMODE 4
  12. #define AACP_DEFAULT_OUTPUTBITRATE 48
  13. #define AACP_DEFAULT_OUTPUTQUALITY 2
  14. #define AACP_DEFAULT_OUTPUTSAMPLERATE 44100
  15. #define AACP_DEFAULT_OUTPUTV2ENABLE 1
  16. class C_ENCODER_AACP : public C_ENCODER_NSV {
  17. private:
  18. HWND winamp;
  19. protected:
  20. virtual void FillAttribs();
  21. public:
  22. static HINSTANCE hEncoderInstance;
  23. C_ENCODER_AACP(HWND hwnd = 0);
  24. virtual ~C_ENCODER_AACP();
  25. static bool isPresent(HWND winamp);
  26. virtual void ReadConfFile(char * conf_file, char * section=NULL);
  27. virtual void FillConfFile(char * conf_file, char * section=NULL);
  28. static void Unload() { if(hEncoderInstance) FreeLibrary(hEncoderInstance); hEncoderInstance=0; }
  29. virtual char * GetContentType() { return "audio/aacp"; }
  30. virtual HINSTANCE GetEncoderInstance() { return hEncoderInstance; }
  31. };
  32. #endif /* !__C_ENCODER_AACP_H__ */