Alex Szpakowski
50916825d0
Data::getSize now uses size_t instead of int
2014-03-18 03:50:00 -03:00
Alex Szpakowski
9e6a3b8d5e
Fixed 8-bit SoundData samples when used in a love.audio Source
2014-03-17 15:06:04 -03:00
Alex Szpakowski
89e9288a85
Make sure SoundData objects aren't initialized with garbage sample values
2014-03-13 05:34:16 -03:00
Alex Szpakowski
55514720a6
Fixed some minor compiler warnings
2014-03-01 21:16:01 -04:00
Alex Szpakowski
ec0f428c4f
Cleaned up the code for initializing love.filesystem and the source and save directories a bit
2014-03-01 20:23:04 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
b091746118
Removed some unused variable warnings when compiling
2014-01-03 02:05:23 -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
Alex Szpakowski
2ee869b0e8
Fixed some compiler warnings
2013-12-07 05:07:54 -04:00
Alex Szpakowski
b2725f8cf5
Updated Visual Studio project for latest changes (thanks Boolsheet)
2013-10-23 17:07:56 -03:00
Alex Szpakowski
e5adc4e5fd
Fixed wave sound playback by using a different wave reader library (thanks Boolsheet!)
...
Resolves issue #25 .
2013-10-23 16:02:06 -03:00
Alex Szpakowski
5542ab7f4e
Fixed crash when checking if a sound file can be decoded by GME
2013-10-19 16:16:42 -03:00
Alex Szpakowski
bf070afffa
Fixed a SoundData constructor to compile in Visual C++ 2010
2013-10-08 18:17:31 -03:00
Alex Szpakowski
f87f97e4fe
Better parameter checking for SoundData (resolves issue #764 )
2013-10-06 21:52:05 -03:00
Alex Szpakowski
1be8ac5be4
Removed some unused functions and fixed up some wrap_ headers
2013-09-26 00:48:48 -03:00
Alex Szpakowski
8d5ddb9e34
Fixed some internal documentation (thanks to clang's -Wdocumentation)
2013-09-23 21:52:28 -03:00
Alex Szpakowski
06f80d5c08
Fixed undefined behaviour when love exceptions are converted into Lua errors (resolves issue #729 )
2013-09-05 23:17:29 -03:00
Alex Szpakowski
c15fc4453b
Re-added Data:getPointer (can be used with LuaJIT's FFI)
2013-08-29 17:16:21 -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
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