Commit Graph

26 Commits

Author SHA1 Message Date
vrld 3b01da803e Merge pull request 2 by Bloutiouf: Sound attenuation by distanceSound
attenuation by distance.

Adds:
love.audio.[gs]etDistanceModel(model-identifier)
Source:[gs]etMinVolume(min-volume)
Source:[gs]etMaxVolume(max-volume)
Source:[gs]etDistance(reference, max)
Source:[gs]etRolloffFactor(rolloff)

Valid Distance models:
"none", "inverse", "inverse clamped", "linear", "linear clamped", "exponent",
"exponent clamped"

Suggestion:
Merge Source:setMinVolume, Source:setMinVolume and Source:setVolume. May be
confusing for lovers though.

May have broken platform/msvc2010/love.vcxproj.filters (had to be modified by
hand without really knowing what I am doing).
2011-12-29 22:45:51 +01:00
Bart van Strien c707a4ca45 Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations) 2011-12-24 01:10:40 +01:00
Jonathan Giroux 36a93e46c7 Add control to the sound attenuation by distance. 2011-12-14 00:32:18 +01:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
vrld a13b792a5c Revert to last commit, as msvc is stuck in the last millenium 2011-02-22 11:15:27 +01:00
vrld 08259a4a0e Change auto.lua to create plaintext instead of hex code. 2011-02-20 23:34:48 +01:00
Bill Meltsner fde708160e bringing in the new year by changing every 2010 to 2011 2011-01-15 14:40:27 -06:00
Bill Meltsner fd1294de24 hid audio recording from Lua 2010-09-02 18:25:28 -04:00
Bill Meltsner 5f2197158d We now return nil instead of a null SoundData when getting recorded data fails. 2010-04-11 16:43:18 -04:00
Bill Meltsner 585e3ec3ee Added sound input and recording functionality. 2010-04-11 12:22:40 -04:00
bart@bartbes.ath.cx 736f7ab1a2 love.thread can now share full userdata 2010-02-14 17:41:11 +01:00
rude aa01c984b9 Updated all dates to 2010. 2010-01-31 16:54:47 +01:00
rude 5b30c7fcfe Major developments to love.audio/love.sound. Music and Sound are gone. There are only Sources now, which is much cleaner.
The audio module was not really stable in 0.6.0, it takes very little messing around to cause OpenAL to do horrible things. It should now be much more stable,
and you *should* be able to play/stop/pause/resume/rewind/loop like a madman without disasters. Seek and tell, however, are still not tested and verified for
all decoders, but that's less important. Also, all objects now have object:type() and object:typeOf(), which returns the type name of the object,
and checks whether an object is of a certain type, respectively.
2010-01-31 11:52:54 +01:00
rude 8e74574544 Fixed playing multiple instances of the same Music. 2009-12-27 17:38:51 +01:00
rude c39242a24a It's now possible to control individual sources. 2009-12-14 19:51:31 +01:00
rude 0d897b0b0f Sound should now work again. Music looping does probably not work, however (at least now with mp3). 2009-10-24 23:48:06 +02:00
rude 87e3c4131c Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal. 2009-10-10 11:11:04 +02:00
rude 623e701549 Modules now reside in Lua and are treated (almost) like normal objects.
Also added a way of getting a pointer to abstract module instances internally.
2009-09-02 21:18:13 +02:00
rude dd420d68a3 Ok, project generation didn't really work out. Reverted. 2009-08-10 21:33:07 +02:00
rude ba1a75e547 Added many comments, and changed function names for wrapper functions. 2009-08-09 21:08:55 +02:00
rude cc9a142a98 Added position audio. 2009-08-04 21:13:32 +02:00
rude 8e681b4204 It's now possible to build each module individually (as a DLL). 2009-08-04 19:57:14 +02:00
rude c1ed4372d9 Wrapped love.audio.resume. 2009-07-31 16:18:52 +02:00
rude 3d76667ca3 Sources are now NOT useless. 2009-07-31 16:08:30 +02:00
rude 0c241a14fb Added resources, and changed slightly how wrappers expose functions. 2009-07-30 00:37:43 +02:00
rude dcb3dfd83d Initial Mercurial commit. 2009-07-26 15:46:49 +02:00