Add ishitatsuyuki's wasm-beep example
This adds the `wasm-beep` example @ishitatsuyuki put together for testing webaudio support. The example helped me to better understand how to use the webaudio host and provided an easy way to test it, I'm sure other contributors/users might benefit in the same way. I guess in the future it would be nice if we could have some way of sharing the same code between wasm-target examples and native target examples. Still, I think it's beneficial to include this wasm-beep example in the meantime to have at least some kind of demonstration of how to use cpal with wasm. Are you happy for this to be added as is @ishitatsuyuki?
This commit is contained in:
parent
9dc0c04c95
commit
4ef48cb865
3 changed files with 2 additions and 596 deletions
|
|
@ -60,7 +60,7 @@ where
|
|||
let stream = device
|
||||
.build_output_stream(
|
||||
config,
|
||||
move |data: &mut [T]| write_data(data, channels, &mut next_value),
|
||||
move |data: &mut [T], _| write_data(data, channels, &mut next_value),
|
||||
err_fn,
|
||||
)
|
||||
.unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue