Commit Graph

508 Commits

Author SHA1 Message Date
David Reid 74844074f8 Add code for the new data conversion pipeline.
With this commit, nothing is wired up with the new code. This will be
coming in the next commits.
2020-02-01 07:40:45 +10:00
David Reid 4b163e7c3e Make a macro safer. 2020-02-01 07:03:18 +10:00
David Reid cdb7bed14e Fix a null pointer dereference. 2020-01-30 19:14:10 +10:00
David Reid d0b82d3c3c Try fixing a potential thread safety issue. 2020-01-30 19:08:56 +10:00
David Reid 741edb82de Add some new APIs.
* ma_convert_pcm_frames()
  * ma_sine_wave_read_pcm_frames()
2020-01-27 18:18:24 +10:00
David Reid cbcf6f6cf3 Early work on new channel converter. 2020-01-26 18:37:10 +10:00
David Reid a633e0f51f Remove unused functions. 2020-01-26 09:55:10 +10:00
David Reid 834a604df9 Remove some out of date documentation. 2020-01-23 22:06:06 +10:00
David Reid fc9026eadf Fix potential crash when ma_device not aligned to MA_SIMD_ALIGNMENT.
Public issue https://github.com/dr-soft/miniaudio/issues/128
2020-01-23 18:47:17 +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 705e54c69a Add support for s16 format to the linear resampler. 2020-01-18 17:12:30 +10:00
David Reid df2903a0bc Version 0.9.10 2020-01-15 21:18:53 +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 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 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
Oliver Collyer b0fb839e50 Fixed some more integer cast warnings on iOS 2020-01-07 17:36:32 +00: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
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
David Reid 28093e5c29 Add some debug output to the PulseAudio backend. 2019-12-21 20:06:23 +10:00
David Reid 4e7d501ea9 Merge branch 'dev' of https://github.com/dr-soft/miniaudio into dev 2019-12-21 16:28:47 +10:00
David Reid ac995ee75f Core Audio: Improvements to iOS.
* The session category can now be configured via the context config. When
    set to ma_ios_session_category_default, it will try PlayAndRecord,
    Playback and Record (in that order) until one works. If none work it
    leave the category untouched. This will also set the DefaultToSpeaker
    option since in most cases an application will want audio to be emitted
    from the speaker rather than the receiver.  If the application does not
    want to change the session category, use ma_ios_session_category_none.

  * The session category options can now be configured via the context
    config. This maps to the AVAudioSessionCategoryOption flags.

Public issues #101, #113
2019-12-21 13:22:24 +10:00
David Reid 6c7f6cd3fd Core Audio: Try fixing a compilation error when targeting tvOS and watchOS.
Public issue #108
2019-12-21 10:26:44 +10:00
David Reid c03c12dc9b Core Audio: Try fixing a compilation error on iOS builds.
Public issue #110
2019-12-21 10:03:01 +10:00
David Reid 8bc07a8e36 Fix some integer casting warnings.
Public issue #110
2019-12-21 09:55:00 +10:00
David Reid d6e325dd76 Temporary fix for a warning on Apple platforms.
Public issue #110
2019-12-21 09:52:11 +10:00
David Reid 1c998a57f9 Update release notes. 2019-12-19 18:48:27 +10:00
David Reid 4d249acdee Try fixing some compilation errors when compiling with MinGW.
Public issue #114.
2019-12-19 18:41:11 +10:00
David Reid cd44057a51 Update revision history. 2019-12-07 07:49:56 +10:00
David Reid 8b9d01ad81 Core Audio: Fix deinterleaving bug in capture mode. 2019-12-07 07:47:28 +10:00
David Reid fe90e11a79 Core Audio: Potential fix for incorrect deinterleaving. 2019-12-06 17:17:56 +10:00
David Reid c78a11bed6 Implement semaphores in preparation for future work. 2019-12-01 09:36:27 +10:00
David Reid 483d62e35c AAudio: Set the stream error callback in preparation for future work. 2019-12-01 09:03:31 +10:00
David Reid cbbd818dd6 iOS: Try fixing a bug with stereo headphone output. 2019-11-02 10:54:23 +10:00