Commit Graph

1723 Commits

Author SHA1 Message Date
David Reid 811e438d1b Add support for reinitialization of low-pass and biquad filters. 2020-01-20 19:01:42 +10:00
David Reid 5d0f21448e Remove MA_RESAMPLER_MIN_RATIO and MA_RESAMPLER_MAX_RATIO. 2020-01-19 21:29:43 +10:00
David Reid ad9d1e636b Remove old experimental resampler code. 2020-01-19 21:26:02 +10:00
David Reid a9e7d6d8c9 Add some documentation for the new resampler.
This commit also renames ma_resampler_process() to
ma_resampler_process_pcm_frames().
2020-01-19 21:23:57 +10:00
David Reid b770ea91d5 Add generic seeking to the resampler. 2020-01-19 19:18:43 +10:00
David Reid 867e1ee7e4 SRC: Implement ma_speex_resampler_get_expected_output_frame_count(). 2020-01-19 17:47:22 +10:00
David Reid f7ff9ee19e SRC: Fix linear ma_resampler_get_expected_output_frame_count(). 2020-01-19 17:24:20 +10:00
David Reid 959885a303 SRC/Speex: Add support for querying required input frame counts. 2020-01-19 14:23:35 +10:00
David Reid 3e8f261c6f Minor restructuring in preparation for some Speex work. 2020-01-19 11:27:58 +10:00
David Reid 6894d10d78 Warning fixes. 2020-01-19 11:18:22 +10:00
David Reid 31086c5de9 Fix bugs in ma_resampler_get_required_input_frame_count(). 2020-01-19 11:12:35 +10:00
David Reid 5df3c0ce15 SRC: Add APIs for querying required input and expected output frames.
* ma_resampler_get_required_input_frame_count()
  * ma_resampler_get_expected_output_frame_count()

These have not yet been implemented for the Speex backend.

This commit also adds an APIs for setting changing the rate:

  * ma_resampler_set_rate()
  * ma_resampler_set_rate_ratio()
2020-01-19 08:15:47 +10:00
David Reid 8fabcc44d8 Add support for passing in null for the input buffer to the resampler. 2020-01-18 18:44:35 +10:00
David Reid 6817dc84f8 Rearrange some function parameters. 2020-01-18 17:46:51 +10:00
David Reid f22ad84986 Add ma_resampler_uninit(). 2020-01-18 17:37:55 +10:00
David Reid 7b27cda74a Add support for s16 format to biquad and low-pass filters. 2020-01-18 17:23:36 +10:00
David Reid 705e54c69a Add support for s16 format to the linear resampler. 2020-01-18 17:12:30 +10:00
David Reid 1449edf49f Add support for the Speex resampler. 2020-01-18 16:38:22 +10:00
David Reid 7d37789418 Resampling and LPF work. 2020-01-18 14:36:12 +10:00
David Reid df2903a0bc Version 0.9.10 2020-01-15 21:18:53 +10:00
David Reid 11d752ad78 Untested work in progress on the improved resampler. 2020-01-14 21:50:01 +10:00
David Reid 44d2605adb Fix a typo. 2020-01-14 21:18:34 +10:00
David Reid 557ef169d4 WASAPI: Try fixing an automatic stream routing bug.
Automatic stream routing should only be used when the ma_device object
is initialized with a device ID of NULL. When it's non-NULL (i.e. an
explicit device) it should not perform automatic stream routing. It
looks like the WASAPI backend is not respecting this requirements and
is enabling automatic stream routing in all cases.

Public issue #127
2020-01-14 21:11:54 +10:00
David Reid 3732a2c476 Use MA_NO_DECODING with the simple_playback_emscripten example.
The rationale for this is to test that the MA_NO_DECODING option is
compiling clean.
2020-01-14 20:47:37 +10:00
David Reid f8b635b972 Update backend notes for Emscripten.
Emscripten no longer supports the -std=c* and -ansi compiler flags.
2020-01-14 20:46:31 +10:00
David Reid 310135d756 Update release notes. 2020-01-14 18:43:42 +10:00
David Reid 5085eb8acc Fix compilation errors due to preprocessor if/endif mismatching. 2020-01-14 18:41:25 +10:00
David Reid 6cff872b12 Minor documentation update. 2020-01-12 08:28:41 +10:00
David Reid 77990ddf95 Update dr_wav. 2020-01-12 08:28:28 +10:00
David Reid fc3771c443 Merge pull request #124 from oviano/dev
Fixed iOS crash in route change handler under ARC
2020-01-10 18:40:50 +10:00
Oliver Collyer 300b542dc5 Fixed iOS crash in route change handler under ARC 2020-01-09 12:53:24 +00:00
David Reid 1916f3da48 Version 0.9.9 2020-01-09 12:25:28 +10:00
David Reid 2b526f6945 Add experimental code for biquad and low-pass filters. 2020-01-09 11:27:57 +10:00
David Reid 45499c8bb8 Merge branch 'dev' of https://github.com/dr-soft/miniaudio into dev 2020-01-09 07:38:17 +10:00
David Reid 2b6a2e7d75 Merge pull request #122 from oviano/dev
Fixed some more integer cast warnings on iOS
2020-01-08 18:31:36 +10:00
Oliver Collyer b0fb839e50 Fixed some more integer cast warnings on iOS 2020-01-07 17:36:32 +00:00
David Reid 4a67189f22 Minor change to simple_playback_emscripten. 2020-01-05 10:17:02 +10:00
David Reid d1f19836ca Rearrange some notes to be roughly in order of importance. 2020-01-04 08:30:12 +10:00
David Reid 3f23492294 PulseAudio: Another attempting at fixing a capture bug.
Public issue #106
2020-01-04 08:26:39 +10:00
David Reid f77f04612f PulseAudio: Update comment. 2020-01-03 11:31:07 +10:00
David Reid 596d9d5b65 PulseAudio: Try fixing a capture bug and add more debug output.
Public issue #106
2020-01-03 11:14:06 +10:00
David Reid d394e4d33b WASAPI: Add support for disabling hardware offloading. 2020-01-03 08:05:53 +10:00
David Reid 8f7f8d6294 WASAPI: Add support for disabling automatic stream routing.
This may be changed to a general config property later.

Related to public issue #119
2020-01-02 07:46:52 +10:00
David Reid 6b331cf92c Update revision history. 2019-12-29 09:19:47 +10:00
David Reid e54c8d448d Merge pull request #117 from qwertysam/master
Jack back-end ignores midi ports
2019-12-29 09:16:38 +10:00
Samson Close c113fe844d Jack back-end ignores midi ports 2019-12-28 10:52:31 -05:00
David Reid 0b3785ce1d Merge pull request #115 from haxiomic/dev
Add defined(MA_APPLE_MOBILE) guard around AVAudioSessionCategory code
2019-12-27 21:24:30 +10:00
George Corney 82d80992db Add defined(MA_APPLE_MOBILE) guard around AVAudioSessionCategory code 2019-12-27 10:38:49 +00:00
David Reid a59682b97a iOS: Initial work on automatic stream routing.
Public issue #101
2019-12-22 16:06:07 +10:00
David Reid 11c0af38f5 Small documentation update. 2019-12-22 09:01:57 +10:00