generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: omg playing sound (c++ wise) is so frustrating, halp

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Sep 2015 01:30 PM
PlaySound("bird.wav", NULL, SND_ASYNC);

theres a file named bird.wav in the same folder as the CPP file

this is the dumb nonsense error:


undefined reference to 'PlaySoundA@12'
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Sep 2015 01:48 PM
bumpsies
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Sep 2015 01:54 PM
so no one else gets that error...i just search how to play sounds and that line seems to be working for EVERYBODY

except me

im raging atm

this should not be erroring

at

all
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
24 Sep 2015 02:04 PM
This may help you: cplusplus . com / forum / beginner / 733 /
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
24 Sep 2015 02:05 PM
This also looks particualrly useful: stackoverflow . com / a / 20105088


You need to add the library in lol
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Sep 2015 02:10 PM
i added in "winmm"

and it still returns same f'ing error

halp
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
24 Sep 2015 02:14 PM
Try libwinmm
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Sep 2015 03:11 PM
same error
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
24 Sep 2015 03:17 PM
I dunno qq
Report Abuse
skyarex is not online. skyarex
Joined: 21 Mar 2010
Total Posts: 12989
24 Sep 2015 03:19 PM
You need to say exactly where the file is on your computer.

"Don't Panic"- HHGTTG
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Sep 2015 03:28 PM
its located in the desktop

this is what i wrote now

C:\Users\MyNameHere\Desktop\bird.wav

(changing mynamehere to my name ofc)

the file is a wav file and its named bird
Report Abuse
skyarex is not online. skyarex
Joined: 21 Mar 2010
Total Posts: 12989
24 Sep 2015 03:33 PM
When I was messing with .wav files on python, it had to be written like this:

PlaySound("C:\Users\MyNameHere\Desktop\bird.wav", NULL, SND_ASYNC);

"Don't Panic"- HHGTTG
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
24 Sep 2015 04:30 PM
the problem is ur not using SDL or OpenAL silly
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Sep 2015 04:53 PM
thats what i write, sky
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Sep 2015 05:57 PM
"C:\Users\MyNameHere\Desktop\bird.wav"
I don't know much of anything about C, but I certainly hope you're using a string literal for this (As I'm assuming even C has escape sequences)
Report Abuse
gskw is not online. gskw
Joined: 05 Jan 2013
Total Posts: 1364
25 Sep 2015 12:23 AM
Are you passing the correct arguments to the compiler/linker? Seems like you're missing a library.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
25 Sep 2015 08:20 AM
then how do i get the library e.e
Report Abuse
gskw is not online. gskw
Joined: 05 Jan 2013
Total Posts: 1364
25 Sep 2015 08:41 AM
Pass -lLIBRARYNAME to the compiler.
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
25 Sep 2015 08:43 AM
you're dumb, fedorakid

-=Robo=-
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
25 Sep 2015 08:52 AM
robocu, out.

i know how to get libraries and using like #include

and also the linker settings

but yesterday i added winmm and nothing happens
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
25 Sep 2015 08:54 AM
and also

its still not working

what do i put in the linker settings

or how do i fix this crap e.e
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
25 Sep 2015 08:54 AM
goes to show you can't take your own medicine
kill yourself

-=Robo=-
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
25 Sep 2015 08:55 AM
dont know what you mean

kys

wont be replying to scum like u anymore kkthx
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
25 Sep 2015 08:56 AM
kys
you're terrible at programming yet you act superior to people you don't even know
run in front of traffic

-=Robo=-
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
25 Sep 2015 11:15 AM
bmp
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image