CPI_Player.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:2k
- #define CP_CODEC_WINAMPPLUGIN 0x0
- //#define CP_CODEC_OGG 0x1
- #define CP_CODEC_WAV 0x2
- #define CP_CODEC_MPEG 0x3
- #define CP_CODEC_last 0x3
- #define CP_CODEC_default CP_CODEC_WINAMPPLUGIN
- #define CP_OUTPUT_WAVE 0x0
- #define CP_OUTPUT_DIRECTSOUND 0x1
- #define CP_OUTPUT_FILE 0x2
- #define CP_OUTPUT_last 0x2
- CP_HPLAYER CPI_Player__Create(HWND hWndMain);
- void CPI_Player__Destroy(CP_HPLAYER hPlayer);
- void CPI_Player__ReopenMixer(CP_HPLAYER hPlayer);
- void CPI_Player__OpenFile(CP_HPLAYER hPlayer, const char* pcFilename);
- void CPI_Player__Seek(CP_HPLAYER hPlayer, const int iSeekPercent_Numerator, const int iSeekPercent_Denominator);
- void CPI_Player__Play(CP_HPLAYER hPlayer);
- void CPI_Player__Stop(CP_HPLAYER hPlayer);
- void CPI_Player__Pause(CP_HPLAYER hPlayer);
- void CPI_Player__BlockMessagesUntilEndOfStream(CP_HPLAYER hPlayer);
- void CPI_Player__OnOutputDeviceChange(CP_HPLAYER hPlayer);
- void CPI_Player__SetVolume(CP_HPLAYER hPlayer, const int iNewVolume);
- int CPI_Player__GetVolume(CP_HPLAYER hPlayer);
- void CPI_Player__SetEQ(CP_HPLAYER hPlayer, const BOOL bEnabled, const int cBands[9]);
- void CPI_Player__EnumOutputDevices(CP_HPLAYER hPlayer);
- //
- void CPI_Player__SendSyncCookie(CP_HPLAYER hPlayer, const int iCookie);
- void CPI_Player__SetPositionRange(CP_HPLAYER hPlayer, const int iRange);
- void CPI_Player__AssociateFileExtensions(CP_HPLAYER hPlayer);
- BOOL CPI_Player__HandleNotifyMessages(CP_HPLAYER hPlayer, UINT uiMessage, WPARAM wParam, LPARAM lParam, LRESULT* plResult);
- void CPI_Player_cb_OnStreamInfo(CP_HPLAYER hPlayer, const CPs_FileInfo* pInfo);
- void CPI_Player_cb_OnStreamOffset_Secs(CP_HPLAYER hPlayer, const int iTrackElapsedSeconds);
- void CPI_Player_cb_OnStreamOffset_Range(CP_HPLAYER hPlayer, const int iTrackElapsed_Range);
- void CPI_Player_cb_OnPlayerState(CP_HPLAYER hPlayer, const CPe_PlayerState enPlayerState);
- void CPI_Player_cb_OnVolumeChange(CP_HPLAYER hPlayer, const int iNewVolume);
- void CPI_Player_cb_OnEnumOutputDevice(CP_HPLAYER hPlayer, const char* pcDeviceName, const int iDeviceID);
- void CPI_Player_cb_OnSyncCookie(CP_HPLAYER hPlayer, const int iCookie);
- void CPI_Player_cb_OnStreamStateChange(CP_HPLAYER hPlayer, const BOOL bStreaming, const int iBufferUsagePercent);
- typedef void* CP_HEQUALISER;