mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Merge pull request #982 from daemonjax/feature-add-opus-sound-support-to-mixer
Feature: Added support for loading Opus format sound files in mixer
This commit is contained in:
@@ -103,6 +103,7 @@ bitflags!(
|
||||
const MP3 = mixer::MIX_InitFlags_MIX_INIT_MP3 as u32;
|
||||
const OGG = mixer::MIX_InitFlags_MIX_INIT_OGG as u32;
|
||||
const MID = mixer::MIX_InitFlags_MIX_INIT_MID as u32;
|
||||
const OPUS = mixer::MIX_InitFlags_MIX_INIT_OPUS as u32;
|
||||
}
|
||||
);
|
||||
|
||||
@@ -124,6 +125,9 @@ impl ToString for InitFlag {
|
||||
if self.contains(InitFlag::MID) {
|
||||
string = string + &"INIT_MID ".to_string();
|
||||
}
|
||||
if self.contains(InitFlag::OPUS) {
|
||||
string = string + &"INIT_OPUS ".to_string();
|
||||
}
|
||||
string
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user