TEsound - simple, easy sound/music manager

Showcase your libraries, tools and other projects that help your fellow love users.

Awesome?

Yes! Thank you!
54
75%
Yes, but I don't need it.
16
22%
No. (Please tell me why)
2
3%
 
Total votes: 72

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: TEsound - simple, easy sound/music manager

Post by Robin »

tentus wrote:
Taehl wrote:Do we really need yet another lewdly-named module?
Yes, clearly. :nyu:
Meh.
Help us help you: attach a .love.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: TEsound - simple, easy sound/music manager

Post by kikito »

Taehl wrote:The name "Moan" is already taken by a sound synth. Do we really need yet another lewdly-named module?
"Moan" is not lewd enough for my taste, and "pornomatopoeia" is not short enough. What a dilemma.
When I write def I mean function.
User avatar
FinalSin
Prole
Posts: 16
Joined: Tue Dec 14, 2010 3:09 pm

Re: TEsound - simple, easy sound/music manager

Post by FinalSin »

Hey folks, I'm using TEsound and it's really wonderful, but I've just tried to get it to run a midi file and it's sounding rather odd indeed. Here's what the console had to say:
load_pat > can not open /usr/local/share/timidity/timidity.cfg, use environment variable MMPAT_PATH_TO_CFG for the directory
About a million times...

I'm on Mac. The code was:

TEsound.playLooping({"music1.mid", "music2.mid", "music3.mid"}, "music")

It might be a problem my end, just throwing it out there.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: TEsound - simple, easy sound/music manager

Post by Taehl »

Hm, never tried using a MIDI file before...

*Does so* ACK! *Shuts it off quickly*

It sounds to me like Love ignores channel volume levels when playing MIDI. I don't think it's a problem with TEsound, since file decoding and stuff is handled by Love. I even tried completely removing TEsound's volume control, just in case, but it didn't do any good. I'll submit this problem to the issue tracker. Thank you for finding it.

In the meantime, I guess your best option would be to convert your .midi files to either .it or .ogg.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
FinalSin
Prole
Posts: 16
Joined: Tue Dec 14, 2010 3:09 pm

Re: TEsound - simple, easy sound/music manager

Post by FinalSin »

No problem, happy to be of some kind of service. TEsound is amazing, it's completely solved every sound problem I've had with my games. Thanks a lot. :)
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: TEsound - simple, easy sound/music manager

Post by Taehl »

I just updated TEsound, to fix an outrageously sneaky pair of bugs. You could go for months without ever noticing them (I, myself, did, and I wrote the bloody thing!), but updating won't hurt. Grab it here.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: TEsound - simple, easy sound/music manager

Post by Taehl »

Minor update, fixing a single rare bug which could cause Love to crash with no error message.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: TEsound - simple, easy sound/music manager

Post by Taehl »

Another minor update: Now TEsound can work with SoundData, not just filepaths. Whether or not to use this is a performance tradeoff - I, personally, would recommend storing sound effects as SoundData but leaving music as filepaths. Download link is on the first page of this thread, the wiki, and here.

Credit for this idea goes to nevon. Or bartbes. Or whoever.
Last edited by Taehl on Sun Jan 29, 2012 6:33 pm, edited 1 time in total.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: TEsound - simple, easy sound/music manager

Post by nevon »

Taehl wrote:Credit for this idea goes to nevon.
Actually, credit for that should go to bartbes. I'm pretty sure he was the one who wrote our resource loader.
samhay18
Prole
Posts: 1
Joined: Sat Apr 14, 2012 6:34 pm

Re: TEsound - simple, easy sound/music manager

Post by samhay18 »

Hi,
I downloaded this lib and i'm not sure if i'm doing something wrong. I have a two tags, "music" and "sfx" tagged with TEsound.play . When I go to tagVolume of those two tags to a specific volume it doesn't do anything. I looked through the code and found that TEsound.volumeLevels never has any contents inside it. Am I tagging the sounds wrong? Thanks though since the rest works so well!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 137 guests