Skip to content

Commit aeba9fa

Browse files
committed
use ogg by default instead of mp3 (#3421)
# Objective - mp3 feature of rodio has dependencies that are not maintained with security issues - mp3 feature of rodio doesn't build in wasm - mp3 feature of rodio uses internal memory allocation that cause rejection from Apple appstore ## Solution - Use vorbis instead of mp3 by default Co-authored-by: François <8672791+mockersf@users.noreply.github.com>
1 parent c6d4c63 commit aeba9fa

File tree

8 files changed

+6
-8
lines changed

8 files changed

+6
-8
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ default = [
2323
"render",
2424
"png",
2525
"hdr",
26-
"mp3",
26+
"vorbis",
2727
"x11",
2828
"filesystem_watcher",
2929
]

assets/sounds/Windless Slopes.mp3

-4.02 MB
Binary file not shown.

assets/sounds/Windless Slopes.ogg

1.45 MB
Binary file not shown.

deny.toml

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ yanked = "deny"
77
notice = "deny"
88
ignore = [
99
"RUSTSEC-2020-0056", # from gilrs v0.8.1 - unmaintained - https://github.com/koute/stdweb/issues/403
10-
"RUSTSEC-2020-0158", # from rodio v0.14.0 - unmaintained - https://github.com/gnzlbg/slice_deque/issues/94
11-
"RUSTSEC-2021-0047", # from rodio v0.14.0 - unsafety - https://github.com/gnzlbg/slice_deque/issues/90
1210
"RUSTSEC-2020-0095", # from crevice dev dependency - unmaintained - https://github.com/johannhof/difference.rs/issues/45
1311
"RUSTSEC-2021-0119", # from rodio 0.14.0 - unsafety - https://github.com/nix-rust/nix/issues/1541
1412
]

docs/cargo_features.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
|render|The render pipeline and all render related plugins.|
1212
|png|PNG picture format support.|
1313
|hdr|[HDR](https://en.wikipedia.org/wiki/High_dynamic_range) support.|
14-
|mp3|MP3 audio format support.|
14+
|vorbis|Ogg Vorbis audio format support.|
1515
|x11|Make GUI applications use X11 protocol. You could enable wayland feature to override this.|
1616
|filesystem_watcher|Enable watching the file system for asset hot reload|
1717

@@ -30,8 +30,8 @@
3030
|jpeg|JPEG picture format support.|
3131
|bmp|BMP picture format support.|
3232
|flac|FLAC audio format support. It's included in bevy_audio feature.|
33+
|mp3|MP3 audio format support.|
3334
|wav|WAV audio format support.|
34-
|vorbis|Vorbis audio format support.|
3535
|serialize|Enables serialization of `bevy_input` types.|
3636
|wayland|Enable this to use Wayland display server protocol other than X11.|
3737
|subpixel_glyph_atlas|Enable this to cache glyphs using subpixel accuracy. This increases texture memory usage as each position requires a separate sprite in the glyph atlas, but provide more accurate character spacing.|

examples/audio/audio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ fn main() {
99
}
1010

1111
fn setup(asset_server: Res<AssetServer>, audio: Res<Audio>) {
12-
let music = asset_server.load("sounds/Windless Slopes.mp3");
12+
let music = asset_server.load("sounds/Windless Slopes.ogg");
1313
audio.play(music);
1414
}

examples/ios/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bevy = { path = "../../", features = [
1515
"bevy_audio",
1616
"bevy_winit",
1717
"render",
18-
"mp3",
18+
"vorbis",
1919
"x11",
2020
"filesystem_watcher"
2121
], default-features = false}

examples/ios/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ fn setup_scene(
9191
}
9292

9393
fn setup_music(asset_server: Res<AssetServer>, audio: Res<Audio>) {
94-
let music = asset_server.load("sounds/Windless Slopes.mp3");
94+
let music = asset_server.load("sounds/Windless Slopes.ogg");
9595
audio.play(music);
9696
}

0 commit comments

Comments
 (0)