Alex Szpakowski
4faddcd9aa
Fixed some trivial compiler warnings
2014-03-12 17:55:19 -03: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
4d1846b745
Removed love.audio.newSource(source) (see issue #319 )
2013-12-25 02:19:59 -04:00
Alex Szpakowski
e6f2d4f1ac
Added Source:clone() and love.audio.newSource(source): creates a new (stopped) Source which has all of the settable state of the original.
...
Static sources don’t duplicate their OpenAL data buffer when cloned (resolves issue #319 ). Cloned streaming sources also clone the original Decoder.
2013-12-20 00:20:41 -04:00
Alex Szpakowski
b57256b3e5
Renamed Source:setRelativePosition and Source:hasRelativePosition to Source:setRelative and Source:isRelative. Updated changelog.
2013-10-25 17:05:29 -03:00
Alex Szpakowski
cf6acfa258
Added Source:getChannels. Positional/directional audio only works with 1-channel (mono) sources.
2013-10-15 23:09:35 -04:00
Alex Szpakowski
13ea750454
Added Source:setCone(innerAngle, outerAngle, outerVolume). Resolves issue #643 .
...
When combined with Source:setDirection (and Source:setPosition or love.audio.setPosition), the cone parameters allow for directional sound output from a Source.
2013-10-11 05:30:11 -03:00
Alex Szpakowski
7f3cd7f044
Added Source:setRelativePosition and Source:hasRelativePosition, if enabled the Source's position will always be relative to the listener instead of absolute.
2013-10-11 02:25:48 -03:00
Alex Szpakowski
66a773d2a7
Renamed Decoder:getBits to Decoder:getBitDepth (see issue #636 )
2013-08-11 04:15:42 -03:00
Bart van Strien
882313551c
Rename SoundData:getBits to getBitDepth ( resolve #636 )
2013-07-11 14:40:52 +02:00
Bart van Strien
ad8e0da351
Fix source reset, specifically audio wasn't always updating the AL_LOOPING flag
2013-06-30 17:29:55 +02:00
Bart van Strien
5d2b20a662
Apply patch that fixes "random" looping of streaming sources (issue #630 )
2013-06-14 14:12:28 +02:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04: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
Bart van Strien
f62bad6e12
Make sure processed is initialized, for when alGetSourcei errors (bug #442 )
2012-06-01 17:10:17 +02:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06: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
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
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
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
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
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
Bart van Strien
08c0a68784
FINALLY THE AUDIO BUG HAS BEEN FIXED ( fixes #5 )
2010-09-02 17:21:09 +02: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
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
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