-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to use Portaudio (v2) #870
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0ccecde
Add portaudio backend skeleton code
npostavs 50791f7
Make portaudio backend work with ASIO stereo devices
npostavs 5430692
Fix initial device buffer size detection
npostavs aea324d
Detect and handle ASIO buffer size changes
npostavs eb7838f
Add ASIOControlPanel() call
npostavs d7dff72
Handle channel selection
npostavs 1e8feab
Fully restart PortAudio on resetRequest
npostavs 1a67fe0
Set suggested latency to 0
npostavs 1514db3
Mention PortAudio in library list
npostavs 39e5d53
Support WASAPI and WDM-KS with PortAudio
npostavs daba2f8
Don't put 0 for suggestLatency, it breaks WDM-KS
npostavs 3586bda
Add support for WASAPI exclusive mode
npostavs e85e31e
add separate portaudio-build
b4ae9e8
build windows installer with env-variable
808d683
Support mono devices
npostavs bb017bd
Add WASAPI and WDM shortcuts
npostavs 8113c4f
Support Portaudio on Linux (shared lib only)
npostavs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
autobuild/windows/autobuild_windowsinstaller_2_build_portaudio.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Powershell | ||
|
||
# autobuild_2_build: actual build process | ||
|
||
|
||
#################### | ||
### PARAMETERS ### | ||
#################### | ||
|
||
# Get the source path via parameter | ||
param ( | ||
[string] $jamulus_project_path = $Env:jamulus_project_path | ||
) | ||
# Sanity check of parameters | ||
if (("$jamulus_project_path" -eq $null) -or ("$jamulus_project_path" -eq "")) { | ||
throw "expecting ""jamulus_project_path"" as parameter or ENV" | ||
} elseif (!(Test-Path -Path $jamulus_project_path)) { | ||
throw "non.existing jamulus_project_path: $jamulus_project_path" | ||
} else { | ||
echo "jamulus_project_path is valid: $jamulus_project_path" | ||
} | ||
|
||
|
||
################### | ||
### PROCEDURE ### | ||
################### | ||
|
||
# set variable to build with portaudio | ||
$Env:jamulus_build_config="portaudio" | ||
|
||
echo "Build installer..." | ||
# Build the installer | ||
powershell "$jamulus_project_path\windows\deploy_windows.ps1" "C:\Qt\5.15.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
autobuild/windows/autobuild_windowsinstaller_3_copy_files_portaudio.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Powershell | ||
|
||
# autobuild_3_copy_files: copy the built files to deploy folder | ||
|
||
|
||
#################### | ||
### PARAMETERS ### | ||
#################### | ||
|
||
# Get the source path via parameter | ||
param ( | ||
[string] $jamulus_project_path = $Env:jamulus_project_path, | ||
[string] $jamulus_buildversionstring = $Env:jamulus_buildversionstring | ||
) | ||
# Sanity check of parameters | ||
if (("$jamulus_project_path" -eq $null) -or ("$jamulus_project_path" -eq "")) { | ||
throw "expecting ""jamulus_project_path"" as parameter or ENV" | ||
} elseif (!(Test-Path -Path "$jamulus_project_path")) { | ||
throw "non.existing jamulus_project_path: $jamulus_project_path" | ||
} else { | ||
echo "jamulus_project_path is valid: $jamulus_project_path" | ||
} | ||
if (($jamulus_buildversionstring -eq $null) -or ($jamulus_buildversionstring -eq "")) { | ||
echo "expecting ""jamulus_buildversionstring"" as parameter or ENV" | ||
echo "using ""NoVersion"" as jamulus_buildversionstring for filenames" | ||
$jamulus_buildversionstring = "NoVersion" | ||
} | ||
|
||
|
||
################### | ||
### PROCEDURE ### | ||
################### | ||
|
||
# Rename the file | ||
echo "rename" | ||
$artifact_deploy_filename = "jamulus_portaudio_${Env:jamulus_buildversionstring}_win.exe" | ||
echo "rename deploy file to $artifact_deploy_filename" | ||
cp "$jamulus_project_path\deploy\Jamulus*installer-win.exe" "$jamulus_project_path\deploy\$artifact_deploy_filename" | ||
|
||
|
||
|
||
|
||
Function github_output_value | ||
{ | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[string] $name, | ||
[Parameter(Mandatory=$true)] | ||
[string] $value | ||
) | ||
|
||
echo "github_output_value() $name = $value" | ||
echo "::set-output name=$name::$value" | ||
} | ||
|
||
|
||
github_output_value -name "artifact_1" -value "$artifact_deploy_filename" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#ifdef
around this.