1. 12 Jan, 2021 7 commits
    • David Reid's avatar
      0e8a19ee
    • David Reid's avatar
      Add support for disabling pitching. · 56e0e624
      David Reid authored
      This provides an optimization by allowing processing to bypass the
      resampler. Audio data needs to pass through the resampler even for the
      case where pitch=1 because it needs to update internal buffers which if
      it didn't do, would result in a glitch when moving away from 1.
      
      In practice most sounds won't require individual pitch control, however
      in the interest in being consistent with miniaudio's philosophy of
      things "Just Working", pitching is enabled by default. Pitching can be
      disabled with MA_SOUND_FLAG_DISABLE_PITCH in ma_sound_init_*() and
      ma_sound_group_init().
      56e0e624
    • David Reid's avatar
      Remove ma_engine_effect. · b5c0f6f6
      David Reid authored
      This is the first step towards decoupling the ma_effect API from the
      engine for the eventual removal.
      
      This also fixes bugs regarding channel conversion when processing an
      engine node.
      b5c0f6f6
    • David Reid's avatar
      Make some functions const correct. · 1afec17b
      David Reid authored
      1afec17b
    • David Reid's avatar
      Fix a bug when trying to play a sound with inconsistent channel counts. · ff22dc3c
      David Reid authored
      This bug happens when the channel count of the data source does not
      match the channel count of the engine.
      ff22dc3c
    • David Reid's avatar
      Rename ma_sound_set_start/stop_delay() to ma_sound_set_start/stop_time() · 400aaf58
      David Reid authored
      This is mainly for consistency with the node API, but also because it
      more clearly indicates that it's an absolute time rather than a delay
      which sounds more like a relative time.
      400aaf58
    • David Reid's avatar
      Migrate start and stop delays to the node graph system. · d5b25502
      David Reid authored
      This changes ma_sound_set_start/stop_delay() to take an absolute time
      in frames based on the global clock. Previously these took a relative
      time in milliseconds. To use a relative time, add it to the value
      returned by ma_engine_get_time(). To use milliseconds, use a standard
      sample rate to milliseconds conversion.
      d5b25502
  2. 10 Jan, 2021 7 commits
  3. 09 Jan, 2021 2 commits
  4. 07 Jan, 2021 2 commits
  5. 06 Jan, 2021 8 commits
  6. 05 Jan, 2021 1 commit
    • David Reid's avatar
      Improve performance of ma_node_uninit(). · c5403669
      David Reid authored
      This changes the way ma_node_uninit() waits for the audio thread. Now,
      instead of waiting for the *entire* graph to complete, it only waits
      for it's local processing to complete.
      c5403669
  7. 03 Jan, 2021 7 commits
  8. 02 Jan, 2021 1 commit
  9. 31 Dec, 2020 2 commits
  10. 30 Dec, 2020 3 commits