Commit Graph

65 Commits

Author SHA1 Message Date
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
bart@bartbes.ath.cx 736f7ab1a2 love.thread can now share full userdata 2010-02-14 17:41:11 +01:00
Bill Meltsner 73aba4bdd4 eliminated a whole bunch of gcc warnings 2010-02-09 13:21:25 -05:00
rude e7a6323635 Made sure the state of the Source is applied to the AL source when it's played. Also increased the max number if sources allowed at the same time. 2010-02-02 21:22:57 +01:00
bart@bartbes.ath.cx 7935050435 Now builds on Ubuntu 9.10 2010-01-31 23:16:10 +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
bill@Ixion 10b5530c0d updated xcode project to build properly, fixed a typo, miscellaneous unwanted line ending changes 2009-10-12 14:01:47 -05: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 3df85df1c1 Fixed immortal Sources. 2009-09-14 21:47:08 +02:00
bart@bart e30e28eb6c Added a forgotten GC release 2009-09-13 21:37:05 +02:00