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: 20
Joined: Sat Aug 11, 2018 5:28 am
Deviantart: UndyneHeroine99
Contact:

My sound isn't working!

#1 Post by TsugumiLightning » Sat Aug 11, 2018 5:56 am

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
Howdy!
I'm Flowey!
Flowey the flower!

XP

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 » Sat Aug 11, 2018 6:32 am

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: 20
Joined: Sat Aug 11, 2018 5:28 am
Deviantart: UndyneHeroine99
Contact:

Re: My sound isn't working!

#3 Post by TsugumiLightning » 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
Howdy!
I'm Flowey!
Flowey the flower!

XP

User avatar
Per K Grok
Veteran
Posts: 484
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
Projects: Defenders of Adacan Part 2
Deviantart: pekj
itch: per-k-grok
Location: Sverige
Contact:

Re: My sound isn't working!

#4 Post by Per K Grok » Sun Aug 12, 2018 4:31 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.
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.
Image Visual Story Telling, DeviantArt Group for animations, comics, games and illustrations https://www.deviantart.com/acgi

User avatar
Kia
Miko-Class Veteran
Posts: 809
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Skype: KiaAzad
Contact:

Re: My sound isn't working!

#5 Post by Kia » 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

User avatar
TsugumiLightning
Newbie
Posts: 20
Joined: Sat Aug 11, 2018 5:28 am
Deviantart: UndyneHeroine99
Contact:

Re: My sound isn't working!

#6 Post by TsugumiLightning » Tue Aug 14, 2018 7:51 pm

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...
Howdy!
I'm Flowey!
Flowey the flower!

XP

User avatar
TsugumiLightning
Newbie
Posts: 20
Joined: Sat Aug 11, 2018 5:28 am
Deviantart: UndyneHeroine99
Contact:

Re: My sound isn't working!

#7 Post by TsugumiLightning » Mon Sep 10, 2018 7:51 am

Here is the music...
rain-window-04.zip
Here is the music
(3.96 MiB) Downloaded 10 times
Howdy!
I'm Flowey!
Flowey the flower!

XP

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

Re: My sound isn't working!

#8 Post by IrinaLazareva » 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.
Attachments
rain-window-04.zip
(238.21 KiB) Downloaded 2 times
There is a light at the end of the tunnel, just pray it's not a train.
___
TODO: unresolved/нерешённое

User avatar
Kia
Miko-Class Veteran
Posts: 809
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Skype: KiaAzad
Contact:

Re: My sound isn't working!

#9 Post by Kia » Mon Sep 10, 2018 1:03 pm

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

User avatar
TsugumiLightning
Newbie
Posts: 20
Joined: Sat Aug 11, 2018 5:28 am
Deviantart: UndyneHeroine99
Contact:

Re: My sound isn't working!

#10 Post by TsugumiLightning » Wed Sep 12, 2018 7:00 pm

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 3 times
Howdy!
I'm Flowey!
Flowey the flower!

XP

User avatar
Per K Grok
Veteran
Posts: 484
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
Projects: Defenders of Adacan Part 2
Deviantart: pekj
itch: per-k-grok
Location: Sverige
Contact:

Re: My sound isn't working!

#11 Post by Per K Grok » 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.
Image Visual Story Telling, DeviantArt Group for animations, comics, games and illustrations https://www.deviantart.com/acgi

User avatar
TsugumiLightning
Newbie
Posts: 20
Joined: Sat Aug 11, 2018 5:28 am
Deviantart: UndyneHeroine99
Contact:

Re: My sound isn't working!

#12 Post by TsugumiLightning » Thu Sep 13, 2018 4:15 am

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..?
Howdy!
I'm Flowey!
Flowey the flower!

XP

User avatar
Per K Grok
Veteran
Posts: 484
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
Projects: Defenders of Adacan Part 2
Deviantart: pekj
itch: per-k-grok
Location: Sverige
Contact:

Re: My sound isn't working!

#13 Post by Per K Grok » Thu Sep 13, 2018 12:48 pm

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.
Image Visual Story Telling, DeviantArt Group for animations, comics, games and illustrations https://www.deviantart.com/acgi

User avatar
TsugumiLightning
Newbie
Posts: 20
Joined: Sat Aug 11, 2018 5:28 am
Deviantart: UndyneHeroine99
Contact:

Re: My sound isn't working!

#14 Post by TsugumiLightning » Fri Sep 14, 2018 8:33 pm

Now the game just logs out when I try it?? What is going on??
Howdy!
I'm Flowey!
Flowey the flower!

XP

User avatar
Kia
Miko-Class Veteran
Posts: 809
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Skype: KiaAzad
Contact:

Re: My sound isn't working!

#15 Post by Kia » Sat Sep 15, 2018 1:04 am

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: No registered users