CPI_Player.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:2k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. #define CP_CODEC_WINAMPPLUGIN 0x0
  2. //#define CP_CODEC_OGG 0x1
  3. #define CP_CODEC_WAV 0x2
  4. #define CP_CODEC_MPEG 0x3
  5. #define CP_CODEC_last 0x3
  6. #define CP_CODEC_default CP_CODEC_WINAMPPLUGIN
  7. #define CP_OUTPUT_WAVE 0x0
  8. #define CP_OUTPUT_DIRECTSOUND 0x1
  9. #define CP_OUTPUT_FILE 0x2
  10. #define CP_OUTPUT_last 0x2
  11. CP_HPLAYER CPI_Player__Create(HWND hWndMain);
  12. void CPI_Player__Destroy(CP_HPLAYER hPlayer);
  13. void CPI_Player__ReopenMixer(CP_HPLAYER hPlayer);
  14. void CPI_Player__OpenFile(CP_HPLAYER hPlayer, const char* pcFilename);
  15. void CPI_Player__Seek(CP_HPLAYER hPlayer, const int iSeekPercent_Numerator, const int iSeekPercent_Denominator);
  16. void CPI_Player__Play(CP_HPLAYER hPlayer);
  17. void CPI_Player__Stop(CP_HPLAYER hPlayer);
  18. void CPI_Player__Pause(CP_HPLAYER hPlayer);
  19. void CPI_Player__BlockMessagesUntilEndOfStream(CP_HPLAYER hPlayer);
  20. void CPI_Player__OnOutputDeviceChange(CP_HPLAYER hPlayer);
  21. void CPI_Player__SetVolume(CP_HPLAYER hPlayer, const int iNewVolume);
  22. int CPI_Player__GetVolume(CP_HPLAYER hPlayer); 
  23. void CPI_Player__SetEQ(CP_HPLAYER hPlayer, const BOOL bEnabled, const int cBands[9]);
  24. void CPI_Player__EnumOutputDevices(CP_HPLAYER hPlayer);
  25. //
  26. void CPI_Player__SendSyncCookie(CP_HPLAYER hPlayer, const int iCookie);
  27. void CPI_Player__SetPositionRange(CP_HPLAYER hPlayer, const int iRange);
  28. void CPI_Player__AssociateFileExtensions(CP_HPLAYER hPlayer);
  29. BOOL CPI_Player__HandleNotifyMessages(CP_HPLAYER hPlayer, UINT uiMessage, WPARAM wParam, LPARAM lParam, LRESULT* plResult);
  30. void CPI_Player_cb_OnStreamInfo(CP_HPLAYER hPlayer, const CPs_FileInfo* pInfo);
  31. void CPI_Player_cb_OnStreamOffset_Secs(CP_HPLAYER hPlayer, const int iTrackElapsedSeconds);
  32. void CPI_Player_cb_OnStreamOffset_Range(CP_HPLAYER hPlayer, const int iTrackElapsed_Range);
  33. void CPI_Player_cb_OnPlayerState(CP_HPLAYER hPlayer, const CPe_PlayerState enPlayerState);
  34. void CPI_Player_cb_OnVolumeChange(CP_HPLAYER hPlayer, const int iNewVolume);
  35. void CPI_Player_cb_OnEnumOutputDevice(CP_HPLAYER hPlayer, const char* pcDeviceName, const int iDeviceID);
  36. void CPI_Player_cb_OnSyncCookie(CP_HPLAYER hPlayer, const int iCookie);
  37. void CPI_Player_cb_OnStreamStateChange(CP_HPLAYER hPlayer, const BOOL bStreaming, const int iBufferUsagePercent);
  38. typedef void* CP_HEQUALISER;