[SOLVED!] Unable to play .wav file sound?

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.
Post Reply
Message
Author
User avatar
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

[SOLVED!] Unable to play .wav file sound?

#1 Post by sasquatchii »

Hi! I am having a bit of trouble getting a specific sound file to play in my game! Here's a snippet of what I've got:

Code: Select all

label feel_action:
    laika "The bed I'm in is hard and small."
    laika "I think there is something behind me, my tail has touched it." 
    laika "But I can't turn around to check."
    laika "When I lie down, I notice two strange things next to my head. They are cold and metallic."
    laika "When I lick the strange thing a tiny piece of food comes out." 
    laika "Water comes out of the other thing. It's not a lot, but I feel better."
    laika "When I turn my head, it feels like something is stuck to me." 
    laika "I really want to scratch at it so it goes away, but my leg won't reach it."
    play sound "sounds/34878__sruddi1__whine1.wav"  
    laika "I hope it goes away soon."
    jump choices
I've also uploaded the game file to google drive if anyone wants to poke around and take a look: https://drive.google.com/open?id=1EVt0F ... fp4Z0V__0u

Any help or ideas would be much appreciated!
Last edited by sasquatchii on Mon Jan 15, 2018 9:38 pm, edited 1 time in total.
ImageImage

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2397
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Unable to play .wav file sound?

#2 Post by Ocelot »

I have reencoded audio file. It should work now. Apparently, RenPy wants 16bit PCM file and won't accept 24 or 32bit.
Attachments
34878__sruddi1__whine3.zip
(556.93 KiB) Downloaded 49 times
< < insert Rick Cook quote here > >

User avatar
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

Re: Unable to play .wav file sound?

#3 Post by sasquatchii »

Thank you so much, Ocelot!!! The file you attached works perfectly! i would have never thought about reencoding it (I dont even know how you would do that) so you saved me a ton of time and frustration!! I really appreciate your help :)
ImageImage

Post Reply

Who is online

Users browsing this forum: Google [Bot]