Skip to content

Commit 2080402

Browse files
committed
Rename web-audio-worklet to just audioworklet, remove unneeded inlines.
1 parent 5c202f4 commit 2080402

File tree

18 files changed

+61
-25
lines changed

18 files changed

+61
-25
lines changed

.github/workflows/platforms.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ jobs:
264264
build-wasm-beep: true
265265

266266
- target: wasm32-unknown-unknown
267-
args: --features=web_audio_worklet
267+
args: --features=audioworklet
268268
build-worklet-beep: true
269269
rustflags: -C target-feature=+atomics,+bulk-memory,+mutable-globals
270270

@@ -306,9 +306,9 @@ jobs:
306306
working-directory: ./examples/wasm-beep
307307
run: cargo build --target ${{ matrix.target }}
308308

309-
- name: Build web-audio-worklet-beep example
309+
- name: Build audioworklet-beep example
310310
if: matrix.build-worklet-beep
311-
working-directory: ./examples/web-audio-worklet-beep
311+
working-directory: ./examples/audioworklet-beep
312312
env:
313313
RUSTFLAGS: ${{ matrix.rustflags }}
314314
run: cargo +nightly build --target ${{ matrix.target }} -Z build-std=std,panic_abort

.github/workflows/quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
with:
142142
key: clippy-wasm32-worklet
143143

144-
- name: Run clippy (web_audio_worklet)
144+
- name: Run clippy (audioworklet)
145145
env:
146146
RUSTFLAGS: -C target-feature=+atomics,+bulk-memory,+mutable-globals
147-
run: cargo +nightly clippy --all --target wasm32-unknown-unknown --features web_audio_worklet -Z build-std=std,panic_abort -- -D warnings
147+
run: cargo +nightly clippy --all --target wasm32-unknown-unknown --features audioworklet -Z build-std=std,panic_abort -- -D warnings

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
recorded.wav
66
rls*.log
77
/.direnv
8-
!/examples/web-audio-worklet-beep/.cargo/
8+
!/examples/audioworklet-beep/.cargo/
99

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ asio = [
1616
] # Only available on Windows. See README for setup instructions.
1717

1818
# Only available on web when atomics are enabled. See README for what it does.
19-
web_audio_worklet = [
19+
audioworklet = [
2020
"dep:wasm-bindgen-futures",
2121
"web-sys/Blob",
2222
"web-sys/BlobPropertyBag",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ Some audio backends are optional and will only be compiled with a [feature flag]
3737

3838
- JACK (on Linux): `jack`
3939
- ASIO (on Windows): `asio`
40-
- AudioWorklet (on Web): `web_audio_worklet`
40+
- AudioWorklet (on Web): `audioworklet`
4141

42-
For AudioWorklet backend usage see the README for the `web-audio-worklet-beep` example.
42+
For AudioWorklet backend usage see the README for the `audioworklet-beep` example.
4343

4444
## ASIO on Windows
4545

File renamed without changes.
File renamed without changes.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[package]
2+
name = "audioworklet-beep"
3+
description = "cpal beep example for WebAssembly on an AudioWorklet"
4+
version = "0.1.0"
5+
edition = "2018"
6+
authors = ["Ian Kettlewell <[email protected]>"]
7+
8+
[lib]
9+
crate-type = ["cdylib"]
10+
11+
[profile.release]
12+
# This makes the compiled code faster and smaller, but it makes compiling slower,
13+
# so it's only enabled in release mode.
14+
lto = true
15+
16+
[features]
17+
# If you uncomment this line, it will enable `wee_alloc`:
18+
#default = ["wee_alloc"]
19+
20+
[dependencies]
21+
cpal = { path = "../..", features = ["wasm-bindgen", "audioworklet"] }
22+
# `gloo` is a utility crate which improves ergonomics over direct `web-sys` usage.
23+
gloo = "0.11.0"
24+
# The `wasm-bindgen` crate provides the bare minimum functionality needed
25+
# to interact with JavaScript.
26+
wasm-bindgen = "0.2.45"
27+
28+
# The `console_error_panic_hook` crate provides better debugging of panics by
29+
# logging them with `console.error`.
30+
console_error_panic_hook = "0.1.5"
31+
32+
# The `web-sys` crate allows you to interact with the various browser APIs,
33+
# like the DOM.
34+
[dependencies.web-sys]
35+
version = "0.3.22"
36+
features = ["console", "MouseEvent"]
File renamed without changes.

0 commit comments

Comments
 (0)