DecodeFile.h 686 B

123456789101112131415161718192021
  1. #ifndef NULLSOFT_WINAMP_DECODEFILE_H
  2. #define NULLSOFT_WINAMP_DECODEFILE_H
  3. #include "api_decodefile.h"
  4. #include "CommonReader.h"
  5. class DecodeFile : public api_decodefile
  6. {
  7. public:
  8. static const char *getServiceName() { return "File Decode API"; }
  9. static const GUID getServiceGuid() { return decodeFileGUID; }
  10. public:
  11. ifc_audiostream *OpenAudio(const wchar_t *filename, AudioParameters *parameters);
  12. ifc_audiostream *OpenAudioBackground(const wchar_t *filename, AudioParameters *parameters);
  13. void CloseAudio(ifc_audiostream *audioStream);
  14. protected:
  15. RECVS_DISPATCH;
  16. private:
  17. CommonReader *MakeReader(const wchar_t *filename, AudioParameters *parameters, bool useUnagi);
  18. };
  19. #endif