全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:761
推到 Plurk!
推到 Facebook!

如何得知CD每首歌撥放的時間

尚未結案
lanfanra
一般會員


發表:48
回覆:51
積分:19
註冊:2003-08-06

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-12-17 15:28:19 IP:61.66.xxx.xxx 未訂閱
請問,如何知道光碟機中CD唱片每一首歌所對應的時間啊?
scott777
一般會員


發表:10
回覆:15
積分:5
註冊:2002-08-26

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-01-06 19:08:21 IP:61.230.xxx.xxx 未訂閱
詳細資料請參看DirectShow章節 Microsoft DirectX 8.1 (C ) IMediaSeeking::GetDuration The GetDuration method retrieves the duration of the stream. Syntax HRESULT GetDuration( LONGLONG *pDuration ); Parameters pDuration [out] Pointer to a variable that receives the duration, in units of the current time format. Return Value Returns an HRESULT value. Possible values include the following. Value Description S_OK Success. E_NOTIMPL Method is not supported. E_POINTER NULL pointer argument. Remarks This method retrieves the duration of the stream at normal playback speed. Changing the playback rate does not affect the duration. The returned value is expressed in units of the current time format. To determine the current time format, call the IMediaSeeking::GetTimeFormat method.
lanfanra
一般會員


發表:48
回覆:51
積分:19
註冊:2003-08-06

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-01-07 08:44:28 IP:61.66.xxx.xxx 未訂閱
是否可請scott777寫個範例啊?
anpino
版主


發表:31
回覆:477
積分:231
註冊:2003-01-02

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-01-07 09:26:37 IP:61.66.xxx.xxx 未訂閱
引言: 是否可請scott777寫個範例啊?
我記得DirectX SDK 已經有範例了呀... 數學系是內功很強(邏輯/分析) 資工系是招式很多(程式技巧) 就像令狐沖VS東方不敗:D [url="http://anpino.begin.8d8d.com"]Programmers Guide[/url] 發表人 - anpino 於 2004/01/07 09:36:21
系統時間:2024-05-13 9:42:22
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!