Page 4 of 6
Re: TEsound - simple, easy sound/music manager
Posted: Tue Apr 24, 2012 6:14 am
by Codex
Can someone upload a simple .love file showing how to use this?
Re: TEsound - simple, easy sound/music manager
Posted: Sun Jun 17, 2012 10:40 pm
by munchor
Codex wrote:Can someone upload a simple .love file showing how to use this?
It'd look like this:
main.lua
Code: Select all
require "TEsound.lua"
function love.load()
end
function love.update(dt)
TEsound.play("sounds/beep.ogg"
TEsound.cleanup()
end
function love.draw()
end
Include "TEsound.lua" and "beep.ogg" on same directory and it'll play a beep nonstop.
-----
I have a problem with TEsound... Basically, the first time I play a certain sound it takes a while to load (like 3 seconds), but after that, I can play it all the time.
Is there any way to preload the sound? Here's what I'm doing on love.load():
Code: Select all
mineralSound = love.sound.newSoundData("sounds/plink.ogg")
And on love.update():
Code: Select all
TEsound.play(mineralSound)
TEsound.cleanup()
I have lots of other code, but it's more or less like that.
Thank you!
(playing the sound when the game opens works, but that's not really a good way around it, because it implies putting the volume to 0, and then set the volume again.)
How can I solve it nicely?
Re: TEsound - simple, easy sound/music manager
Posted: Thu Aug 09, 2012 5:31 pm
by Codex
Tried to use this a little while ago. .ogg files seem to convert differently than other files? I was trying to loop a 15 sec bgm over and over again. The result was some tangled mesh of the former song...
(edit: I just tried switching the bgm to a mp3 and it sounded the same??? -
)
Re: TEsound - simple, easy sound/music manager
Posted: Tue Jun 10, 2014 11:46 am
by georgeprosser
Hi, is TEsound updated to work with 0.9?
And is there any way to start a sound playing from a certain point? (I want to jump to a 'parallel' version of the same song when the game is paused.)
Re: TEsound - simple, easy sound/music manager
Posted: Tue Jun 10, 2014 5:15 pm
by Jeeper
georgeprosser wrote:Hi, is TEsound updated to work with 0.9?
Yes it is compatible to 0.9
georgeprosser wrote:
And is there any way to start a sound playing from a certain point? (I want to jump to a 'parallel' version of the same song when the game is paused.)
I am not sure, but one way would be to edit it on the audio file, ie have the file start where you want it to start.
Re: TEsound - simple, easy sound/music manager
Posted: Mon Jun 23, 2014 10:37 pm
by murks
Bug: It seems like TEsound.play() can't handle tables at all.
Re: TEsound - simple, easy sound/music manager
Posted: Tue Jul 15, 2014 8:57 am
by drunken_munki
nil
Re: TEsound - simple, easy sound/music manager
Posted: Tue Jul 22, 2014 9:47 am
by SiENcE
I
modified TEsound to support audio sources. This way you can modify audio sources via the LÖVE
source commands for positional Audio. You can change Pitch and maybe implement the
OpenAL Doppler Effect.
I also introduced this switches to globally enable or disable sounds/music (Streams).
Code: Select all
TEsound.sound = true
TEsound.music = true
OpenAL EFXs are currently not supported.
Re: TEsound - simple, easy sound/music manager
Posted: Tue Jul 22, 2014 2:19 pm
by JaredSartin
Is this (or can it be) on github? I would love to contribute and track changes!
Re: TEsound - simple, easy sound/music manager
Posted: Thu Jul 31, 2014 9:49 pm
by SiENcE
It's on github as i posted
https://github.com/SiENcE/love2d_gamete ... Esound.lua
But currently only in my game template. I create another github tomorrow for only TESound, so you can contribute. Ok
?