Menu

#14 How to close ASIO Driver Control Panel ?

v1.0_(example)
open
nobody
None
5
2018-08-24
2018-08-24
No

Hello,

Maybe you can help, the problem is as follows:

Let's suppose the sequence of events happens as follows:

ASIOHost.ControlPanel;

ASIOHost.Active := True; // start audio

Now the problem is the user can change the ASIO buffers.

This can cause problems, the delphi ASIO code will cause access violation because it does not expect buffers to change in size (happens on version 1.3, could be a bug in creative labs asio library/dll though I have also seen it happen in delphi code/arrays.)

What I would like to do is as follows:

ButtonControlPanelClick:
ASIOHost.ControlPanel;

...

Start:
ASIOHost.CloseControlPanel;
ButtonControlPanel.Enabled := False;
ASIOHost.Active := True; // start audio

However I do not see a way to close the ASIOHost driver/control panel ?

Is there any way to close this panel as to prevent the user with messing with buffer sizes while the program is running and producing/playing audio buffers ?

Test program for version 1.3 is here:

http://www.skybuck.org/Delphi/Tests/

This folder also contains a JPG illustrating the "driver specific control panel".

Discussion


Log in to post a comment.