I cant get my audio to play
Posted: Mon Dec 02, 2024 5:18 pm
the audio for the code won't play even though there is a love.audio.play here is the code and the file
Code: Select all
function love.load()
whale = love.graphics.newImage("whale.jpg")
follow = love.graphics.newImage("follow.png")
gofollow = love.graphics.newImage("Go follow.png")
cowbelly = love.graphics.newVideo("Cowbelly.ogv")
cowbellyaudio = love.audio.newSource("cowbelly.mp3", "static")
love.audio.play(cowbellyaudio)
love.window.setFullscreen(true, "desktop")
end
function love.draw()
love.graphics.draw(whale, 300, 200)
love.graphics.draw(follow, 200, 500)
love.graphics.draw(gofollow, 200, 100)
love.graphics.draw(cowbelly, 700, 100)
cowbelly:play()
end
function love.keypressed(key, scancode, isrepeat)
if key == "escape" then
love.event.quit()
end
end