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
Raidho
332ba76e62
Implement audio filters
...
Use Source:setFilter(type, params...) to set a filter.
Use Source:setFilter() to detach the current filter.
Use Source:getFilter() to get the currently set filter (or nil).
Squashed from pull request 27, and the clean-pr27 branch in love-experiments.
--HG--
branch : minor
2016-12-03 20:54:48 +01:00
Bart van Strien
67d3146229
Fix love.audio.play{sources...} so it can resume paused sources
...
--HG--
branch : minor
2016-12-02 13:57:20 +01:00
Bart van Strien
24a7a3d367
Merge minor into dynamiccore2
...
--HG--
branch : dynamiccore2
2016-11-26 22:19:12 +01:00
Alex Szpakowski
5bf25007da
Fix building for iOS
...
--HG--
branch : minor
2016-11-25 23:21:08 -04:00
Alex Szpakowski
639c229bd7
Rename RecordingDevice:startRecording and RecordingDevice:stopRecording to RecordingDevice:start and RecordingDevice:stop.
...
--HG--
branch : minor
2016-11-20 10:08:07 -04:00
Alex Szpakowski
a245819ae1
Fix compilation on macOS and iOS. Minor cleanup.
...
--HG--
branch : minor
2016-11-20 10:04:08 -04:00
Alex Szpakowski
99a3653d10
Merged in rcoaxil/love-patches/minor-mic-input (pull request #68 )
...
Microphone input implemented.
--HG--
branch : minor
2016-11-20 13:51:49 +00:00
Alex Szpakowski
aeca14a35a
Merged in rcoaxil/love/minor (pull request #66 )
...
consistified seeking to invalid location behavior, minor fixes
--HG--
branch : minor
2016-11-17 22:06:06 +00:00
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
Raidho
422325588e
fixed potential memory leak, minor code imporovements
...
--HG--
branch : minor-mic-input
2016-11-04 05:40:07 +03:00
Raidho
c7c253f449
made getRecordingDevices keep already existing devices
...
--HG--
branch : minor-mic-input
2016-11-03 20:24:21 +03:00
Raidho
57d02dec2b
Addressed some criticism
...
getRecordingDevices internal function is now returns constant reference,
also re-enumerates devices every time it is called; this is a slow operation
getID removed for not being useful
--HG--
branch : minor-mic-input
2016-11-03 06:31:31 +03:00
Raidho
a99c757652
made :getData produce SoundData directly
...
moved SoundData::load back to private
--HG--
branch : minor-mic-input
2016-10-25 02:39:39 +03:00
Raidho
3de68707d1
made device enumeration lazy
...
made enumerator to first attempt aquire default device name by standard means,
then to fall back to read name from opened device
getRecordingDeviceCount removed for being redundant
--HG--
branch : minor-mic-input
2016-10-25 02:05:53 +03:00
Raidho
424d2704ec
made RecordingDevice throw errors on invalid parameters
...
--HG--
branch : minor-mic-input
2016-10-23 19:22:56 +03:00
Raidho
9a090e8df8
made RecordingDevice create new SoundData every time captured samples are aquired
...
--HG--
branch : minor-mic-input
2016-10-23 18:53:02 +03:00
Raidho
87f0b2811e
Microphone input implemented.
...
RecordingDevice class added
(number)love.audio.getRecordingDeviceCount() and (table)love.audio.getRecordingDevices() exposed
(bool):startRecording([samples, sampleRate, bitDepth, channels], (SoundData):stopRecording([SoundData]),
(SoundData):getData([SoundData]), (number):getSampleCount(), (number):getSampleRate(), (number):getBitDepth(),
(number):getChannels(), (string):getName(), (number):getID(), (bool):isRecording() member functions exposed
previously existed stub implementation removed
getFormat moved to love::audio::openal::Audio
getFormat arguments order swapped to (bitDepth, channels)
getFormat now returns AL_NONE if format is invalid
--HG--
branch : minor-mic-input
2016-10-23 17:56:52 +03:00
rcoaxil
3c413a293b
stray minus sign
...
--HG--
branch : minor
2016-10-19 05:13:30 +03:00
Alex Szpakowski
0653ec9564
Address some compiler warnings about implicit integer conversions.
...
--HG--
branch : minor
2016-10-18 22:32:35 -03:00
rcoaxil
9bed2ac33a
moved back update cycle constant looping override for static sources
...
--HG--
branch : minor
2016-10-18 05:33:34 +03:00
rcoaxil
b337e0ff6f
consistified seeking to invalid location behavior
...
removed few redundant operations and checks
moved sound start seeking from prepare to play
fixed potential bug with sources that failed to play not releasing AL source
back into the pool
sources now stop if seeked to invalid location
looped sources play from 0 if seeked to invalid location while playing
--HG--
branch : minor
2016-10-18 05:04:46 +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