Page 1 of 1

Audio not playing in only one project

Posted: Mon Jan 16, 2017 9:58 pm
by Tintenseher
Hi! First time posting here, so please let me know if I'm in the wrong place. I'm having an odd problem with audio in a project of mine; I can't get any sounds to play, but the file is in the folder (and I call it correctly), and I can find no errors of any kind. When testing through the Ren'Py Launcher, the game simply moves between the dialogue lines without playing the sound. Nothing plays and no errors come up.

The weird part is that it is only one project of mine that's doing this. Previous projects, downloaded projects, the tutorial/example game projects, and even projects newer than the faulty one are all playing sound perfectly fine. I've tried remaking the game as a new project, but sounds don't play. I've tried playing the same sounds from working games, just copy/pasting the files and relevant lines from the script, and still nothing works. :(

I'm happy to provide any files or logs, but as I said I can see no difference in the scripts and it's offering no errors. Can anyone provide any insight? Thanks!

Re: Audio not playing in only one project

Posted: Mon Jan 16, 2017 10:13 pm
by Imperf3kt
config.has_sound

Is this set to True?

Re: Audio not playing in only one project

Posted: Mon Jan 16, 2017 10:56 pm
by Tintenseher
Imperf3kt wrote:config.has_sound

Is this set to True?
Yup, as are has_music and has_voice. (They don't seem to be working either.) Volume sliders are also all the way up.

Re: Audio not playing in only one project

Posted: Tue Jan 17, 2017 12:08 am
by Donmai
Are you using .WAV files in that particular project, by any chance?

Re: Audio not playing in only one project

Posted: Tue Jan 17, 2017 12:12 am
by Tintenseher
Donmai wrote:Are you using .WAV files in that particular project, by any chance?
Ooh! I knew there was something I forgot to try. I was using .wavs, so I've converted the sound files to .ogg and they seem to be working just fine (as is an .mp3 I copied in). How odd. Thank you! I guess I can just keep doing that, but I'm still curious as to what the problem might be. The .wavs work just fine in other projects.

Re: Audio not playing in only one project

Posted: Tue Jan 17, 2017 12:18 am
by Imperf3kt
.wavs or .wav
I don't know of .wavs, I'll assume it is plural for .WAV

To be compatible with renpy, you need to use the correct codec, as well as the correct container.
In this case, your container is .wav
Your codec, should be linear PCM @ 16 bits

Re: Audio not playing in only one project

Posted: Tue Jan 17, 2017 12:23 am
by Tintenseher
Imperf3kt wrote:.wavs or .wav
I don't know of .wavs, I'll assume it is plural for .WAV

To be compatible with renpy, you need to use the correct codec, as well as the correct container.
In this case, your container is .wav
Your codec, should be linear PCM @ 16 bits
Sorry, was just pluralizing, that's right. As for the codec, I re-exported the files from Audacity and now I'm really confused why this is happening (although the problem is fixed, which I'm happy about!). I exported the original .wav that wasn't working as a 16-bit PCM (which I had assumed it was already), and it played just fine. But if I copy a .wav from a different project, which works normally there, it still doesn't work in the new one. It's like there's a very specific setting somewhere that's making it ignore them.

In any case, I can play sounds now and everything is swell. Thanks so much for your help, both of you!