Fix some typo and warnings

This commit is contained in:
Rémi Lauzier 2021-06-28 11:55:15 -04:00
parent 5bbfa4992e
commit ba462dad18
No known key found for this signature in database
GPG key ID: D4B9ECD143336C1D
28 changed files with 98 additions and 98 deletions

View file

@ -1,8 +1,8 @@
# iOS Feedback Example
This example is an Xcode project that exercises both input and output
audio streams. Audio samples are read in from your micrphone and then
routed to your audio output device with a small but noticeable delay
audio streams. Audio samples are read in from your microphone and then
routed to your audio output device with a small but noticeable delay,
so you can verify it is working correctly.
To build the example you will need to still `cargo-lipo`. While not

View file

@ -5,8 +5,8 @@ set -e
PATH=$PATH:$HOME/.cargo/bin
# If you want your build to run faster, add a "--targets x86_64-apple-ios" for just using the ios simulator.
if [ -n ${IOS_TARGETS} ]; then
cargo lipo --targets ${IOS_TARGETS}
if [ -n "${IOS_TARGETS}" ]; then
cargo lipo --targets "${IOS_TARGETS}"
else
cargo lipo
fi

View file

@ -78,7 +78,7 @@ fn main() -> Result<(), anyhow::Error> {
))]
let host = cpal::default_host();
// Setup the input device and stream with the default input config.
// Set up the input device and stream with the default input config.
let device = if opt.device == "default" {
host.default_input_device()
} else {

View file

@ -13,7 +13,7 @@ static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[wasm_bindgen(start)]
pub fn main_js() -> Result<(), JsValue> {
// This provides better error messages in debug mode.
// It's disabled in release mode so it doesn't bloat up the file size.
// It's disabled in release mode, so it doesn't bloat up the file size.
#[cfg(debug_assertions)]
console_error_panic_hook::set_once();