Sasha Szpakowski
de5495bb03
reduce possibility of errors in love code when overwriting built-in lua APIs
2025-03-31 19:13:25 -03:00
Sasha Szpakowski
94d5864144
update year for copyright notice
2024-02-10 12:13:22 -04:00
Sasha Szpakowski
0b75f6cfa5
Missed some files...
2022-12-31 22:36:48 -04:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -04:00
Alex Szpakowski
fe2c204a2c
Use Data:getFFIPointer instead of Data:getPointer for internal ImageData and SoundData FFI code.
2019-10-27 19:07:58 -03:00
Alex Szpakowski
0752f27bdf
Update copyright year for 2019
2019-01-03 21:09:05 -04:00
Bart van Strien
fd514d8176
Update some more copyright notices
...
I am so good at using search/replace I definitely didn't need a second commit
for this.
2018-01-03 19:55:02 +01:00
Bart van Strien
ac12424bab
Add optional channel parameter to SoundData:getSample/setSample ( resolves #1346 )
...
If omitted they work as before, if specified it handles the interleaving internally.
--HG--
branch : minor
2017-10-04 13:56:14 +02:00
Alex Szpakowski
bf6983beac
Rename Source/SoundData/Decoder:getChannels to getChannelCount (resolves issue #1307 ). Deprecate the old methods rather than completely removing them.
...
--HG--
branch : minor
2017-08-27 14:40:46 -03:00
Alex Szpakowski
abb72cb813
Happy new year! 🥂
...
--HG--
branch : minor
2017-01-02 01:28:29 -04:00
Alex Szpakowski
00d30b2a9d
Merge default into minor
...
--HG--
branch : minor
2016-10-24 18:20:28 -03:00
Alex Szpakowski
ff53e8fe71
Fix non-integer coordinates passed to ImageData:mapPixel/setPixel/getPixel and SoundData:set/getSample.
...
LuaJIT does interesting things when you index into a FFI array using a non-integer value.
2016-10-24 18:14:09 -03:00
Alex Szpakowski
37520bd18b
Added Object:release. Calling it is the equivalent of removing all Lua-side references to an object and doing a full garbage collection cycle (thus deleting the object from memory if nothing else in LÖVE's code is referencing it).
...
Any attempt to call a method on the object after it has been released will result in an error. Object:release() returns true if it was successful, or false if not (if it has already been released previously).
--HG--
branch : minor
2016-10-06 21:59:01 -03:00
Alex Szpakowski
7db2997bc3
Improved the error messages caused when invalid or missing arguments are given to ImageData and SoundData methods.
2016-01-26 22:19:35 -04:00
Alex Szpakowski
46a2e7b85c
Happy new year! 🎉
2016-01-01 00:05:06 -04:00
Alex Szpakowski
e0dca60380
Cleaned up some code.
2015-12-07 23:01:52 -04:00
Alex Szpakowski
409d313bff
Added FFI versions of SoundData:getBitDepth and SoundData:getDuration.
2015-06-14 18:58:11 -03:00
Alex Szpakowski
532c61c6c2
Implemented efficient FFI versions of SoundData methods, which are used when the LuaJIT FFI and JIT compiler are present.
2015-06-14 18:41:34 -03:00