So we agree on the basic thing then: The current system is already confusing.Dattorz wrote:It will just add to the confusion (we already have enough sound-related classes as it is)
What I'm suggesting is something to alleviate that confusion. Maybe it'll be simpler to see with code.
Right now, people do this:
Code: Select all
mySource = love.audio.newSource(...)
...
love.audio.play(mySource)
...
love.audio.play(mySource)
Now with a Sound object, the first thing would be (probably) to remove love.audio.newSource from the API and replace it with love.audio.newSound.
Code would now look like this:
Code: Select all
mySound = love.audio.newSound(...)
...
love.audio.play(mySound)
...
love.audio.play(mySound)
I really think this will make things less confusing. If you think otherwise, please provide some code.