2016-12-27 97 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

这是您之前发布的错误! –