Alex Szpakowski
69c4a496dd
Fix a few minor compiler warnings
2022-06-18 17:59:55 -03:00
Miku AuahDark
9e1e35ff39
Fixed love.audio.newSource(SoundData) variant.
2022-05-28 19:17:50 +08:00
Miku AuahDark
7af537a417
Rename *OutputDevice(s) to *PlaybackDevice(s)
2022-05-07 11:04:28 +08:00
Miku AuahDark
b2a6abdc0a
Pass all stopped sources on love.audiodisconnected callback.
...
The behavior of sources re-played during these times is inconsistent.
Streaming sources will desync while static sources stop completely.
2022-05-07 10:50:10 +08:00
Miku AuahDark
2cc93af436
Add love.audiodisconnected callback.
...
The callback is fired when the audio has been disconnected.
2022-05-03 22:36:13 +08:00
Miku AuahDark
5e0f0dc02e
Add love.audio.setOutputDevice
2022-05-03 20:16:26 +08:00
Miku AuahDark
65b898903c
Add love.audio.getOutputDevice(s).
2022-05-03 19:29:24 +08:00
Alex Szpakowski
c09fef8e79
Audio source decoding improvements.
...
- Streaming sources now also stream the file contents instead of loading it into memory, by default. Added a new stream type enum parameter to newSource ("file" or "memory").
- Audio file decoding now chooses the most appropriate decoder based on the file contents instead of the file extension.
- Videos now stream audio from the file instead of loading all of the video file into memory for use with audio decoding.
2022-04-21 19:57:32 -03:00
Alex Szpakowski
0b6722ea0e
Merge branch 'main' into 12.0-development
2022-04-15 23:47:28 -03:00
Alex Szpakowski
b3b1317f61
linux: fix issues if certain codepaths are hit while signal handlers are temporarily off.
2022-04-15 23:43:30 -03:00
Alex Szpakowski
7f3538d2ba
Merge branch 'main' into 12.0-development
2022-01-05 21:10:27 -04:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Alex Szpakowski
9b4aea8f17
Missed some copyright date updates
2021-04-07 20:34:24 -03:00
Alex Szpakowski
21f5ba86d3
Merge branch 'master' into 12.0-development
2021-04-07 20:33:44 -03:00
Alex Szpakowski
f89aabb0bb
Update copyright year for 2021
2021-04-04 16:14:45 -03:00
Alex Szpakowski
b7400892a4
Merge branch 'master' into 12.0-development
2020-12-22 19:35:06 -04:00
cigumo
74edaf8fba
adds iOS audio interruption handling and recovery
2020-12-08 23:13:52 -03:00
Alex Szpakowski
5f9b5a21d0
Merge default into minor
...
--HG--
branch : minor
2020-01-03 22:45:36 -04:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -04:00
Alex Szpakowski
23db4f4a59
Remove functions that were deprecated in LÖVE 11.
...
--HG--
branch : minor
2019-12-20 00:45:20 -04:00
Miku AuahDark
c8a2978697
Make sure to empty the capture and return that instead.
...
--HG--
branch : androidmic
2019-09-29 15:54:45 +08:00
Miku AuahDark
dda24bb98a
Fix typo
...
--HG--
branch : androidmic
2019-09-29 15:54:27 +08:00
Miku AuahDark
0f23b0e4a0
Initial working on mic recording support for Android.
...
--HG--
branch : androidmic
2019-09-29 11:47:13 +08:00
Alex Szpakowski
38cb56f168
Use doubles instead of floats for the time argument in Source:seek. This probably won't affect anything meaningfully, but in theory it's more precise.
2019-05-26 14:46:52 -03:00
Alex Szpakowski
3c77edb68b
Fix modplug-decoded streaming Sources when looping repeatedly, and when stop() is called on them. Resolves issue #1493 .
2019-05-26 13:55:29 -03:00
Alex Szpakowski
33186430af
Simplify Source playback offset tracking to only store the integer sample offset, and convert to seconds when requested.
2019-05-16 19:17:19 -03:00
Alex Szpakowski
8b51dc831d
Work around occasional pops in streaming sources on iOS, by making the streaming source update code more like what was there in 0.10.x.
2019-04-24 20:13:07 -03:00
Alex Szpakowski
8f0686c204
Code style cleanup.
2019-04-24 00:11:18 -03:00
Alex Szpakowski
9d4cb2a949
iOS: Fix Source:play+stop+play and Source:play+seek, for streaming sources. Resolves issue #1484 .
2019-04-24 00:10:22 -03:00
Alex Szpakowski
14abf2c9e8
Move source seeking from Source::playAtomic to prepareAtomic. Fixes love.audio.play(sources) for sources which had seek() called before the play call.
2019-04-23 21:30:32 -03:00
Alex Szpakowski
276bdd1dbf
iOS: fix audio clicks immediately after playing a source. Resolves issue #1485 .
2019-04-23 21:18:56 -03:00
Bart van Strien
00e7d640c7
Also test source pitch is positive and clarify error ( resolves #1474 )
...
According to the OpenAL 1.1 specification AL_PITCH, values must be in the range (0.0f, any]. Though I guess any does not include infinity.
2019-03-09 15:24:02 +01:00
Alex Szpakowski
0752f27bdf
Update copyright year for 2019
2019-01-03 21:09:05 -04:00
Alex Szpakowski
324a290040
The code related to t.audio.mixwithsystem=true is run before the audio module is loaded. Fixes issue #1430 .
2018-12-26 11:36:23 -04:00
Bart van Strien
b2ed16cd7b
Error when trying to create a queueable source with newSource (issue #1450 )
2018-12-19 11:04:36 +01:00
Alex Szpakowski
9cdb4300de
Merged in PabloMayobre/love/PabloMayobre/fix-seteffecteffect-true-and-geteffectef-1540253791471 (pull request #114 )
...
Fix Source:setEffect and Source:getEffect.
2018-12-12 18:20:42 +00:00
Pablo Mayobre
1670edf4ba
Fix Source:setEffect working incorrectly when a fourth or more arguments are passed
...
--HG--
branch : PabloMayobre/fix-seteffecteffect-true-and-geteffectef-1540253791471
2018-11-30 04:01:52 +00:00
Pablo Mayobre
b53f3de4a7
Add Source:setAirAbsorption() and Source:getAirAbsorption()
2018-10-23 03:22:33 +00:00
Pablo Mayobre
e840631388
Fix :setEffect("effect", true) and :getEffect("effect") when no filter is associated to the effect.
...
Fixes #1449
--HG--
branch : PabloMayobre/fix-seteffecteffect-true-and-geteffectef-1540253791471
2018-10-23 00:17:19 +00:00
Alex Szpakowski
613de97b58
Fix Source:queue to show the correct argument in the error message when an invalid data parameter is passed in.
2018-04-02 16:34:48 -03:00
Alex Szpakowski
3949fde802
Fix querying the default audio recording device, some Source code style cleanups.
2018-03-11 18:47:44 -03:00
Bart van Strien
e80247c191
Happy new year! ✨
2018-01-03 19:47:35 +01:00
Alex Szpakowski
55822489cf
Fix resuming streaming sources. Resolves issue #1362 .
2017-12-30 16:41:54 -04:00
Alex Szpakowski
1f52abf619
Fix love.audio.play(staticsources) when the sources have been paused. Resolves issue #1363 .
2017-12-27 12:27:12 -04:00
Bart van Strien
9e4374935d
Show (short) list of possible enum values when an invalid value is encountered ( resolves #1318 )
...
All enum errors have (hopefully) been changed to a luax_enumerror, which has a
fixed error message. If additionally a list of valid options is passed, it
lists that in the error message. For every enum error with few options I've
implemented this using a getConstants call.
This solution has been designed specifically to reduce the number of template
instantiations (as I've been told that was a concern). All new template code
happens in places where there already was an instantiation of the relevant
StringMap. Of course there is still std::vector<std::string>...
--HG--
branch : minor
2017-10-02 17:11:53 +02:00
Bart van Strien
3278ea5580
Fix compilation with lua 5.2 and 5.3
...
Mostly to have the lua53 "library" work with both lua 5.1 and lua 5.3.
Additionally fixes two other incompatibilities.
--HG--
branch : minor
2017-09-25 10:27:12 +02:00
Alex Szpakowski
4ee85e1793
love get* APIs which return tables with fields can optionally accept a table argument to fill in, instead of creating a new table.
...
--HG--
branch : minor
2017-09-22 19:47:55 -03:00
Alex Szpakowski
fcd9f1526c
Use different output messages for deprecated methods versus functions.
...
--HG--
branch : minor
2017-08-27 16:55:33 -03:00
Alex Szpakowski
3128a127cf
Rename love.audio.getSourceCount to getActiveSourceCount and deprecate the old function (resolves issue #1302 ).
...
--HG--
branch : minor
2017-08-27 16:23:55 -03: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