Jump to content

Recommended Posts

Posted

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?

Posted

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.

(Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI)

Posted

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...

Posted

Theres a good sound editing program called audacity. Its free. You can convert sound file formats and edit sounds.

  • Upvote 1

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Posted

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 biggrin.png .

 

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...