Alex Szpakowski
808e533b02
Tweaked streaming Sources to use fewer OpenAL buffers (and increased the amount of decoded data per buffer to compensate), and removed some unnecessary #include statements.
2014-09-28 14:58:59 -03:00
Alex Szpakowski
cf7342f8b7
Use C++11's in-line member initializers instead of default constructors with initializer lists, for some structs.
...
--HG--
branch : minor
2014-09-18 02:39:18 -03: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
626701fc2b
Merged default into minor
...
--HG--
branch : minor
2014-08-26 23:23:17 -03:00
Alex Szpakowski
d6cd2e2e7e
Prettied up some code.
2014-08-26 00:05:08 -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
9b1f7d7a6e
Merged default into minor
...
--HG--
branch : minor
2014-08-09 19:55:29 -03:00
Alex Szpakowski
da7cd267ea
Changed luax_pushtype to retain the pushed object itself, but only if the object isn't in the Lua state already.
...
Previously, calling e.g. love.graphics.getFont() 10,000 times would retain the object 10,000 times (and release it 10,000 times when the Font object was garbage-collected in the Lua state.) Now it will only retain it once and release it once.
2014-08-09 16:04:59 -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
aa05664d4c
Merged default into minor
...
--HG--
branch : minor
2014-07-30 01:32:10 -03:00
Alex Szpakowski
d52bab4221
Updated the new module changes to use more compile/link-time checking rather than runtime checking.
2014-07-21 15:12:01 -03:00
Alex Szpakowski
014b9a46e5
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
2014-07-21 14:52:01 -03:00
Alex Szpakowski
bfa3ec9369
Merged default into minor
...
--HG--
branch : minor
2014-06-05 03:02:50 -03:00
Alex Szpakowski
dfa319e01a
Replaced the EXCEPT_GUARD macro for converting love exceptions into Lua errors with the new luax_catchexcept function, which takes lambda function arguments.
2014-06-03 19:27:00 -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
53b20b63a5
Merged default into minor
...
--HG--
branch : minor
2014-05-21 21:16:37 -03:00
Alex Szpakowski
fd5b5aad65
Minor code cleanup
2014-05-21 21:14:08 -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
Alex Szpakowski
1bc8b7346d
Added internal thread name support, for use with debuggers.
2014-05-02 08:56:23 -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
5e7452034a
Backed out changeset: 6efefad30fe1
...
--HG--
branch : minor
2014-04-23 11:29:41 +10:00
Aesthete
ba21f79966
Aesthete: Bug #829 : Adding missing exception guards to audio source wrapper.
...
--HG--
branch : minor
2014-04-23 11:15:14 +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
55514720a6
Fixed some minor compiler warnings
2014-03-01 21:16:01 -04:00
Alex Szpakowski
de1f105e40
the AL_SOFT_direct_channels OpenAL extension shouldn't be required for compilation
2014-02-08 02:43:13 -04: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
9b593780b1
Removed spaces from love.audio enum strings (resolves issue #733 )
...
--HG--
branch : minor
2014-01-15 04:41:07 -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
Bart van Strien
5963e7a9cb
Check whether pitch is actually a sane number
2013-12-27 16:50:30 +01:00
Alex Szpakowski
4d1846b745
Removed love.audio.newSource(source) (see issue #319 )
2013-12-25 02:19:59 -04:00
Alex Szpakowski
e6f2d4f1ac
Added Source:clone() and love.audio.newSource(source): creates a new (stopped) Source which has all of the settable state of the original.
...
Static sources don’t duplicate their OpenAL data buffer when cloned (resolves issue #319 ). Cloned streaming sources also clone the original Decoder.
2013-12-20 00:20:41 -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
Bart van Strien
3d82eecc08
Apply the love-experiment moduleselect branch
...
You can now:
- Enable and disable love's modules, implementations and libraries using configure switches
- Use pkg-config for a couple of love's requirements
- Build on OSX
- Use newer versions of FreeType2
- Get a slightly better error message using automagic
2013-12-08 19:32:32 +01:00
Alex Szpakowski
fad9d25093
Removed Source:getType (resolves issue #776 )
2013-10-28 19:33:22 -03:00
Alex Szpakowski
b57256b3e5
Renamed Source:setRelativePosition and Source:hasRelativePosition to Source:setRelative and Source:isRelative. Updated changelog.
2013-10-25 17:05:29 -03:00
Alex Szpakowski
3e9fcacf07
Code style fixes
2013-10-20 04:02:09 -03:00
Alex Szpakowski
cf6acfa258
Added Source:getChannels. Positional/directional audio only works with 1-channel (mono) sources.
2013-10-15 23:09:35 -04:00
Alex Szpakowski
13ea750454
Added Source:setCone(innerAngle, outerAngle, outerVolume). Resolves issue #643 .
...
When combined with Source:setDirection (and Source:setPosition or love.audio.setPosition), the cone parameters allow for directional sound output from a Source.
2013-10-11 05:30:11 -03:00
Alex Szpakowski
7f3cd7f044
Added Source:setRelativePosition and Source:hasRelativePosition, if enabled the Source's position will always be relative to the listener instead of absolute.
2013-10-11 02:25:48 -03:00
Alex Szpakowski
2710c6c488
Renamed Source:s/getDistance to Source:s/getAttenuationDistances (resolves issue #632 ).
...
Fixed detection for mipmap sharpness support.
2013-10-10 23:05:45 -03:00