Page 1 of 2

My sound isn't working!

Posted: Sat Aug 11, 2018 5:56 am
by TsugumiLightning
Just to put this out there, This is my first visual novel and I am a beginner.

My sound isn't working an I really hope you can help.
I tried everything that the Ren'Py Documentation told me to, but I really have no idea what I'm doing.
I know nothing is wrong with my sound system, because the main menu theme works.

My code:

Code: Select all

define audio.two = "music/Rain/rain-window-04.ogg"
label start:
	play music two
Help will be greatly appreciated! :D

Re: My sound isn't working!

Posted: Sat Aug 11, 2018 6:32 am
by TsukiWorks
You can try like this:

Code: Select all

label start:
    play music "music/Rain/rain-window-04.ogg"
If that doesn't work, you should either replace "music" with "sound", or change the file's extension.

Re: My sound isn't working!

Posted: Sat Aug 11, 2018 7:23 pm
by TsugumiLightning
I tried changing the file's extension and it use to be .wav now it's .ogg and neither of them work. I've tried all of that.
My actual code is this:

Code: Select all

define audio.two = "music/Rain/rain-window-04.ogg"
label start:
	play music "Music/None.wav"
....

        stop sounds
        play music two

Re: My sound isn't working!

Posted: Sun Aug 12, 2018 4:31 am
by Per K Grok
TsugumiLightning wrote: Sat Aug 11, 2018 7:23 pm I tried changing the file's extension and it use to be .wav now it's .ogg and neither of them work. I've tried all of that.
My actual code is this:

Code: Select all

define audio.two = "music/Rain/rain-window-04.ogg"
label start:
	play music "Music/None.wav"
....

        stop sounds
        play music two


The code looks like it should work, if the audio files are at the address given in the code.
'stop sounds' is wrong, should be 'stop sound', but does not effect music anyway.

Are you getting any error messages?

Have you tested if the audio file works in a different player?
Have you checked if the music channel is muted? Look under preferences.

Re: My sound isn't working!

Posted: Tue Aug 14, 2018 10:40 am
by Kia
TsugumiLightning wrote: Sat Aug 11, 2018 7:23 pm I tried changing the file's extension and it use to be .wav now it's .ogg and neither of them work. I've tried all of that.
if the files format is the source of problem, changing the extension wouldn't help, you need to convert the file with an audio convertor, try free or online audio convertor programs

Re: My sound isn't working!

Posted: Tue Aug 14, 2018 7:51 pm
by TsugumiLightning
Kia wrote: Tue Aug 14, 2018 10:40 am
TsugumiLightning wrote: Sat Aug 11, 2018 7:23 pm I tried changing the file's extension and it use to be .wav now it's .ogg and neither of them work. I've tried all of that.
if the files format is the source of problem, changing the extension wouldn't help, you need to convert the file with an audio convertor, try free or online audio convertor programs
Its not the extension...

Re: My sound isn't working!

Posted: Mon Sep 10, 2018 7:51 am
by TsugumiLightning
Here is the music...
rain-window-04.zip
Here is the music
(3.96 MiB) Downloaded 38 times

Re: My sound isn't working!

Posted: Mon Sep 10, 2018 12:29 pm
by IrinaLazareva
TsugumiLightning wrote: Tue Aug 14, 2018 7:51 pm Its not the extension...
Nope. Kia is right. This is wav-file, not .ogg, besides, it is partially damaged.
Try this.

Re: My sound isn't working!

Posted: Mon Sep 10, 2018 1:03 pm
by Kia
convert your file and it should work fine, you can use an online convertor:
https://online-audio-converter.com/

Re: My sound isn't working!

Posted: Wed Sep 12, 2018 7:00 pm
by TsugumiLightning
IrinaLazareva wrote: Mon Sep 10, 2018 12:29 pm
TsugumiLightning wrote: Tue Aug 14, 2018 7:51 pm Its not the extension...
Nope. Kia is right. This is wav-file, not .ogg, besides, it is partially damaged.
Try this.
I'm sorry, I gave you the wav version...
Here is the one I'm using!

Re: My sound isn't working!

Posted: Thu Sep 13, 2018 1:30 am
by Per K Grok
TsugumiLightning wrote: Wed Sep 12, 2018 7:00 pm
Here is the one I'm using!
I tested your sound file with your code. Did not hear a thing.

Opened the file in Audacity and made the sound louder. Now the sound worked fine with your original code.

Re: My sound isn't working!

Posted: Thu Sep 13, 2018 4:15 am
by TsugumiLightning
Per K Grok wrote: Thu Sep 13, 2018 1:30 am
TsugumiLightning wrote: Wed Sep 12, 2018 7:00 pm
Here is the one I'm using!
I tested your sound file with your code. Did not hear a thing.

Opened the file in Audacity and made the sound louder. Now the sound worked fine with your original code.
How much should I turn up the sound by..?

Re: My sound isn't working!

Posted: Thu Sep 13, 2018 12:48 pm
by Per K Grok
TsugumiLightning wrote: Thu Sep 13, 2018 4:15 am ---
How much should I turn up the sound by..?
I did not fine tune it. In fact I turned the sound up way more than necessary. Sounded more like a train than rain. :) I did not note the number that I used when turning it up.

Go with trail and error to find the level you are happy with.
Always good to keep a copy of the original file if something goes wrong when working with the file.

Re: My sound isn't working!

Posted: Fri Sep 14, 2018 8:33 pm
by TsugumiLightning
Now the game just logs out when I try it?? What is going on??

Re: My sound isn't working!

Posted: Sat Sep 15, 2018 1:04 am
by Kia
make a new game isolate the code that you think is the cause of it and see what's breaking your game, then send the faulty code here for us to check