Skip to content

tween not working on audio mp3 files #22

@blachawk

Description

@blachawk

I have an mp3 file I would like to tween. I am running Lua 5.4 and Love2d 11.3

I have the following setup in my main.lua file...

local tween = require 'libs/tween/tween'

-- increase the volume of music from 0 to 5 in 10 seconds
local music = {volume = 0, path = "audio/mp3/demo.mp3"}
local musicTween = tween.new(10, music, {volume = 5})

function love.load()
  -- other code...
end

function love.update(dt)
  musicTween:update(dt)
end

function love.draw()
  -- other code...
end

When I run my game, there are no errors, and no sound. but the rest of the game works. what am I doing wrong?

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions