Tiago Koji Castro Shibata
74c35358bb
Move setMixMode to love.audio
2017-06-10 00:07:39 -03:00
Tiago Koji Castro Shibata
4c145e8c13
Support audio mix modes
2017-06-02 19:35:58 -03:00
Alex Szpakowski
46a2e7b85c
Happy new year! 🎉
2016-01-01 00:05:06 -04:00
Alex Szpakowski
2f419c1c83
Replaced most cases of type bits and type name strings in love's Lua wrapper code with type id's.
...
--HG--
branch : minor
2015-03-01 18:32:41 -04:00
Alex Szpakowski
695ab41915
Added love.audio.set/getDopplerScale.
2015-02-01 00:36:34 -04:00
Alex Szpakowski
f1634bc6a8
The existence of the AL_EXT_MCFORMATS OpenAL extension is checked when creating 5.1 and 7.1 (6 and 8 channel) Sources. love.audio.newSource now errors if the channel count and bit-depth combination of the Source isn't supported.
2015-01-15 15:59:15 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
808e533b02
Tweaked streaming Sources to use fewer OpenAL buffers (and increased the amount of decoded data per buffer to compensate), and removed some unnecessary #include statements.
2014-09-28 14:58:59 -03:00
Alex Szpakowski
da7cd267ea
Changed luax_pushtype to retain the pushed object itself, but only if the object isn't in the Lua state already.
...
Previously, calling e.g. love.graphics.getFont() 10,000 times would retain the object 10,000 times (and release it 10,000 times when the Font object was garbage-collected in the Lua state.) Now it will only retain it once and release it once.
2014-08-09 16:04:59 -03:00
Alex Szpakowski
014b9a46e5
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
2014-07-21 14:52:01 -03:00
Alex Szpakowski
724bdbd296
love.graphics.newImage, love.image.newImageData, etc. no longer leave Lua-owned FileData objects floating around waiting to be GC'd when called with filename arguments, resulting in less memory use on startup (resolves issue #890.)
...
Moved love.filesystem Lua wrapper code from src/modules/filesystem/physfs/ to src/modules/filesystem/.
2014-06-02 00:22:41 -03: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
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
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
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
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
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
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
3a9c71ad8f
Check if enum-string conversions succeed in love.audio.get/setDistanceModel (bug #347 )
2011-12-31 15:54:11 +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
vrld
a13b792a5c
Revert to last commit, as msvc is stuck in the last millenium
2011-02-22 11:15:27 +01:00
vrld
08259a4a0e
Change auto.lua to create plaintext instead of hex code.
2011-02-20 23:34:48 +01:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
Bill Meltsner
fd1294de24
hid audio recording from Lua
2010-09-02 18:25:28 -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
bart@bartbes.ath.cx
736f7ab1a2
love.thread can now share full userdata
2010-02-14 17:41:11 +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
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
623e701549
Modules now reside in Lua and are treated (almost) like normal objects.
...
Also added a way of getting a pointer to abstract module instances internally.
2009-09-02 21:18:13 +02:00
rude
dd420d68a3
Ok, project generation didn't really work out. Reverted.
2009-08-10 21:33:07 +02:00
rude
ba1a75e547
Added many comments, and changed function names for wrapper functions.
2009-08-09 21:08:55 +02:00
rude
cc9a142a98
Added position audio.
2009-08-04 21:13:32 +02:00
rude
8e681b4204
It's now possible to build each module individually (as a DLL).
2009-08-04 19:57:14 +02:00
rude
c1ed4372d9
Wrapped love.audio.resume.
2009-07-31 16:18:52 +02:00
rude
3d76667ca3
Sources are now NOT useless.
2009-07-31 16:08:30 +02:00