Search found 12 matches
- Thu Mar 29, 2012 1:36 am
- Forum: Support and Development
- Topic: Getting audio to work?
- Replies: 14
- Views: 9643
Re: Getting audio to work?
I have required the code. And I have changed the music code to this: function love.audio() music = love.audio.newSource("hurricane.ogg") -- if "static" is omitted, LÖVE will stream the file from disk, good for longer music tracks love.audio.play(music) end It's in music.lua EDIT:...
- Thu Mar 29, 2012 12:09 am
- Forum: Support and Development
- Topic: Getting audio to work?
- Replies: 14
- Views: 9643
Getting audio to work?
Sorry, I'm really new to scripting but this is confuzzling. https://love2d.org/wiki/Tutorial:Audio I understand the script and all, but where do I put it? In an audio.lua file, or a main.lua file? How do I load it? I wish these tutorials were more helpful. That or I'm just dumb. EDIT: Here is the er...