mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 10:08:00 -06:00
chore: compress .ogg audio files
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -64,7 +64,7 @@ impl Audio {
|
|||||||
/// If audio fails to initialize, the audio system will be disabled and
|
/// If audio fails to initialize, the audio system will be disabled and
|
||||||
/// all functions will silently do nothing.
|
/// all functions will silently do nothing.
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let frequency = 44_100;
|
let frequency = 16_000;
|
||||||
let format = AUDIO_S16LSB;
|
let format = AUDIO_S16LSB;
|
||||||
let chunk_size = {
|
let chunk_size = {
|
||||||
// 256 is the minimum for Emscripten, but in practice 1024 is much more reliable
|
// 256 is the minimum for Emscripten, but in practice 1024 is much more reliable
|
||||||
|
|||||||
Reference in New Issue
Block a user