buzz forums

forums of the buzz
It is currently Sat Dec 16, 2017 5:11 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Aug 03, 2017 12:24 am 

Joined: Sun Apr 15, 2012 8:55 am
Posts: 381
This script will allow you to easily change the Polac ASIO driver outside of Buzz when it is impossible to do it within Buzz. The list is populated based on the list of ASIO drivers installed in Windows. I have no idea if everything under that registry location is going to work under Buzz or not, so if it doesn't work, try another choice.

First, run powershell as administrator and run this command and select "Y" to enable it. This will allow the script to run.
Code:
Set-ExecutionPolicy RemoteSigned


Then copy this into a PS1 file (e.g. PolacASIOReset.PS1) and run it:
Code:
$polac_asio_interfaces = Get-ChildItem "hklm:\software\asio\" -Recurse | ?{ $_.PSIsContainer } | Select-Object -ExpandProperty pschildname

Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing

$form = New-Object System.Windows.Forms.Form
$form.Text = "Polac ASIO Driver"
$form.Size = New-Object System.Drawing.Size(300,200)
$form.StartPosition = "CenterScreen"

$OKButton = New-Object System.Windows.Forms.Button
$OKButton.Location = New-Object System.Drawing.Point(75,120)
$OKButton.Size = New-Object System.Drawing.Size(75,23)
$OKButton.Text = "OK"
$OKButton.DialogResult = [System.Windows.Forms.DialogResult]::OK
$form.AcceptButton = $OKButton
$form.Controls.Add($OKButton)

$CancelButton = New-Object System.Windows.Forms.Button
$CancelButton.Location = New-Object System.Drawing.Point(150,120)
$CancelButton.Size = New-Object System.Drawing.Size(75,23)
$CancelButton.Text = "Cancel"
$CancelButton.DialogResult = [System.Windows.Forms.DialogResult]::Cancel
$form.CancelButton = $CancelButton
$form.Controls.Add($CancelButton)

$label = New-Object System.Windows.Forms.Label
$label.Location = New-Object System.Drawing.Point(10,20)
$label.Size = New-Object System.Drawing.Size(280,20)
$label.Text = "Which audio driver would you like to use?"
$form.Controls.Add($label)

$listBox = New-Object System.Windows.Forms.ComboBox
$listBox.Location = New-Object System.Drawing.Point(10,40)
$listBox.Size = New-Object System.Drawing.Size(260,20)

foreach ($i in $polac_asio_interfaces)
{
    [void] $listBox.Items.Add($i)
}

$listBox.Height = 70
$form.Controls.Add($listBox)
$form.Topmost = $True

$result = $form.ShowDialog()

if ($result -eq [System.Windows.Forms.DialogResult]::OK)
{
    #$x = $listBox.SelpoweectedItems
    #$x
    Write-Host $listBox.SelectedItem
    Set-ItemProperty -Path "hkcu:\software\Jeskola\buzz\Polac ASIO" -Name "DriverName" -Value $listBox.SelectedItem
}


There! Now I am technically a Buzz dev. :lol: :dance: :ugeek:


Top
 Profile  
 
PostPosted: Thu Aug 03, 2017 10:36 am 
User avatar

Joined: Wed Nov 23, 2011 3:24 pm
Posts: 517
Nice one. :geek:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group