fumanshoo Posted November 21, 2012 Share Posted November 21, 2012 I would expect that loading some sort of song would be as simple as: sound = LoadSound("abstract::02 - Max Out.mp3") Also, how would I set the position of said sound? I have a record player in le game and I want the music to sort of fade out when I leave the room. Must it be an OGG file? Quote Link to comment Share on other sites More sharing options...
Rick Posted November 21, 2012 Share Posted November 21, 2012 Looks at Source's. You make Source objects from Sound objects but Source gives you more control over vol/pitch/etc. 1 Quote Link to comment Share on other sites More sharing options...
DaDonik Posted November 21, 2012 Share Posted November 21, 2012 Create a sound, create a source and then connect the sound to the source. AFAIK the source commands work with mono .wav or .ogg only, but i haven't tried it for like a year. Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
fumanshoo Posted November 21, 2012 Author Share Posted November 21, 2012 I figured it out using an alternate method, but thanks for the help! What I did was: sound = LoadSound("abstract::02 - Max Out.OGG") if KeyDown(KEY_V)==1 then PlaySound(sound) end oh, and .mp3 doesn't work... it says something about a violation haha I probably should have done it the way you guys said, but in this case, what I did worked out fine... Quote Link to comment Share on other sites More sharing options...
cassius Posted November 21, 2012 Share Posted November 21, 2012 Theres a good sound editing program called audacity. Its free. You can convert sound file formats and edit sounds. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
fumanshoo Posted November 21, 2012 Author Share Posted November 21, 2012 Audacity is pretty sweet, but I just converted the .mp3 with http://media.io/t1-v8.jsp?utm_expid=19917220-1&utm_referrer=http%3A%2F%2Fwww.google.com%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3D%26esrc%3Ds%26source%3Dweb%26cd%3D1%26ved%3D0CDMQFjAA%26url%3Dhttp%253A%252F%252Fmedia.io%252F%26ei%3DL1GtUN_MMOGT0QHpsoGgCQ%26usg%3DAFQjCNEebEV6B328Y0OueWNMeCDOFeyCnA%26sig2%3Dj9Ni0fxRreySCto-pUPyeA to save me some time... P.S., Cassius, you get 20 awesome points for always giving me good advice/answers. Thanks . I also have an audio guy working on editing the audio and such for my game, so I don't want to bother with it too much. I only do the converting. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.