線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1687
推到 Plurk!
推到 Facebook!

播放卡拉OK时的“原声”和“伴唱”的问题!

答題得分者是:syntax
3CS
一般會員


發表:5
回覆:9
積分:2
註冊:2003-07-31

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-08-23 20:17:35 IP:61.143.xxx.xxx 未訂閱
用控件TMediaplayer如何在播放VCD格式的卡拉OK歌时,切换声道的“原声”和 “伴唱”呢?急! 请各位大大帮忙!谢谢了!
syntax
尊榮會員


發表:26
回覆:1139
積分:1258
註冊:2002-04-23

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-08-24 13:58:07 IP:61.70.xxx.xxx 未訂閱
引言: 用控件TMediaplayer如何在播放VCD格式的卡拉OK歌时,切换声道的“原声”和 “伴唱”呢?急! 请各位大大帮忙!谢谢了!
還是老問題 再跟你說一個方法 不過詳細的做法,你要自己花時間去看,畢竟你的工作是有給薪的,這裡回答的人是沒有的! use TMediaplayer ,並繼承他,改寫 Play 語法 因為Play 語法是包裝 MCI 指令,所以你要先學 MCI 使用方式,然後改寫 1. MCI 使用方式 : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_about_mci.asp 2. 使用 MCI 之指令 mciSendString(),指令格式如下 MCIERROR mciSendString( LPCTSTR lpszCommand, LPTSTR lpszReturnString, UINT cchReturn, HANDLE hwndCallback ); 3. 其中 setaudio command 有關閉左聲道或右聲道之功能 參考 : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mcisendstring.asp wsprintf( lpszCommand, "setaudio %s %s %s", lpszDeviceID, lpszAudio, lpszFlags ); lpszAudio parameter and their meanings : left off/left on --> Enables or disables audio output on the left channel. The audio presentation source can be the external input or the workspace. The default is "left on". If there is only one channel, that channel is set on or off. right off/right --> on Enables or disables audio output on the right channel. The audio presentation source can be the external input or the workspace. The default is "right on". If there is only one channel, this flag has no effect.
系統時間:2024-03-29 3:20:32
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!