TEsound - simple, easy sound/music manager
Re: TEsound - simple, easy sound/music manager
Can someone upload a simple .love file showing how to use this?
Re: TEsound - simple, easy sound/music manager
It'd look like this:Codex wrote:Can someone upload a simple .love file showing how to use 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
-----
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")
Code: Select all
TEsound.play(mineralSound)
TEsound.cleanup()
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
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??? - )
(edit: I just tried switching the bgm to a mp3 and it sounded the same??? - )
- Attachments
-
- bgm_test.love
- (587.48 KiB) Downloaded 491 times
- georgeprosser
- Citizen
- Posts: 68
- Joined: Fri Mar 28, 2014 5:55 pm
Re: TEsound - simple, easy sound/music manager
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.)
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
Yes it is compatible to 0.9georgeprosser wrote:Hi, is TEsound updated to work with 0.9?
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.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.)
Re: TEsound - simple, easy sound/music manager
Bug: It seems like TEsound.play() can't handle tables at all.
-
- Party member
- Posts: 134
- Joined: Tue Mar 29, 2011 11:05 pm
Re: TEsound - simple, easy sound/music manager
nil
Last edited by drunken_munki on Mon Feb 09, 2015 6:44 pm, edited 1 time in total.
Re: TEsound - simple, easy sound/music manager
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).
OpenAL EFXs are currently not supported.
I also introduced this switches to globally enable or disable sounds/music (Streams).
Code: Select all
TEsound.sound = true
TEsound.music = true
-
- Prole
- Posts: 9
- Joined: Wed Jul 09, 2014 2:22 pm
Re: TEsound - simple, easy sound/music manager
Is this (or can it be) on github? I would love to contribute and track changes!
Re: TEsound - simple, easy sound/music manager
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 ?
But currently only in my game template. I create another github tomorrow for only TESound, so you can contribute. Ok ?
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests