Page 1 of 1

Sounds aren't working? [SOLVED]

Posted: Sat Feb 15, 2014 7:22 pm
by quacksapup
Hi guys,

My sound code is:

Code: Select all

play sound "sfx/quake.wav"
It doesn't work. And it's not just this one, but for all my sound. The volume is up and working, and I have this set to True in my options.

Code: Select all

config.has_sound = True
What am I doing wrong? The music and voice work, but not the sound.

Thanks!

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 7:45 pm
by xela
Incompatible wav encoding? Faulty path (Ren'Py will not throw a path error with sound...)?

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 7:47 pm
by Asceai
What happens if you try to turn out of your

play music "path"
statements to
play sound "path"

keeping the path the same? If that works and the music plays, that hints at a problem with the path or with the encoding.

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 7:49 pm
by quacksapup
xela wrote:Incompatible wav encoding? Faulty path (Ren'Py will not throw a path error with sound...)?
It doesn't say there's a path error... How do I know if something is incompatible? Should I try .mp3?

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 7:50 pm
by quacksapup
Asceai wrote:What happens if you try to turn out of your

play music "path"
statements to
play sound "path"

keeping the path the same? If that works and the music plays, that hints at a problem with the path or with the encoding.
It's not the music, it's the sound that doesn't work. The music works perfectly. But I need it in the background as the sound plays, so it's not like I can switch them.

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 7:55 pm
by Asceai
Yeah, I'm saying that because the music is working, if the sound channel isn't working you should be able to change 'play music' to 'play sound' and the music will stop working. If it still plays, it's a problem with your sound or you've put the sound file in the wrong place.

Anyway, Shift+D, click 'filename list' and your sound file should appear in that list with the same name you used in your play statement. If not it's a path error.

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 8:03 pm
by quacksapup
Asceai wrote:Yeah, I'm saying that because the music is working, if the sound channel isn't working you should be able to change 'play music' to 'play sound' and the music will stop working. If it still plays, it's a problem with your sound or you've put the sound file in the wrong place.

Anyway, Shift+D, click 'filename list' and your sound file should appear in that list with the same name you used in your play statement. If not it's a path error.
Ah, I see.

So I just tried that out. The song is .mp3 and I switched it from 'play music' to 'play sound' and it worked anyway. The sfx are in my play statement. So perhaps maybe it is something to do with the .wav.

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 8:11 pm
by quacksapup
quacksapup wrote:
Asceai wrote:Yeah, I'm saying that because the music is working, if the sound channel isn't working you should be able to change 'play music' to 'play sound' and the music will stop working. If it still plays, it's a problem with your sound or you've put the sound file in the wrong place.

Anyway, Shift+D, click 'filename list' and your sound file should appear in that list with the same name you used in your play statement. If not it's a path error.
Ah, I see.

So I just tried that out. The song is .mp3 and I switched it from 'play music' to 'play sound' and it worked anyway. The sfx are in my play statement. So perhaps maybe it is something to do with the .wav.
Converting the .wav to .mp3 worked! It was a problem with the .wav files. It's accepting .mp3. I have no clue why the .wav wasn't working... but, aw well! Thanks for helping me figure this out guys!

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 8:12 pm
by xela
quacksapup wrote:
Asceai wrote:So I just tried that out. The song is .mp3 and I switched it from 'play music' to 'play sound' and it worked anyway. The sfx are in my play statement. So perhaps maybe it is something to do with the .wav.
WAV (uncompressed PCM only)

Just find any converter online or offline and covert your files from wav to wav. I am yet to see a software that would give me a wav file Ren'Py couldn't play on default settings... (Audacity is free and very good).

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 8:13 pm
by quacksapup
xela wrote:
quacksapup wrote:
Asceai wrote:So I just tried that out. The song is .mp3 and I switched it from 'play music' to 'play sound' and it worked anyway. The sfx are in my play statement. So perhaps maybe it is something to do with the .wav.
WAV (uncompressed PCM only)

Just find any converter online or offline and covert your files from wav to wav. I am yet to see a software that would give me a wav file Ren'Py couldn't play on default settings... (Audacity is free and very good).
I'm a music composer so I just used my music software to do that for me. ^^ Thank you for your help.

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 8:17 pm
by xela
quacksapup wrote:Thank you for your help.
I didn't help much but you're welcome!
quacksapup wrote:I'm a music composer
Well, you see... that's scary because I can only imagine what a professional software output might be like :lol: Anything simple soft throws up seems to work fine with Ren'Py.

Re: Sounds aren't working?

Posted: Sat Feb 15, 2014 8:24 pm
by quacksapup
xela wrote: Well, you see... that's scary because I can only imagine what a professional software output might be like :lol: Anything simple soft throws up seems to work fine with Ren'Py.
It'll be okay. The volume on the converted sounds are the same even after export. :^]