My sound code is:
Code: Select all
play sound "sfx/quake.wav"
Code: Select all
config.has_sound = True
Thanks!
Code: Select all
play sound "sfx/quake.wav"
Code: Select all
config.has_sound = True
It doesn't say there's a path error... How do I know if something is incompatible? Should I try .mp3?xela wrote:Incompatible wav encoding? Faulty path (Ren'Py will not throw a path error with sound...)?
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.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.
Ah, I see.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.
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!quacksapup wrote:Ah, I see.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.
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)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.
I'm a music composer so I just used my music software to do that for me. ^^ Thank you for your help.xela wrote:WAV (uncompressed PCM only)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.
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 didn't help much but you're welcome!quacksapup wrote:Thank you for your help.
Well, you see... that's scary because I can only imagine what a professional software output might be like Anything simple soft throws up seems to work fine with Ren'Py.quacksapup wrote:I'm a music composer
It'll be okay. The volume on the converted sounds are the same even after export. :^]xela wrote: Well, you see... that's scary because I can only imagine what a professional software output might be like Anything simple soft throws up seems to work fine with Ren'Py.
Users browsing this forum: Ahrefs [Bot]