forked from SolarLiner/vstminihost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
454 additions
and
454 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main, stable ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install GTK | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libgtk-3-dev | ||
- uses: actions/checkout@v2 | ||
- name: Build (release) | ||
run: cargo build --release | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: release | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: target/release/vstminihost | ||
if-no-files-found: error | ||
retention-days: 7 | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: target | ||
# An explicit key for restoring and saving the cache | ||
key: deps-build | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main, stable ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install GTK | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libgtk-3-dev | ||
- uses: actions/checkout@v2 | ||
- name: Build (release) | ||
run: cargo build --release | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: release | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: target/release/vstminihost | ||
if-no-files-found: error | ||
retention-days: 7 | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: target | ||
# An explicit key for restoring and saving the cache | ||
key: deps-build |
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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install GTK | ||
run: sudo apt install libgtk-3-dev | ||
- uses: actions/checkout@v2 | ||
- name: Run clippy | ||
run: cargo clippy | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: target | ||
# An explicit key for restoring and saving the cache | ||
key: deps-lint | ||
test: | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install GTK | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libgtk-3-dev | ||
- uses: actions/checkout@v2 | ||
- name: Run tests | ||
run: cargo test | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: target | ||
# An explicit key for restoring and saving the cache | ||
key: deps-test | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install GTK | ||
run: sudo apt install libgtk-3-dev | ||
- uses: actions/checkout@v2 | ||
- name: Run clippy | ||
run: cargo clippy | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: target | ||
# An explicit key for restoring and saving the cache | ||
key: deps-lint | ||
test: | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install GTK | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libgtk-3-dev | ||
- uses: actions/checkout@v2 | ||
- name: Run tests | ||
run: cargo test | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: target | ||
# An explicit key for restoring and saving the cache | ||
key: deps-test |
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
src/window.rs | ||
src/newwindow.rs | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
|
||
# Added by cargo | ||
|
||
/target | ||
# VS Code related stuff | ||
.vscode/* | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
src/window.rs | ||
src/newwindow.rs | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
|
||
# Added by cargo | ||
|
||
/target | ||
# VS Code related stuff | ||
.vscode/* | ||
!/.vscode/settings.json |
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
[package] | ||
name = "vsthost" | ||
version = "0.1.0" | ||
authors = ["Nathan Graule <[email protected]>", "George Atkinson <[email protected]>", "Andrew Numrich <[email protected]>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
vst = { git = "https://github.com/RustAudio/vst-rs.git" } | ||
#vst2-sys = "0.2.0" | ||
#tuix = { git = "https://github.com/geom3trik/tuix.git", branch = "without_send" } | ||
nfd = {version = "0.0.4", optional = true } | ||
raw-window-handle = {version = "0.3.3", optional = true } | ||
winit = { version = "0.24.0", optional = true } | ||
#winapi = "0.3.9" | ||
ringbuf = "0.2.4" | ||
|
||
[features] | ||
default = ["editor-window"] | ||
editor-window = ["raw-window-handle", "winit"] | ||
nfd-select = ["nfd"] | ||
[package] | ||
name = "vsthost" | ||
version = "0.1.0" | ||
authors = ["Nathan Graule <[email protected]>", "George Atkinson <[email protected]>", "Andrew Numrich <[email protected]>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
vst = { git = "https://github.com/RustAudio/vst-rs.git" } | ||
#vst2-sys = "0.2.0" | ||
#tuix = { git = "https://github.com/geom3trik/tuix.git", branch = "without_send" } | ||
nfd = {version = "0.0.4", optional = true } | ||
raw-window-handle = {version = "0.3.3", optional = true } | ||
winit = { version = "0.24.0", optional = true } | ||
#winapi = "0.3.9" | ||
ringbuf = "0.2.4" | ||
|
||
[features] | ||
default = ["editor-window"] | ||
editor-window = ["raw-window-handle", "winit"] | ||
nfd-select = ["nfd"] |
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Nathan Graule | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
MIT License | ||
Copyright (c) 2021 Nathan Graule | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# vsthost | ||
A simple VST host toolset. | ||
|
||
# About (note: this library is a big WIP) | ||
The idea here is to provide a swiss army knife for VST hosting.<br> | ||
|
||
- `create_vsthost` to opens a VST given the path to the DLL/lib | ||
* The `nfd-select` feature enables `Method::FileSelectDialog` which will open the NFD to fetch a path. | ||
* This returns the `PluginInstance` and `Editor` | ||
* note: The `PluginInstance` can be sent across threads, but not Editor. | ||
- `open_window` provides a winit window given the editor which will attach itself to the window. | ||
* This returns the `Window` and `EventLoop` | ||
* The use of `EventLoop` will determine how you want the VST to run | ||
* In a DAW setting I would recommend running GUI on the main thread, and calling `run_return` on that thread while sending your `PluginInstance` to the audio processing thread | ||
|
||
# TODOs | ||
- Clean up the code | ||
- Add support for bridging (32bit<->64bit) | ||
- Possibly expand on windowing? | ||
# vsthost | ||
A simple VST host toolset. | ||
|
||
# About (note: this library is a big WIP) | ||
The idea here is to provide a swiss army knife for VST hosting.<br> | ||
|
||
- `create_vsthost` to opens a VST given the path to the DLL/lib | ||
* The `nfd-select` feature enables `Method::FileSelectDialog` which will open the NFD to fetch a path. | ||
* This returns the `PluginInstance` and `Editor` | ||
* note: The `PluginInstance` can be sent across threads, but not Editor. | ||
- `open_window` provides a winit window given the editor which will attach itself to the window. | ||
* This returns the `Window` and `EventLoop` | ||
* The use of `EventLoop` will determine how you want the VST to run | ||
* In a DAW setting I would recommend running GUI on the main thread, and calling `run_return` on that thread while sending your `PluginInstance` to the audio processing thread | ||
|
||
# TODOs | ||
- Clean up the code | ||
- Add support for bridging (32bit<->64bit) | ||
- Possibly expand on windowing? |
Oops, something went wrong.