My sound isn't working!

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.
Message
Author
User avatar
TsugumiLightning
Newbie
Posts: 23
Joined: Sat Aug 11, 2018 5:28 am
Organization: STAY
Location: 🇦🇺
Contact:

My sound isn't working!

#1 Post 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
there are days where you cry for no reason, and today is not one of those days.

"Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
- Robert Frost, The Road Not Taken

User avatar
TsukiWorks
Regular
Posts: 27
Joined: Sat Jun 23, 2018 6:50 am
Projects: The Misunderstood
Deviantart: TsukiWorks
Contact:

Re: My sound isn't working!

#2 Post 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.

User avatar
TsugumiLightning
Newbie
Posts: 23
Joined: Sat Aug 11, 2018 5:28 am
Organization: STAY
Location: 🇦🇺
Contact:

Re: My sound isn't working!

#3 Post 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
there are days where you cry for no reason, and today is not one of those days.

"Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
- Robert Frost, The Road Not Taken

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: My sound isn't working!

#4 Post 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.

User avatar
Kia
Eileen-Class Veteran
Posts: 1039
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: My sound isn't working!

#5 Post 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

User avatar
TsugumiLightning
Newbie
Posts: 23
Joined: Sat Aug 11, 2018 5:28 am
Organization: STAY
Location: 🇦🇺
Contact:

Re: My sound isn't working!

#6 Post 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...
there are days where you cry for no reason, and today is not one of those days.

"Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
- Robert Frost, The Road Not Taken

User avatar
TsugumiLightning
Newbie
Posts: 23
Joined: Sat Aug 11, 2018 5:28 am
Organization: STAY
Location: 🇦🇺
Contact:

Re: My sound isn't working!

#7 Post by TsugumiLightning »

Here is the music...
rain-window-04.zip
Here is the music
(3.96 MiB) Downloaded 33 times
there are days where you cry for no reason, and today is not one of those days.

"Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
- Robert Frost, The Road Not Taken

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: My sound isn't working!

#8 Post 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.
Attachments
rain-window-04.zip
(238.21 KiB) Downloaded 24 times

User avatar
Kia
Eileen-Class Veteran
Posts: 1039
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: My sound isn't working!

#9 Post by Kia »

convert your file and it should work fine, you can use an online convertor:
https://online-audio-converter.com/

User avatar
TsugumiLightning
Newbie
Posts: 23
Joined: Sat Aug 11, 2018 5:28 am
Organization: STAY
Location: 🇦🇺
Contact:

Re: My sound isn't working!

#10 Post 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!
Attachments
rain-window-04(ogg version).zip
Here is the correct one!!
(3.96 MiB) Downloaded 23 times
there are days where you cry for no reason, and today is not one of those days.

"Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
- Robert Frost, The Road Not Taken

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: My sound isn't working!

#11 Post 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.

User avatar
TsugumiLightning
Newbie
Posts: 23
Joined: Sat Aug 11, 2018 5:28 am
Organization: STAY
Location: 🇦🇺
Contact:

Re: My sound isn't working!

#12 Post 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..?
there are days where you cry for no reason, and today is not one of those days.

"Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
- Robert Frost, The Road Not Taken

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: My sound isn't working!

#13 Post 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.

User avatar
TsugumiLightning
Newbie
Posts: 23
Joined: Sat Aug 11, 2018 5:28 am
Organization: STAY
Location: 🇦🇺
Contact:

Re: My sound isn't working!

#14 Post by TsugumiLightning »

Now the game just logs out when I try it?? What is going on??
there are days where you cry for no reason, and today is not one of those days.

"Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference."
- Robert Frost, The Road Not Taken

User avatar
Kia
Eileen-Class Veteran
Posts: 1039
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: My sound isn't working!

#15 Post 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

Post Reply

Who is online

Users browsing this forum: Kocker