games50 / zelda

Lecture examples for Lecture 5: Legend of Zelda
35 stars 42 forks source link

error #3

Open jwardlaw520 opened 4 years ago

jwardlaw520 commented 4 years ago

Error

src/Dependencies.lua:68: bad argument #2 to 'newSource' (string expected, got no value

Anav-117 commented 4 years ago

you have to add the parameter for the type of audio you need, i.e, static or stream. simply add another parameter in the newSource function for all imported audio files. ['music'] = love.audio.newSource('sounds/music.mp3', 'static')