Raidho
422325588e
fixed potential memory leak, minor code imporovements
...
--HG--
branch : minor-mic-input
2016-11-04 05:40:07 +03:00
Raidho
c7c253f449
made getRecordingDevices keep already existing devices
...
--HG--
branch : minor-mic-input
2016-11-03 20:24:21 +03:00
Raidho
57d02dec2b
Addressed some criticism
...
getRecordingDevices internal function is now returns constant reference,
also re-enumerates devices every time it is called; this is a slow operation
getID removed for not being useful
--HG--
branch : minor-mic-input
2016-11-03 06:31:31 +03:00
Alex Szpakowski
5ba449d1ff
Add support for BC4-7 compressed texture formats in KTX files. Updated the changelog.
2016-10-29 23:42:40 -03:00
Nathan Korth
53c528aa44
Add 'ellipse' distribution to ParticleSystem
2016-10-28 16:26:28 -04:00
Alex Szpakowski
ec7565176e
Add love.window.isMaximized
2016-10-24 21:35:22 -03:00
Raidho
a99c757652
made :getData produce SoundData directly
...
moved SoundData::load back to private
--HG--
branch : minor-mic-input
2016-10-25 02:39:39 +03:00
Raidho
3de68707d1
made device enumeration lazy
...
made enumerator to first attempt aquire default device name by standard means,
then to fall back to read name from opened device
getRecordingDeviceCount removed for being redundant
--HG--
branch : minor-mic-input
2016-10-25 02:05:53 +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
Raidho
424d2704ec
made RecordingDevice throw errors on invalid parameters
...
--HG--
branch : minor-mic-input
2016-10-23 19:22:56 +03:00
Raidho
9a090e8df8
made RecordingDevice create new SoundData every time captured samples are aquired
...
--HG--
branch : minor-mic-input
2016-10-23 18:53:02 +03:00
Raidho
87f0b2811e
Microphone input implemented.
...
RecordingDevice class added
(number)love.audio.getRecordingDeviceCount() and (table)love.audio.getRecordingDevices() exposed
(bool):startRecording([samples, sampleRate, bitDepth, channels], (SoundData):stopRecording([SoundData]),
(SoundData):getData([SoundData]), (number):getSampleCount(), (number):getSampleRate(), (number):getBitDepth(),
(number):getChannels(), (string):getName(), (number):getID(), (bool):isRecording() member functions exposed
previously existed stub implementation removed
getFormat moved to love::audio::openal::Audio
getFormat arguments order swapped to (bitDepth, channels)
getFormat now returns AL_NONE if format is invalid
--HG--
branch : minor-mic-input
2016-10-23 17:56:52 +03:00
Alex Szpakowski
894a44f45c
Fix an incorrect delete call when out of memory.
2016-10-22 21:32:44 -03:00
Alex Szpakowski
a9593d926e
Fix love.math.noise(nil) to error instead of returning nil.
2016-10-20 22:57:12 -03:00
rcoaxil
3c413a293b
stray minus sign
...
--HG--
branch : minor
2016-10-19 05:13:30 +03:00
Alex Szpakowski
0653ec9564
Address some compiler warnings about implicit integer conversions.
...
--HG--
branch : minor
2016-10-18 22:32:35 -03:00
Alex Szpakowski
b8b670e0ae
Simplify Drawable code
...
--HG--
branch : minor
2016-10-18 22:06:52 -03:00
rcoaxil
9bed2ac33a
moved back update cycle constant looping override for static sources
...
--HG--
branch : minor
2016-10-18 05:33:34 +03:00
rcoaxil
b337e0ff6f
consistified seeking to invalid location behavior
...
removed few redundant operations and checks
moved sound start seeking from prepare to play
fixed potential bug with sources that failed to play not releasing AL source
back into the pool
sources now stop if seeked to invalid location
looped sources play from 0 if seeked to invalid location while playing
--HG--
branch : minor
2016-10-18 05:04:46 +03:00
Alex Szpakowski
a844c16657
Simplified Source constructors.
...
--HG--
branch : minor
2016-10-16 16:04:00 -03:00
rcoaxil
71326564f0
removed some more trailing spaces
...
oh god i need a tool for this
--HG--
branch : minor
2016-10-15 20:08:41 +03:00
rcoaxil
38a6176665
issues addressed
...
cropped trailing spaces
put TYPE_MAX_ENUM in getDurationAtomic
moved around variables in seekAtomic
--HG--
branch : minor
2016-10-15 20:04:08 +03:00
rcoaxil
c5e0846c52
fixed stream seeking bug
...
--HG--
branch : minor
2016-10-15 10:02:18 +03:00
rcoaxil
00c02adcd0
issues addressed
...
warnings fixed
added type checking to Lua functions
stopping queueable source clears buffered data
getting queueable source to auto-play if it underruns and then gets re-filled
will probably require re-designing pool usage strategy
--HG--
branch : minor
2016-10-13 18:18:08 +03:00
rcoaxil
b757a0534e
pull request feedback addressed
...
newQueueableSource added
isQueueable removed, getFreeBufferCount added
queueData renamed to queue; added 3 argument variant with (data, offset, length)
lightuserdata variant now requires offset (pointer, offset, length, samplerate, bitdepth, channels)
setLooping now throws exception if called on queueable source
--HG--
branch : minor
2016-10-13 04:40:41 +03:00
raidho36
b1c842f186
fixed bug preventing stream sources from loading data
...
--HG--
branch : minor
2016-10-12 20:49:05 +03:00
raidho36
10710d3428
queueData now returns success state, couple bug fixes
...
success state return added to queueData functions
queueable source is now seekable while stopped
fixed bug with creating queueable source with invalid format silently crashing LOVE
fixed bug with stopped queueable source reported as not queueable
--HG--
branch : minor
2016-10-12 18:53:49 +03:00
raidho36
7934bfaf7f
ported TYPE_QUEUE Source from default to minor
...
--HG--
branch : minor
2016-10-11 06:30:30 +03:00
Alex Szpakowski
42be56858b
Remove duplicate unused code.
2016-10-10 09:33:10 -03:00
Alex Szpakowski
03c38185f6
Fix love.window.maximize to immediately update the window dimensions instead of waiting for the next love.event.pump. Fixes issue #1221 .
2016-10-10 09:14:57 -03:00
Alex Szpakowski
e969f541ba
Fix love.window.setMode to use the proper defaults for window settings that aren't specified.
...
--HG--
branch : minor
2016-10-08 15:35:31 -03:00
Alex Szpakowski
15ba27f417
Merge default into minor
...
--HG--
branch : minor
2016-10-08 11:03:37 -03:00
Alex Szpakowski
b1b4a637b5
Fix a potential crash when a Thread ends (resolves issue #1219 ).
2016-10-08 10:50:50 -03:00
Alex Szpakowski
2bc036f4c9
Use love's sized int typedefs instead of C's.
...
--HG--
branch : minor
2016-10-06 23:01:44 -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
60d90ca4a8
Merge default into minor
...
--HG--
branch : minor
2016-10-30 01:07:39 -03:00
Alex Szpakowski
c6f8a1535d
Fixed loading and saving 16 bit per component PNGs.
...
--HG--
branch : minor
2016-10-28 00:13:36 -03:00
Alex Szpakowski
3de1aa863a
Fix encoding ImageData to 16 bit per color channel PNG.
...
--HG--
branch : minor
2016-10-27 22:23:24 -03:00
Alex Szpakowski
5dd915ee8a
whitespace and formatting cleanup
...
--HG--
branch : minor
2016-10-25 19:56:47 -03:00
Alex Szpakowski
8e1482dbd9
Merged in rcoaxil/love-patches/minor-manual-decoders (pull request #67 )
...
decoder manual decoding and seeking implemented
--HG--
branch : minor
2016-10-25 22:50:53 +00:00
Raidho
3b37cc9462
moved SoundData::load back to private
...
--HG--
branch : minor-manual-decoders
2016-10-25 00:58:44 +03:00
Alex Szpakowski
00d30b2a9d
Merge default into minor
...
--HG--
branch : minor
2016-10-24 18:20:28 -03:00
Alex Szpakowski
ddc4b06eba
Moved the base Decoder implementation out of the lullaby subfolder.
...
--HG--
branch : minor
2016-10-23 21:32:20 -03:00
Raidho
a605243709
made decode() always return new SoundData
...
--HG--
branch : minor-manual-decoders
2016-10-23 21:09:13 +03:00
Alex Szpakowski
0341fc1189
Reduce memory allocations for the SHA formats of love.math.hash.
...
--HG--
branch : minor
2016-10-22 21:31:48 -03:00
Alex Szpakowski
a9d935caa1
Fixed compilation
...
--HG--
branch : minor
2016-10-21 23:43:26 -03:00
Alex Szpakowski
2222bb37d2
Removed gl.bindTexture, so it won't get accidentally used.
...
--HG--
branch : minor
2016-10-21 23:42:09 -03:00
Alex Szpakowski
14f1afa446
Reduce redundant glActiveTexture calls.
...
--HG--
branch : minor
2016-10-21 22:19:16 -03:00
Alex Szpakowski
b9c01b8674
Merge default into minor
...
--HG--
branch : minor
2016-10-21 22:04:39 -03:00
Alex Szpakowski
d1c5edd792
Prevent redundant glBindBuffer calls.
...
--HG--
branch : minor
2016-10-20 21:50:48 -03:00