Bart van Strien
c761202486
Build type information on first use (load-time), instead of using a hardcoded list
...
--HG--
branch : dynamiccore2
2016-11-13 16:38:57 +01: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
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
Bart van Strien
55aa09bb42
Allow seeking all paused sources ( fixes #1152 )
...
Previously, sources that had never been started, were paused with 'stop', or had finished playing, aka the 0.10.x definition of stopped, would ignore seek.
--HG--
branch : minor
2016-04-08 14:28:22 +02:00
Alex Szpakowski
094f9a13fe
Merge default into minor
...
--HG--
branch : minor
2016-04-03 10:59:47 -03:00
Alex Szpakowski
03801e49d6
Fix a potential issue when an OpenAL source that was previously static is reused for a streaming Source.
2016-04-03 09:58:17 -03:00
Bart van Strien
f76879c6b7
New audio playback API
...
Instead of having three states, stopped, paused and playing, now there's only
two states: paused and playing.
This means resume() is gone, as is isStopped(), and isPaused() has become
isPlaying(). stop() now pauses and rewinds, whereas pause() only pauses.
rewind() has been removed, and should either be replaced with stop() or
seek(0).
The same has been applied to the functions in the love.audio module, except they
get some extra magic:
- love.audio.pause() now returns a table/list of Source objects, which contains
only the sources it has just paused. This means you can then later restart
only them, instead of everything (as before).
- love.audio.play/pause/stop now have variants that take a list of Source
objects, and it starts or stops them all at the same time, this means calling
play(srcA, srcB) should mean srcA and srcB are much more (but possibly not
exactly) synchronised than they were with play(srcA); play(srcB).
--HG--
branch : minor
2016-04-02 17:38:19 +02:00
Alex Szpakowski
f51bbb8462
Cleaned up some StrongRef-related code.
2016-03-01 18:57:17 -04:00
Alex Szpakowski
7ff411bb00
Merged in TannerRogalsky/love/source_relative_bug_fix (pull request #54 )
...
Source:setRelative bug fix
2016-02-13 12:24:33 -04:00
Tanner Rogalsky
6336f2adac
Use passed value when setting a Source's relative state instead of the stale, cached value.
...
--HG--
branch : source_relative_bug_fix
2016-02-13 10:58:03 -05:00
Alex Szpakowski
46a2e7b85c
Happy new year! 🎉
2016-01-01 00:05:06 -04:00
Alex Szpakowski
0558fcdbd4
Added Source:getDuration (thanks Boolsheet!)
...
For streaming sources, the duration may not always be sample-accurate and may return -1 if it cannot be determined at all.
2015-11-07 01:49:37 -04:00
Alex Szpakowski
74ad3b8be6
Don't try to put zero-length data into OpenAL buffers (see issue #1083.)
2015-09-27 20:58:08 -03:00
Alex Szpakowski
52c4f2c119
Improved the performance of love.window.getPixelScale / toPixels / fromPixels by caching some values. Made some coordinate space-sensitive code use the proper conversions to get to the correct coordinate space.
...
--HG--
branch : minor
2015-02-23 17:55:30 -04:00
Alex Szpakowski
ebc68023a7
Fix many warnings about implicit integer conversions when compiling for 64 bits.
...
--HG--
branch : minor
2015-02-20 01:20:08 -04:00
Alex Szpakowski
1f726b2fa1
Code style cleanup.
...
--HG--
branch : minor
2015-02-16 00:17:48 -04:00
Alex Szpakowski
813457aa71
Pre-emptive fix for an attenuation distance issue in iOS' OpenAL implementation.
...
--HG--
branch : minor
2015-02-16 00:10:11 -04:00
Alex Szpakowski
60c6b6a155
Cleaned up the code that triggers an error when using spatial Source methods on multi-channel Sources.
...
--HG--
branch : minor
2015-01-19 23:55:44 -04:00
Alex Szpakowski
a7e4148869
Merged default into minor
...
--HG--
branch : minor
2015-01-16 15:47:26 -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
Bart van Strien
181196fc0c
Add support for 5.1 and 7.1 audio loading, still seems a bit dodgy (issue #970 )
2015-01-15 10:54:27 +01:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
fffbd3ecab
Merged default into minor
...
--HG--
branch : minor
2014-09-18 02:15:20 -03:00
Alex Szpakowski
346aa7d839
Fixed a memory leak in Sources created from SoundData.
2014-09-04 13:33:18 -03:00
Alex Szpakowski
2a1e1d01d3
Merged default into minor
...
--HG--
branch : minor
2014-08-25 18:02:44 -03:00
Alex Szpakowski
d5e5f38e2f
Fixed Source:tell crashing if the Source is static.
2014-08-25 03:46:11 -03:00
Alex Szpakowski
53e63d48c9
Merged default into minor
...
--HG--
branch : minor
2014-08-07 18:10:19 -03:00
Alex Szpakowski
d59c76a55f
Reduced the number of explicit retain/release method calls on love objects. Less chance of bugs!
2014-08-07 14:53:17 -03:00
Alex Szpakowski
bfa3ec9369
Merged default into minor
...
--HG--
branch : minor
2014-06-05 03:02:50 -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
38b65b859a
Merged default into minor
...
--HG--
branch : minor
2014-05-03 22:27:01 -03:00
Alex Szpakowski
d7f1262e20
Query the Decoder instead of the current OpenAL buffer when getting the sample rate for calculations in streaming audio Sources.
...
Some OpenAL implementations return 0 for alGetSourcei(source, AL_BUFFER) if the source isn't static, which eventually results in returning 0 when querying the buffer's sample rate.
2014-05-02 11:31:12 -03:00
Aesthete
70fabedc09
Aesthete: Bug #829 : Added exceptions for all spatial audio calls on stereo
...
sources. I had to backout the last couple of changes because the diff tool
thought I had changed the entire file, and made it impossible to see what
I had actually changed.
--HG--
branch : minor
2014-04-23 11:39:36 +10:00
Aesthete
30c211f7e3
Backed out changeset: a0191140525e
...
--HG--
branch : minor
2014-04-23 11:29:55 +10:00
Aesthete
a2473f860d
Aesthete: Bug #829 : Refactored all spatial stereo exception messages to static
...
variable.
--HG--
branch : minor
2014-04-23 10:19:26 +10:00
Alex Szpakowski
6dc10cfd15
Merged default into minor
...
--HG--
branch : minor
2014-04-01 20:46:31 -03:00
Alex Szpakowski
4faddcd9aa
Fixed some trivial compiler warnings
2014-03-12 17:55:19 -03:00
Alex Szpakowski
60cd1456ea
Merged default into minor
...
--HG--
branch : minor
2014-03-12 02:21:27 -03:00
Alex Szpakowski
33f12a6091
Source:play now returns false if alSourcePlay failed
2014-01-29 17:04:03 -04: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
b1edf5e7bf
Added Source:getType, removed Source:isStatic (resolves issue #776 )
...
--HG--
branch : minor
2014-01-15 04:02:24 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00