Skip to content

Commit 00a3b40

Browse files
authored
Merge pull request #74 from DmNote-App/feature/asio-output
2 parents d56ac08 + f6922f0 commit 00a3b40

25 files changed

Lines changed: 1548 additions & 633 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ src-tauri/webview2-fixed-runtime/*
1414
.mcp.json
1515
mcp.json
1616

17+
tasks/
18+
1719
# --- C# / Visual Studio (UWP) ---
1820
[Bb]in/
1921
[Oo]bj/

docs/readme_en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ npm install
109109
npm run tauri:dev
110110
```
111111

112+
To build ASIO output on Windows, set up LLVM (`LIBCLANG_PATH`) and the ASIO SDK (`CPAL_ASIO_DIR`), then use `npm run tauri:dev:asio` or `npm run tauri:build:asio`.
113+
112114
## � Notes
113115

114116
- **This program is free to use for streaming or gameplay video production.**

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
"type-check": "tsc --noEmit",
1414
"type-check:watch": "tsc --noEmit --watch",
1515
"tauri:dev": "tauri dev",
16+
"tauri:dev:asio": "tauri dev -f asio-backend",
1617
"tauri:dev:edge-beta": "node scripts/run-with-edge-beta.js",
1718
"webview2:download:143": "node scripts/download-webview2-fixed-runtime.js --major 143 --arch x64",
1819
"tauri:dev:webview2-fixed:143": "npm run webview2:download:143 && tauri dev",
1920
"tauri:build": "tauri build",
21+
"tauri:build:asio": "tauri build -f asio-backend",
2022
"tauri:build:webview2-fixed:143": "npm run webview2:download:143 && tauri build --config src-tauri/tauri.webview2-fixed.conf.json",
2123
"tauri:build:portable:webview2-fixed:143": "node scripts/build-portable-win.js --major 143 --arch x64",
2224
"tauri:build:single-exe:webview2-fixed:143": "node scripts/build-single-exe-win.js --major 143 --arch x64",

src-tauri/Cargo.lock

Lines changed: 111 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "1.6.0"
44
edition = "2021"
55
default-run = "dm-note"
66

7+
[features]
8+
asio-backend = ["dep:cpal"]
9+
710
[build-dependencies]
811
tauri-build = { version = "2.4.1", features = [] }
912
walkdir = "2.5"
@@ -40,6 +43,7 @@ tokio-tungstenite = "0.24"
4043
futures-util = "0.3"
4144
local-ip-address = "0.6.10"
4245
[target."cfg(windows)".dependencies]
46+
cpal = { version = "0.17.3", optional = true, default-features = false, features = ["asio"] }
4347
windows = { version = "0.61.3", features = [
4448
"Win32_Foundation",
4549
"Win32_UI_WindowsAndMessaging",

src-tauri/gen/schemas/acl-manifests.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src-tauri/permissions/dmnote-allow-all.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@
4646
"js_set_content",
4747
"js_set_plugin_enabled",
4848
"js_toggle",
49+
"key_sound_get_output_state",
4950
"key_sound_get_status",
51+
"key_sound_list_output_devices",
5052
"key_sound_load_soundpack",
5153
"key_sound_set_enabled",
5254
"key_sound_set_latency_logging",
55+
"key_sound_set_output_backend",
5356
"key_sound_set_volume",
5457
"key_sound_unload_soundpack",
5558
"keys_get",

0 commit comments

Comments
 (0)