Sasha Szpakowski
1e2696b403
improve errors when openal fails to initialize
2024-04-25 18:23:58 -03:00
Bart van Strien
daff7ef11f
Adjust OpenAL include paths to proper include paths
...
We add the subdirectory AL to the include paths, so our includes should be relative to that. Presumably it would previously work with the wrong paths because some other library would be there.
2024-03-10 14:41:28 +01:00
Sasha Szpakowski
1e97e09b28
Rework internal module registration to happen in constructors.
2024-02-24 15:21:38 -04:00
Sasha Szpakowski
64a30f177f
Merge branch 'main' into 12.0-development
2024-02-10 12:24:48 -04:00
Sasha Szpakowski
94d5864144
update year for copyright notice
2024-02-10 12:13:22 -04:00
Sasha Szpakowski
6e80d85110
Merge branch 'main' into 12.0-development
2023-08-19 21:35:55 -03:00
Sasha Szpakowski
7706ac7ba9
iOS: don't try to open audio recording devices for capture.
...
It hard-crashes inside the alcCaptureOpenDevice call with Apple's OpenAL implementation.
See #1912 .
2023-07-22 18:04:12 -03:00
Sasha Szpakowski
f6cdbdc868
Merge branch 'main' into 12.0-development
2022-12-31 22:46:34 -04:00
Sasha Szpakowski
0b75f6cfa5
Missed some files...
2022-12-31 22:36:48 -04:00
Sasha Szpakowski
c823dbca96
Update copyright year for 2023
2022-12-31 22:25:49 -04:00
Sasha Szpakowski
9aedfb3dd6
Merge branch 'main' into 12.0-development
2022-12-04 19:52:25 -04:00
Sasha Szpakowski
a51d45b1a3
Reduce source:tell drift after a streaming Source loops.
...
Fixes #1810
2022-12-04 19:36:38 -04:00
slime
879d320813
Merge branch 'main' into 12.0-development
2022-10-10 14:35:52 -03:00
Miku AuahDark
822d363dfa
Remove test #undef from previous commit.
2022-08-26 11:48:46 +08:00
Miku AuahDark
3c2b1b888e
Properly pause all audio processing in Android when minimized.
...
This uses ALC_SOFT_pause_device extension which is available since
OpenAL-soft 1.16. We guarantee almost 100% availability of this extension
since we've been using OpenAL-soft in Android since beginning.
Fixes #1828
2022-08-26 11:45:25 +08:00
Alex Szpakowski
69c4a496dd
Fix a few minor compiler warnings
2022-06-18 17:59:55 -03: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
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