2016-12-27 52 views

回答

0

呼叫從​​的BASS_Pause/BASS_Start

下面的示例暫停在播放「準備安裝」頁面。

function BASS_Start: BOOL; 
    external '[email protected]:bass.dll stdcall'; 
function BASS_Pause: BOOL; 
    external '[email protected]:bass.dll stdcall'; 

var 
    Paused: Boolean; 

procedure CurPageChanged(CurPageID: Integer); 
begin 
    if CurPageID = wpReady then 
    begin 
    BASS_Pause; 
    Paused := True; 
    end 
    else 
    if Paused then 
    begin 
    BASS_Start; 
    Paused := False; 
    end; 
end; 
+0

對不起,但那是你的代碼。不是我的。 –

+0

添加我的代碼之前和之後向我們顯示您的代碼。 –

+0

這是您之前發佈的錯誤! –