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
eb4fdf3bbe
Use a separate preprocessor define for using Framework #includes in OS X (resolves issue #796 )
2013-12-13 02:37:06 -04:00
Bart van Strien
3d82eecc08
Apply the love-experiment moduleselect branch
...
You can now:
- Enable and disable love's modules, implementations and libraries using configure switches
- Use pkg-config for a couple of love's requirements
- Build on OSX
- Use newer versions of FreeType2
- Get a slightly better error message using automagic
2013-12-08 19:32:32 +01:00
Alex Szpakowski
fad9d25093
Removed Source:getType (resolves issue #776 )
2013-10-28 19:33:22 -03: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
3e9fcacf07
Code style fixes
2013-10-20 04:02:09 -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
2710c6c488
Renamed Source:s/getDistance to Source:s/getAttenuationDistances (resolves issue #632 ).
...
Fixed detection for mipmap sharpness support.
2013-10-10 23:05:45 -03:00
Alex Szpakowski
95eedcd1be
Using auto for some iterators for less dense-looking code
2013-09-30 02:35:10 -03:00
Alex Szpakowski
ec9dec6b80
Replaced luax_newtype with luax_pushtype (and added luax_rawnewtype for the old functionality of luax_newtype.)
...
luax_pushtype keeps the object in a weak table and checks the table before creating a new userdata, so it re-uses the object's existing wrapper userdata if it can, whenever the object is pushed to Lua.
This fixes some subtle issues with love objects, where using them as keys in tables would not always work as expected (https://love2d.org/forums/viewtopic.php?f=4&t=39398&p=112388#p112415 ). It also decreases the amount of new Lua objects created, saving the garbage collector some work.
2013-08-29 00:40:06 -03:00
Alex Szpakowski
f7ca9ef557
Fixed race condition in Source:play (thanks Boolsheet)
2013-08-19 16:05:43 -03:00
Alex Szpakowski
66a773d2a7
Renamed Decoder:getBits to Decoder:getBitDepth (see issue #636 )
2013-08-11 04:15:42 -03:00
Alex Szpakowski
4d6bdf4857
Added Source:getType
2013-08-03 21:30:47 -03:00
Alex Szpakowski
a4ff39e0d4
Improved error checking for some enum strings (resolves issue #690 ).
...
Also moved love.audio.newSource from Lua code into C++ code
2013-08-03 21:24:43 -03:00
Bart van Strien
882313551c
Rename SoundData:getBits to getBitDepth ( resolve #636 )
2013-07-11 14:40:52 +02:00
Bart van Strien
e382c8939c
Make Source:seek fail with negative offsets ( resolves #667 )
2013-07-11 14:19:15 +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
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
e05e8e6e6a
Switched audio backends in OS X from Apple's OpenAL implementation to OpenAL Soft
2013-02-13 04:01:02 -04:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
0fd4b147a4
Merge in default
...
--HG--
branch : minor
2013-01-27 19:15:55 +01:00
Bart van Strien
49961d66c7
Fix setVolumeLimits (issue #537 )
2013-01-18 00:32:25 +01:00
vrld
c70cd5b8ee
Merge default branch
...
--HG--
branch : minor
2012-11-23 10:24:46 +01:00
vrld
dcfc18192d
Fix issue #494 : Source:getDistance doesn't work
2012-11-23 10:24:15 +01:00
Bart van Strien
a67a23e10f
Maerge in default
...
--HG--
branch : minor
2012-11-18 19:28:57 +01:00
Bart van Strien
3a47bafd41
Add Source:isPlaying
2012-11-18 19:01:51 +01: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
Bart van Strien
f62bad6e12
Make sure processed is initialized, for when alGetSourcei errors (bug #442 )
2012-06-01 17:10:17 +02:00
Boolsheet
ee1b679639
Use OpenAL's direct channel features, should improve audio quality
2012-05-29 23:37:25 +02:00
Bart van Strien
839b48c3e9
Make most Source setters default their z coordinate to 0, instead of erroring in its absence (issue #423 )
2012-05-19 01:22:38 +02:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
e0b420c988
Properly export love modules to lua, package.loaded is correct now
2012-01-07 14:08:41 +01:00
Bart van Strien
ee231e7b4c
Fix DistanceModel enum conversion
2011-12-31 18:40:54 +01:00
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