raidho36
7934bfaf7f
ported TYPE_QUEUE Source from default to minor
...
--HG--
branch : minor
2016-10-11 06:30:30 +03:00
Bart van Strien
f76879c6b7
New audio playback API
...
Instead of having three states, stopped, paused and playing, now there's only
two states: paused and playing.
This means resume() is gone, as is isStopped(), and isPaused() has become
isPlaying(). stop() now pauses and rewinds, whereas pause() only pauses.
rewind() has been removed, and should either be replaced with stop() or
seek(0).
The same has been applied to the functions in the love.audio module, except they
get some extra magic:
- love.audio.pause() now returns a table/list of Source objects, which contains
only the sources it has just paused. This means you can then later restart
only them, instead of everything (as before).
- love.audio.play/pause/stop now have variants that take a list of Source
objects, and it starts or stops them all at the same time, this means calling
play(srcA, srcB) should mean srcA and srcB are much more (but possibly not
exactly) synchronised than they were with play(srcA); play(srcB).
--HG--
branch : minor
2016-04-02 17:38:19 +02:00
Alex Szpakowski
46a2e7b85c
Happy new year! 🎉
2016-01-01 00:05:06 -04:00
Alex Szpakowski
0558fcdbd4
Added Source:getDuration (thanks Boolsheet!)
...
For streaming sources, the duration may not always be sample-accurate and may return -1 if it cannot be determined at all.
2015-11-07 01:49:37 -04:00
Bart van Strien
7e44034757
Add a MutexRef class to clean up Mutex handling code
2015-07-06 11:58:08 +02:00
Alex Szpakowski
f29567160a
Fixed love.audio.stop() not rewinding streaming Sources.
2015-04-26 21:22:04 -03:00
Alex Szpakowski
ebc68023a7
Fix many warnings about implicit integer conversions when compiling for 64 bits.
...
--HG--
branch : minor
2015-02-20 01:20:08 -04:00
Alex Szpakowski
85de3c41fb
Initial iOS implementation.
...
--HG--
branch : minor
2015-02-20 00:21:21 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
d6cd2e2e7e
Prettied up some code.
2014-08-26 00:05:08 -03:00
Alex Szpakowski
de1f105e40
the AL_SOFT_direct_channels OpenAL extension shouldn't be required for compilation
2014-02-08 02:43:13 -04:00
Alex Szpakowski
33f12a6091
Source:play now returns false if alSourcePlay failed
2014-01-29 17:04:03 -04:00
Alex Szpakowski
a49c2a88c1
Increased robustness of audio module initialization (see issue #646.) Also changed Source:play to return a boolean indicating success.
2014-01-29 05:24:47 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
95eedcd1be
Using auto for some iterators for less dense-looking code
2013-09-30 02:35:10 -03:00
Alex Szpakowski
f7ca9ef557
Fixed race condition in Source:play (thanks Boolsheet)
2013-08-19 16:05:43 -03:00
Alex Szpakowski
4c616e409b
Renamed ParticleSystem:count, Channel:count, and all getNum* functions to get*Count (issue #602 )
2013-05-03 04:04:44 -03:00
Bart van Strien
3d0c5761ce
Merge in default, update changelog
...
--HG--
branch : minor
2013-03-03 19:51:04 +01:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
399a6a6614
Merge in channels from love-experiments
...
Rewritten love.thread and changed communication
method from weird system before, to channels.
--HG--
branch : minor
2012-07-04 17:15:16 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Boolsheet
ee1b679639
Use OpenAL's direct channel features, should improve audio quality
2012-05-29 23:37:25 +02:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06: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
c47a7c563b
REALLY fix stopping sources
2011-08-08 16:26:38 +02:00
Bart van Strien
9c11bfa236
Resolve memory leak in sources
2011-07-24 13:51:24 +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
Przemysław Grzywacz
1d5fca6f46
Multiple thread backends.
2011-06-08 16:54:35 +02:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06: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
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
3df85df1c1
Fixed immortal Sources.
2009-09-14 21:47:08 +02:00
rude
dcb3dfd83d
Initial Mercurial commit.
2009-07-26 15:46:49 +02:00