Commit Graph

225 Commits

Author SHA1 Message Date
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 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 8e7fd10b6f Update copyright year for 2022 2021-12-31 18:33:40 -04:00
Alex Szpakowski f89aabb0bb Update copyright year for 2021 2021-04-04 16:14:45 -03:00
cigumo 74edaf8fba adds iOS audio interruption handling and recovery 2020-12-08 23:13:52 -03:00
Alex Szpakowski fc4847c69d Update copyright for the new year 2020-01-03 22:40:36 -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 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
Alex Szpakowski 0752f27bdf Update copyright year for 2019 2019-01-03 21:09:05 -04: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
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
Alex Szpakowski 02aa7937a1 Rename love.audio.setMixMode to setMixWithSystem. Fix some copyright notice typos.
--HG--
branch : minor
2017-07-29 23:22:54 -03:00
Alex Szpakowski 5848b8c8b6 Set non-zero default sampling parameters for RecordingDevices.
This allows RecordingDevice:start() with no arguments to work if it's being started for the first time.

--HG--
branch : minor
2017-07-29 22:53:20 -03:00
Alex Szpakowski 2c80cce00b Fix RecordingDevice:start().
--HG--
branch : minor
2017-07-29 11:52:01 -03:00
Alex Szpakowski 5fc2190ce4 Rename love.audio.getEffectsList and Source:getEffectsList to getActiveEffects. They now return an empty table instead of nil when there are no active effects, as well.
--HG--
branch : minor
2017-07-28 19:28:50 -03:00
Alex Szpakowski b19a8ab67e RecordingDevice:start has default arguments (resolves issue #1296).
--HG--
branch : minor
2017-07-28 18:53:54 -03:00
Bart van Strien 6f7fe0611b Fix broken audio when attempting to stop or pause multiple sources, when not all of them were playing
--HG--
branch : minor
2017-07-27 17:41:27 +02:00
Alex Szpakowski 2b876d33ff Attempt to fix VS2013 compilation error; fix a couple logic errors in the audio Source implementation.
--HG--
branch : minor
2017-07-09 21:45:43 -03:00
Alex Szpakowski 942149f980 Merged in rcoaxil/love-audio/minor (pull request #91)
Effects re-made to operate on literal names instead of numerical indices.

--HG--
branch : minor
2017-07-10 00:32:41 +00:00
raidho36 16180a7e9b That should be all.
--HG--
branch : minor
2017-07-10 03:30:16 +03:00
raidho36 8737e2e70f C++11 VLA usage removed, prettifyed naming.
--HG--
branch : minor
2017-07-10 03:14:41 +03:00
Bart van Strien a4a62f390a Disable signal handling in threads (see issue #1042)
I don't necessarily like having to do these extra calls whenever threads are
spawned (and what happens to signals during the time signal delivery is
disabled?) but it seems to fully fix os.execute.

NOTE: Also disables signals when loading openal, as it or one of its backends
spawns threads internally, and does not disable signals itself.

--HG--
branch : minor
2017-07-02 15:27:58 +02:00
raidho36 157d94fae3 Effects re-made to operate on literal names instead of numerical indices.
Added buffer count parameter to queueable source constructor.
Added getEffectsList function.
Internal cleanup.

--HG--
branch : minor
2017-06-22 15:07:31 +03:00
Alex Szpakowski a854602344 Fix a crash when a Source stops playing.
--HG--
branch : minor
2017-04-02 13:32:25 -03:00
Alex Szpakowski 1a9262dda9 Fix compilation on iOS. Fix shader compilation on OpenGL ES. Fix (harmless) GL errors on OpenGL ES 2. Resolves issue #1266.
--HG--
branch : minor
2017-03-09 20:46:26 -04:00
Bart van Strien 03b863d788 Simplify love.audio's Pool class
Move most logic back to Source. Pool now simply contains a list of playing
sources and a mutex. Also gets rid of the pause/pauseAtomic duplication in
Source, since it can now request a lock from Pool itself.

--HG--
branch : minor
2017-02-11 21:41:22 +01:00
Alex Szpakowski 7b6e1523b4 Very minor style cleanup
--HG--
branch : minor
2017-02-11 15:47:30 -04:00
Alex Szpakowski 218950fe76 Potentially fix compilation for MSVC
--HG--
branch : minor
2017-02-11 15:18:04 -04:00
Bart van Strien 42b8249b60 Remove extra whitespace
--HG--
branch : minor
2017-02-11 20:12:44 +01:00
Bart van Strien cbaf9e047b Merged in rcoaxil/love-patches/minor (pull request #75)
EFX implemented

Approved-by: Bart van Strien
Approved-by: Alex Szpakowski

--HG--
branch : minor
2017-02-11 19:04:53 +00:00
Raidho 94b4d2bdef naming updated, Filters patched up
--HG--
branch : minor
2017-02-07 03:15:05 +03:00
Raidho 42f89153ae Named Effect parameters added. Unsupported effects disabled.
Unnamed parameter Effect setting is no longer functional.

--HG--
branch : minor
2017-01-06 08:41:27 +03:00
Alex Szpakowski abb72cb813 Happy new year! 🥂
--HG--
branch : minor
2017-01-02 01:28:29 -04:00
Alex Szpakowski 5fc076a8fb Fix compilation on iOS
--HG--
branch : minor
2016-12-28 02:36:31 -04:00
Raidho 9fd53ad46f Edited out a few duds.
--HG--
branch : minor
2016-12-09 16:32:36 +03:00
Raidho e60f3c6cda EFX implemented
--HG--
branch : minor
2016-12-08 19:27:47 +03:00
Alex Szpakowski 8e2d9c5138 Minor code style cleanup. Fix a couple compiler warnings.
--HG--
branch : minor
2016-12-03 17:23:46 -04:00