Audio not playing in only one project

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Tintenseher
Newbie
Posts: 7
Joined: Mon Jan 16, 2017 9:44 pm
Deviantart: Tintenseher
Skype: Tintenseher
Soundcloud: Tintenseher
Contact:

Audio not playing in only one project

#1 Post by Tintenseher » Mon Jan 16, 2017 9:58 pm

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!

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Audio not playing in only one project

#2 Post by Imperf3kt » Mon Jan 16, 2017 10:13 pm

config.has_sound

Is this set to True?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Tintenseher
Newbie
Posts: 7
Joined: Mon Jan 16, 2017 9:44 pm
Deviantart: Tintenseher
Skype: Tintenseher
Soundcloud: Tintenseher
Contact:

Re: Audio not playing in only one project

#3 Post by Tintenseher » Mon Jan 16, 2017 10:56 pm

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.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Audio not playing in only one project

#4 Post by Donmai » Tue Jan 17, 2017 12:08 am

Are you using .WAV files in that particular project, by any chance?
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Tintenseher
Newbie
Posts: 7
Joined: Mon Jan 16, 2017 9:44 pm
Deviantart: Tintenseher
Skype: Tintenseher
Soundcloud: Tintenseher
Contact:

Re: Audio not playing in only one project

#5 Post by Tintenseher » Tue Jan 17, 2017 12:12 am

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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Audio not playing in only one project

#6 Post by Imperf3kt » Tue Jan 17, 2017 12:18 am

.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
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Tintenseher
Newbie
Posts: 7
Joined: Mon Jan 16, 2017 9:44 pm
Deviantart: Tintenseher
Skype: Tintenseher
Soundcloud: Tintenseher
Contact:

Re: Audio not playing in only one project

#7 Post by Tintenseher » Tue Jan 17, 2017 12:23 am

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!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]