Skip to content

Commit

Permalink
audio: Fix load_audio being stuck forever without audio feature
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed May 21, 2024
1 parent 17e24a7 commit e793ca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ mod dummy_audio {
pub fn set_volume(&self, _ctx: &mut AudioContext, _volume: f32) {}

pub fn is_loaded(&self) -> bool {
false
true
}

pub fn delete(&self, _ctx: &AudioContext) {}
Expand Down Expand Up @@ -102,6 +102,7 @@ impl std::fmt::Debug for Sound {
/// Load audio file.
///
/// Attempts to automatically detect the format of the source of data.
pub async fn load_sound(path: &str) -> Result<Sound, Error> {
let data = load_file(path).await?;

Expand Down

0 comments on commit e793ca8

Please sign in to comment.