Commit Graph

78 Commits

Author SHA1 Message Date
Bart van Strien 3a9c71ad8f Check if enum-string conversions succeed in love.audio.get/setDistanceModel (bug #347) 2011-12-31 15:54:11 +01:00
vrld 751d7aa368 Leaner source distance model API. 2011-12-30 15:03:50 +01:00
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
Bart van Strien fafe472595 Prevent working with an invalid iterator (issue #331) 2011-11-16 10:24:10 +01:00
Bart van Strien caf46ad430 Prevent infinite loop when destroying sources (issue #250) 2011-09-26 23:21:53 +02:00
Bart van Strien 8f9a4ef15d Improve stop and rewind logic for openal 2011-09-11 22:29:37 +02:00
Bart van Strien c28659ae33 Rework source updates, do clean stopping of streaming sources once they end. (bug #295) 2011-09-10 17:28:38 +02:00
Bart van Strien 0d174cfb81 Fix compiler warnings 2011-08-26 12:48:57 +02:00
Bart van Strien c47a7c563b REALLY fix stopping sources 2011-08-08 16:26:38 +02:00
Bart van Strien 0b0d8fe3e5 Unbreak stop (issue #250) 2011-08-08 15:54:43 +02:00
Bart van Strien 03f60e2bf3 Unbuffer when rewinding streaming sources (bug #250) 2011-08-07 13:54:36 +02:00
Bart van Strien 416370b595 Improve Source controls 2011-08-06 14:02:37 +02:00
Bart van Strien 69f12bf899 Another fix for seeking in audio sources 2011-08-05 12:29:42 +02:00
Bart van Strien 9c11bfa236 Resolve memory leak in sources 2011-07-24 13:51:24 +02:00
Bart van Strien c924d17de9 Another small fix to the tell 'counting' 2011-07-23 19:57:19 +02:00
Bart van Strien e72f84e7fd Don't reset song counter (for tell) when the decoder loops, but when the song does (bug #251) 2011-07-23 17:49:48 +02:00
Bart van Strien 5192215122 Fix seek and tell on streaming sounds (bugs #250 and #251) 2011-07-22 16:20:51 +02:00
Bill Meltsner 5809f6b067 remove the now-unnecessary SDL stuff from love.audio 2011-07-02 10:52:45 -05:00
Bart van Strien 404a3d529c Make seek and tell thread-safe (bug #245) 2011-07-02 16:43:56 +02:00
Bart van Strien d215c15702 Fix memory leak in audio (bug #249) 2011-07-02 16:21:10 +02:00
Bart van Strien f9ec21619a More audio fixes (bug #217) 2011-06-09 10:26:47 +02:00
Bart van Strien a372dcaec8 Some audio fixes (no more mp3 clicking and popping?) (issue #217) 2011-06-08 23:37:01 +02:00
Przemysław Grzywacz 1d5fca6f46 Multiple thread backends. 2011-06-08 16:54:35 +02:00
rude 3fe9b2ff16 Reverted module selection feature. This is not really desired.
Users (or lovers) do not get to choose which implementation of
a module they would like to use.

The abstraction is for dealing with portability issues, not
for giving people the ability to choose an alternative
(inferior) backend. The best choice for any platform/situation
should at all times be the *default* for that platform/situation.
If this is not the case; it's a bug (that is easily fixed).

Any module should provide the functionality promised in the docs.
The lover (or user) should not care how, and if [s]he does, [s]he
does still not get to choose.

Also, a related note: duplication of wrapper code is something I
especially wanted to avoid when I first (or should I say ...
"eventually") formed the current architecture.

--HG--
branch : minor
2011-03-26 17:06:05 +01:00
Bill Meltsner 37560e36c3 Source:seek didn't work properly for streaming sources, fixed that
--HG--
branch : minor
2011-03-21 14:07:51 -05:00
Bill Meltsner 2faf8aa442 Source:tell actually works now
--HG--
branch : minor
2011-03-20 00:54:34 -05:00
Bill Meltsner 8de9499979 added Source:seek/tell
--HG--
branch : minor
2011-03-19 20:21:40 -05:00
Bart van Strien 526058c707 Added love.audio.null loader
--HG--
branch : minor
2011-03-13 20:31:19 +01:00
Bart van Strien b4139ffab5 Rename loaders to fit their locations
--HG--
branch : minor
2011-03-13 20:25:35 +01:00
Bart van Strien 254bd29244 Move luaopen_love_audio to love.audio.openal
--HG--
branch : minor
2011-03-13 20:17:31 +01:00
Bill Meltsner fde708160e bringing in the new year by changing every 2010 to 2011 2011-01-15 14:40:27 -06:00
vrld 0af7e9e0d8 Fix issue #169 by courtesy of lukaszbruun.
Calling Source::stop() in Source::~Source() could result in a infinite
recursion when Pool::removeSource released the source object.
2011-01-12 22:55:29 +01:00
Bart van Strien 9856fbc705 Add source:isPaused() (enhancement #141) 2010-12-19 12:30:59 +01:00
Bill Meltsner 9c4f04cc5c missed a line of audio capture code (fixes #96) 2010-10-23 14:09:17 -04:00
Bill Meltsner b95c7215e9 commented out the audio capture initialization stuff so that lovers don't get concerned by warnings about being unable to open a capture device 2010-10-12 19:39:16 -05:00
Bill Meltsner fd1294de24 hid audio recording from Lua 2010-09-02 18:25:28 -04:00
Bart van Strien 08c0a68784 FINALLY THE AUDIO BUG HAS BEEN FIXED (fixes #5) 2010-09-02 17:21:09 +02:00
Bill Meltsner 6f90a33e17 Exposed Source:setPosition and its brethren 2010-08-19 09:08:36 -05:00
Bill Meltsner 3f4cd68287 Switched to 8000Hz for recording, because 44.1KHz is way overkill 2010-04-13 10:42:30 -04:00
Bill Meltsner e96e6e0574 love.audio is now smarter about finding a microphone for input; this should hopefully unbreak ALSA. 2010-04-12 16:20:11 -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
Bill Meltsner 09f9fe62b6 Source::pause (and resume, and rewind) was acting on every Source, not just itself. Fixed. 2010-04-01 20:15:10 -04:00
bart@bartbes.ath.cx a91be8936f Added source:isStatic() 2010-03-28 17:52:22 +02:00
Bill Meltsner 012ce3a585 I'm stupid and forgot to add return statements to the new functions 2010-03-15 01:39:28 -04:00
Bill Meltsner 866f826e41 added Source:play(), Source:pause(), etc. 2010-03-15 01:26:57 -04:00
Bill Meltsner 7c33786100 fixed a ridiculous number of gcc warnings, nearly all of which were complaints about unused parameters - the remaining 199 warnings I get are from code that isn't ours (box2d is responsible for all but 8 of them) 2010-02-26 03:55:21 -05:00