Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upGlitch with big audio file #207
Comments
This comment has been minimized.
This comment has been minimized.
|
Gooood to know. I'll check it out. Is this in debug or release mode? Linux/windows/mac? |
icefoxen
added
bug
Type-CODE
labels
Nov 21, 2017
This comment has been minimized.
This comment has been minimized.
TakWolf
commented
Nov 22, 2017
•
|
I found the same problems. It seams the reason is rodio. Some format decode not compat. I use some transcoders can create the problems audio files. Some times later I can provide some simples. |
This comment has been minimized.
This comment has been minimized.
TakWolf
commented
Nov 23, 2017
•
|
http://static.takwolf.com/github/ggez/issues/207/audio_simple.mp3 audio_simple.mp3 is original audio file. ggez can not play it, cause:
audio_simple_with_error.ogg is conversion version by a format converter. ggez can play it, but full of error and noise. ggez version is 0.3.3 or last master. On windows and macOS have the same problem. Two of audio can normal play on Chrome or Audio Player. I think the reason is rodio do not support some audio format. |
This comment has been minimized.
This comment has been minimized.
TakWolf
commented
Nov 23, 2017
|
I use the format converter is : http://www.pcfreetime.com/?language=en I did not open this issue before, because I think responsibility should be non-standard formatting, not ggez and I can generate the correct audio format myself. But problems's format audio files are in fact a lot of existence, In a large number of resources library. |
This comment has been minimized.
This comment has been minimized.
|
ggez doesn't have mp3 support, alas. There seems to be no pure Rust crate for mp3 decoding, and some of the better C libraries (MAD and LAME) have incompatible licenses (GPL/LGPL). See RustAudio/rodio#36 . It'd be great to fix that, but alas, I don't have time to write a decoder library. If you can use linux (or osx?), sox is a good all-purpose sound converter tool. |
This comment has been minimized.
This comment has been minimized.
|
@TakWolf Confirmed, ggez decodes the given file incorrectly for me as well. Using release mode and debug mode both have the same results, so it's not my first thought, stuttering due to being too slow to keep the audio buffer full. Re-encoding it with sox makes a file that ggez plays fine, but gives no decoding errors in the process. ogginfo shows similar info for both files, also gives no errors. @rap2hpoutre , can you link to the file that you were trying to play that has errors? Repository that has a program that reproduces this, with included audio files: https://github.com/ggez/ggez-soundtest |
icefoxen
referenced this issue
Nov 23, 2017
Closed
Certain ogg files don't play correctly but don't appear obviously corrupt. #147
est31
referenced this issue
Dec 8, 2017
Closed
audio_simple_with_error.ogg gives wrong decoded output #24
icefoxen
added
the
dependency bug
label
Feb 20, 2018
This comment has been minimized.
This comment has been minimized.
|
Fixed upstream in RustAudio/lewton@1073e58 Huzzah! |
rap2hpoutre commentedNov 21, 2017
I tried to add a background music to a micro game. But if I play a big audio file (3 min), it's full of glitches. It slows down and there is some noise. I tried with an ogg and a flac. Here is a relevant part of a small test I made to make sure it's not a performance problem due to some other part : I just created a test based on the "hello world" example of a fresh clone of ggez.
I put the
playin thenew, not really elegant but anyway!Thanks for ggez, I really like it!