c_encoder_fhgaac.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __C_ENCODER_FHGAAC_H__
  2. #define __C_ENCODER_FHGAAC_H__
  3. #include "c_encoder_nsv.h"
  4. struct T_ENCODER_FHGAAC_INFO : public T_ENCODER_NSV_INFO
  5. {
  6. unsigned int output_profile;
  7. unsigned int output_surround;
  8. };
  9. #define FHGAAC_DEFAULT_OUTPUTBITRATE 48
  10. #define FHGAAC_DEFAULT_OUTPUTPROFILE 0 // automatic
  11. #define FHGAAC_DEFAULT_OUTPUTSURROUND 0
  12. class C_ENCODER_FHGAAC : public C_ENCODER_NSV {
  13. private:
  14. HWND winamp;
  15. protected:
  16. virtual void FillAttribs();
  17. public:
  18. static HINSTANCE hEncoderInstance;
  19. C_ENCODER_FHGAAC(HWND hwnd = 0);
  20. virtual ~C_ENCODER_FHGAAC();
  21. static bool isPresent(HWND winamp);
  22. virtual void ReadConfFile(char * conf_file, char * section=NULL);
  23. virtual void FillConfFile(char * conf_file, char * section=NULL);
  24. static void Unload() { if(hEncoderInstance) FreeLibrary(hEncoderInstance); hEncoderInstance=0; }
  25. virtual char * GetContentType() { return "audio/aacp"; }
  26. virtual HINSTANCE GetEncoderInstance() { return hEncoderInstance; }
  27. };
  28. #endif /* !__C_ENCODER_AACP_H__ */