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
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
aaa301ead2
Error if getting/setting out-of-range samples (issue #674 )
2013-07-09 15:00:51 +02:00
Bart van Strien
2ad7562e6b
Make sound decoder selection based on extension case-insensitive (issue #662 )
2013-06-30 16:32:56 +02:00
Bart van Strien
b6c8a48c25
--disable-mpg123 needs the header conditionally included, too
2013-05-26 23:21:35 +02:00
Bart van Strien
c99fb2fb99
Fix --disable-mpg123 by telling automake to not compile it, instead of using ifdefs
2013-05-26 22:34:04 +02:00
Bart van Strien
fb8a94a4a3
Enable looping in tracker formats with looping support (issue #421 )
2013-05-10 17:00:15 +02:00
Alex Szpakowski
fb9f8d2962
Added the getString method to all Data objects (issue #608 )
2013-04-26 22:35:01 -07:00
Alex Szpakowski
16f3a93f28
Removed vestigial internal code for Data:getPointer
2013-04-26 22:05:58 -07:00
Alex Szpakowski
a477223629
Fixed love.audio.newSource, love.sound.newSoundData, and love.sound.newDecoder crashing when given a nonexistant filepath
2013-04-19 16:00:36 -03:00
Alex Szpakowski
c215541d6c
Merged mage-CompressedData into default
2013-04-09 23:44:00 -03:00
Alex Szpakowski
7403245715
Cosmetic code improvements
...
--HG--
branch : image-CompressedData
2013-04-07 22:58:08 -03:00
darthfodder
2bdc4b04a8
Fix formatting to be like original default
...
--HG--
branch : sounddata-samplecount
2013-04-07 18:25:59 -07:00
darthfodder
f55a282f34
Fix conflicts with default
...
--HG--
branch : sounddata-samplecount
2013-04-07 18:22:56 -07:00
Alex Szpakowski
fa799227a2
Fixed SoundData:getDuration
2013-03-26 19:45:32 -03:00
darthfodder
11dc74c7db
Add SoundData:getSampleCount() function
...
Adds SoundData:getSampleCount(), calculates how many samples there are
in this particular SoundData. resolves #578
--HG--
branch : sounddata-samplecount
2013-03-25 22:04:39 -07:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
8fba362fc5
Add SoundData:getDuration, returns the duration in seconds
2013-01-29 23:19:26 +01:00
Bart van Strien
33d7115887
Make love.sound.newDecoder accept FileData, and make File->read return FileData
2012-10-14 17:19:40 +02:00
rude
7baf22c0e3
Apply Boolsheet's GME leak patch.
2012-08-21 16:14:38 +02:00
Bill Meltsner
b24e7ab64f
Update the Xcode project and enable GME support on OS X.
...
Requires Game_Music_Emu.framework, which is included in the updated OS X SDK.
2012-08-18 11:56:42 -05:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
098ffb7336
Added support for GME (Game_Music_Emu).
...
This makes it possible for LÖVE to play music files for NES, SNES, MegaDrive,
and many more. It's pretty cool.
The feature is disabled until each platform is ready to link with GME. Packages
exist for Debian and Arch, and it compiled without any issues in MSVC++, so
I don't expect this to a problem for anyone.
2012-07-02 00:19:43 +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
124e9d1d2a
Fix memory leak in the mp3 decoder, turned out to be of pretty decent size (bug #395 )
2012-05-29 21:33:10 +02:00
Bart van Strien
7b161e5c41
Make using mpg123 optional, add option to linux build system
...
Added so people can make patent-free builds (easily), for example for patent-free distro's
2012-05-19 01:05:43 +02:00
Bart van Strien
eb7a758691
Apply patch "More efficient SoundData allocator" that allocates memory less often, and shrinks to minimum size afterwards
2012-05-18 19:21:40 +02:00
Bart van Strien
43c5576268
Remove warning in autotools and make LOVE_OLD_MODPLUG define that disables some new modplug settings
2012-03-22 17:21:28 +01:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06: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
Bart van Strien
91fefbd1ee
*click* *pop* *POOF*
2011-12-13 17:11:57 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
Bill Meltsner
d20f42c230
this machine kills compiler warnings
2011-10-12 14:41:25 -05:00
Bart van Strien
515596d389
Ehm, unsigned double.. sure..
2011-08-13 15:38:03 +02:00
Bart van Strien
73d062e8fe
Check if SoundData can allocate the memory and limit maximum size to INT_MAX
2011-08-13 15:30:29 +02:00
rude
e1d1ebb2f1
Fix warnings in MSVC 2010.
2011-07-24 18:32:11 +02:00
Bart van Strien
07393c46f2
Allocate as many samples as requested (issue #240 )
2011-07-11 17:18:55 +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
Bart van Strien
4fd9888a16
Merge in minor branch, now minor is our next development target
2011-05-07 14:12:41 +02:00
rude
fe6d168bf1
Enable mStereoSeparation/mMaxMixChannels settings in Windows.
2011-04-07 18:16:44 +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
1de511e3b9
seeking was broken in Mpg123Decoder
...
--HG--
branch : minor
2011-03-21 14:07:29 -05: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
dc61911a25
Move luaopen_love_sound to love.sound.lullaby
...
--HG--
branch : minor
2011-03-13 20:02:56 +01:00
rude
95ba8d1e13
Disabled mStereoSeparation and mMaxMixChannels until library is updated on Windows.
2011-03-09 11:07:26 +01:00
vrld
c3cfff987c
More sensible volume settings for Modpluggable files.
2011-03-01 20:11:30 +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
a6a1e91976
mp3s sampled at rates other than 44.1KHz will play properly now (fixes issue #170 )
2011-01-15 14:32:02 -06:00
Bill Meltsner
4479e8dfc4
removed user-specified sample rates for Decoders
2011-01-15 14:29:10 -06:00