David Reid
349abe5ac8
DirectSound: Add some verbose debug output.
...
This commit also experiments with a fix for glitching in full-duplex
mode.
2019-03-03 08:37:43 +10:00
David Reid
be780d2558
Work in progress on refactoring the DirectSound backend.
...
Playback-only and capture-only modes are broken with this commit for
DirectSound.
2019-03-02 21:13:37 +10:00
David Reid
b0a1c92599
WASAPI: Experiment with some improvements to full-duplex.
2019-03-02 11:09:38 +10:00
David Reid
595dd1fb9e
Merge pull request #49 from kayabe/dev_0.9
...
Fix vorbis playback
2019-03-02 06:50:34 +10:00
Kayabe
17f0adcce4
Fix vorbis playback
2019-03-01 18:13:27 +02:00
David Reid
5aa63802ae
Update test_0.
2019-03-01 17:51:32 +10:00
David Reid
fe8f67d3da
DirectSound: Capture bug fix.
...
This fixes a bug where the wrong position is being retrieved for the
capture device.
2019-03-01 17:51:21 +10:00
David Reid
01a7d375f1
Try fixing a warning on MinGW.
2019-02-27 20:09:39 +10:00
David Reid
ce0850848d
WASAPI: Fix some errors with automatic stream routing.
2019-02-27 19:15:39 +10:00
David Reid
957de48d80
Another potential fix for some full-duplex glitching.
...
This change makes it so reading and writing is done on the smaller of
the period sizes between capture and playback devices.
2019-02-27 18:18:01 +10:00
David Reid
997d8a8d9d
WASAPI/ALSA: Fix automatic playback starting in full-duplex mode.
...
The new rule is to start playback when the entire buffer is filled
rather than when the first period is filled in duplex mode. Normal
playback mode will still start the device when the first period is
filled.
2019-02-26 20:41:42 +10:00
David Reid
1b957471d5
WASAPI: Fix errors with exclusive mode.
2019-02-26 19:54:07 +10:00
David Reid
f35b705fd8
WASAPI: Add a missing "if" statement.
2019-02-26 19:37:00 +10:00
David Reid
c7a17d65d5
Tweaks to the WASAPI backend.
...
This commit attempts to address a crackling issue in full-duplex mode.
* When the capture buffer becomes over-filled it will discard some
frames to prevent it from straddling the capacity of the internal
buffer and causing excessive overruns.
* A fix has been implemented to the function that retrieves the number
of available frames in the device's internal buffer.
* Low-latency shared mode (IAudioClient3) forces small buffer sizes so
a change has been implemented which bypasses low-latency shared mode
when a large buffer is specified.
2019-02-26 19:33:38 +10:00
David Reid
cf59525ef3
Experimental fix for full-duplex on WASAPI.
2019-02-25 18:25:19 +10:00
David Reid
008cb41617
API CHANGE: Reorder parameters for some APIs.
...
The APIs that have changed are those that take an output pointer and an
input count in the format of "some_read_function(handle, pBuf, count)".
The updated APIs include:
* mal_decoder_read_pcm_frames()
* mal_pcm_converter_read()
Some APIs are scheduled to be replaced in a future version so I have
decided not to replace this at this time since it will be a waste of
time to do so.
2019-02-25 18:15:00 +10:00
David Reid
9ed608a452
Update simple playback example.
2019-02-24 21:01:53 +10:00
David Reid
08e21aae05
Add LICENSE file.
2019-02-24 20:40:34 +10:00
David Reid
8f67ba93cf
Simplify Win32 #include's.
2019-02-24 20:31:29 +10:00
David Reid
5b5d51cf68
Update project files.
2019-02-24 20:12:28 +10:00
David Reid
125383e9ea
Fix some warnings.
2019-02-24 20:07:09 +10:00
David Reid
01f04b249e
More full-duplex bug fixes.
2019-02-24 20:03:50 +10:00
David Reid
26a218c1af
Fix some full-duplex errors.
2019-02-24 19:04:49 +10:00
David Reid
433b7e8ed6
Fix a bug in the ring buffer.
2019-02-24 17:47:08 +10:00
David Reid
bd689c560e
Fix Core Audio build.
2019-02-24 17:39:07 +10:00
David Reid
0cc126245e
Work on full-duplex with Core Audio.
2019-02-24 16:43:37 +10:00
David Reid
a9ac84dde2
Work on full-duplex for JACK.
2019-02-24 16:11:27 +10:00
David Reid
1e1e8c0ba1
More full-duplex work on OpenSL and AAudio.
2019-02-24 15:53:20 +10:00
David Reid
66412f8937
Add some notes for the new resampler.
2019-02-24 13:28:04 +10:00
David Reid
5b4b7fa266
More work on full-duplex with WebAudio.
2019-02-24 13:26:18 +10:00
David Reid
51ebb048be
Work in progress for full-duplex for WebAudio.
2019-02-23 15:09:39 +10:00
David Reid
212cee5982
Integrate the ring buffer into mini_al.h
2019-02-21 18:06:32 +10:00
David Reid
198b844d8b
Add mal_pcm_rb to the ring buffer research code.
...
This is the same as the normal ring buffer except everything is done in
terms of PCM frames instead of bytes. This is useful to simplify the
case of using the ring buffer for storing PCM audio data.
2019-02-21 17:55:35 +10:00
David Reid
c78aadff9c
Fix device initialization with audio(4) on OpenBSD.
2019-02-20 20:01:16 +10:00
David Reid
d1f26b4d3b
Fix bugs with sndio.
2019-02-19 20:40:22 +10:00
David Reid
7fba7e5c13
Fix OpenBSD build.
2019-02-19 20:08:23 +10:00
David Reid
9f8a4b9a8a
Bug fixes for audio(4).
2018-08-25 05:12:25 +00:00
David Reid
5f85f42b92
Fix NetBSD build.
2018-08-25 05:06:50 +00:00
David Reid
581b90d2d3
Fix OSS build.
2019-02-19 08:15:18 +10:00
David Reid
79e833135c
Work in progress on full-duplex for sndio.
2019-02-17 15:22:33 +10:00
David Reid
a311b9068d
Work in progress on full-duplex for audio(4).
2019-02-17 13:59:22 +10:00
David Reid
9f294cf81e
Work in progress on full-duplex support for OSS.
2019-02-16 15:41:22 +10:00
David Reid
31329a65eb
Work on full-duplex support for OpenSL.
2019-02-16 08:47:31 +10:00
David Reid
fc9cee7697
Work in progress on full-duplex for AAudio.
2019-02-14 18:32:18 +10:00
David Reid
79c46d2771
Work on full-duplex for ALSA.
2019-02-14 17:51:20 +10:00
David Reid
d0dfd37c6d
Work on full-duplex for PulseAudio.
2019-02-10 19:33:48 +10:00
David Reid
d2ca42edd7
Work on removing unnecessary attributes from mal_device.
2019-02-10 08:55:41 +10:00
David Reid
574c1adccd
Get full-duplex working with DirectSound.
2019-02-10 06:38:33 +10:00
David Reid
f37df9a814
Remove some unused properties from device and config structures.
2019-02-09 20:33:01 +10:00
David Reid
32c64703dd
Initial working implementation of full-duplex on WASAPI.
2019-02-09 17:39:49 +10:00