Commit Graph

94 Commits

Author SHA1 Message Date
RainRat 3ba0595c6a fix typos 2024-04-11 12:40:39 +10:00
David Reid 0eb86ea1da Fix a bug where sounds loaded with MA_SOUND_FLAG_DECODE do not loop. 2024-03-01 09:59:44 +10:00
RainRat 030b9554c2 fix typos 2024-03-01 08:35:45 +10:00
David Reid 29da9b789c Add new init flags for sounds and resource managed data sources.
This adds the following flags:

  * MA_SOUND_FLAG_LOOPING
  * MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_LOOPING

These can be used to initialize sounds and resource managed data
sources to loop by default. This is the recommended way to enable
looping for streams. The `isLooping` config option in
`ma_sound_config` and `ma_resource_manager_data_source_config` has been
deprecated. If you are using those, you should switch to the new flag
or else you'll get compiler errors when upgrading to a future version.
2024-02-29 10:25:02 +10:00
David Reid f4e5cf99dc Update change history. 2024-02-08 15:26:55 +10:00
David Reid a4aa0dc404 Fix amplification with ma_device_set_master_volume().
Public issue https://github.com/mackron/miniaudio/discussions/800
2024-01-12 08:10:53 +10:00
David Reid ee3b7df66a Update change history. 2023-12-10 13:50:40 +10:00
David Reid 4f426f6db0 Update change history. 2023-12-06 07:59:52 +10:00
David Reid 3c5b15b48b Update change history. 2023-11-29 07:51:30 +10:00
David Reid 6cba159210 ALSA: Fix some warnings relating to unhandled return value of read(). 2023-11-29 06:27:03 +10:00
David Reid 5a3655fea4 DirectSound: Add support for specifying an explicit HWND.
Public issue https://github.com/mackron/miniaudio/issues/779
2023-11-28 07:39:47 +10:00
David Reid 4a5b74bef0 Version 0.11.21 2023-11-15 11:23:00 +10:00
David Reid 3b50a854ec Version 0.11.20 2023-11-10 07:44:19 +10:00
David Reid da0572e6b8 Fix a compilation error with iOS.
Public issue https://github.com/mackron/miniaudio/issues/770
2023-11-09 15:01:03 +10:00
David Reid eb0ce6f1a5 Fix an error when dynamically linking when forcing the UWP build.
This also fixes a possible crash during initialization due to leaving a
thread running after early termination of the initialization routine.
2023-11-04 08:43:16 +10:00
David Reid b19cc09fd0 Version 0.11.19 2023-11-04 07:05:24 +10:00
David Reid 287881b815 Web Audio: Don't attempt to unlock audio on the touchstart event.
Public issue https://github.com/mackron/miniaudio/issues/759
2023-10-29 08:06:56 +10:00
David Reid 105ffd8b05 Update revision history. 2023-10-21 07:31:05 +10:00
David Reid 2f5c661bb7 Update revision history. 2023-10-21 07:24:23 +10:00
David Reid ecf2a8b917 Fix a crash when using a node with more than 2 outputs. 2023-10-21 07:18:58 +10:00
David Reid 90342e5f67 Update revision history. 2023-08-19 09:24:02 +10:00
David Reid c24141c5ae Remove the use of some deprecated functions. 2023-08-07 12:13:36 +10:00
David Reid 3898fff8ed Version 0.11.18 2023-08-07 11:05:14 +10:00
David Reid c36b391cc5 Update changes. 2023-08-05 17:58:01 +10:00
David Reid 3429769623 Update change history. 2023-08-04 12:14:18 +10:00
David Reid ab87375257 Add ma_engine_get_volume().
Public issue https://github.com/mackron/miniaudio/issues/700
2023-07-08 09:18:41 +10:00
David Reid a6eb7d6a6f Update change history. 2023-06-17 08:06:22 +10:00
David Reid 4c49c49596 Update change history. 2023-06-07 21:14:58 +10:00
David Reid d76b9a1ac4 Version 0.11.17 2023-05-27 12:49:48 +10:00
David Reid 8c59e9b736 Update change history. 2023-05-23 19:10:59 +10:00
David Reid 563e1c52cb Update change history. 2023-05-22 17:51:08 +10:00
David Reid 65574f44e3 Update change history. 2023-05-21 07:57:32 +10:00
David Reid 6eeea700f0 Silence a very minor linting warning in VS2022. 2023-05-17 18:22:24 +10:00
David Reid ea205fb7b0 Version 0.11.16 2023-05-15 09:36:42 +10:00
David Reid 7384bde372 Update change history. 2023-04-30 08:39:53 +10:00
David Reid 0d78b28f56 Update change history. 2023-04-19 08:35:07 +10:00
David Reid 3769393b85 Update change history. 2023-04-07 18:09:38 +10:00
David Reid 23345b47e8 Add support for volume smoothing to sounds.
Smoothing is disabled by default. To enable it, you must use
ma_sound_init_ex() and configure it via the volumeSmoothTimeInPCMFrames
member of ma_sound_config.

This commit also fixes a bug where ma_gainer is not properly applying
smoothing.
2023-04-07 17:34:33 +10:00
David Reid 9a7663496f Version 0.11.14 2023-03-29 07:52:40 +10:00
David Reid 8ce4857bcd Add support for using ma_pcm_rb as a data source. 2023-03-25 12:05:28 +10:00
David Reid 025afa464a Update dr_wav and c89atomic. 2023-03-25 10:23:49 +10:00
David Reid 58855d3d34 Fix some pedantic warnings when compiling with GCC. 2023-03-25 09:10:28 +10:00
David Reid d63a3894ad Typo. 2023-03-23 20:11:57 +10:00
David Reid 6b4f356b02 Update change history. 2023-03-23 10:46:15 +10:00
David Reid fb9c18c705 Version 0.11.13 2023-03-23 07:33:23 +10:00
David Reid 7f077a1cd7 Update revision history. 2023-03-21 17:32:45 +10:00
David Reid 206be60612 Update revision history. 2023-03-21 09:58:32 +10:00
David Reid 0a19c74417 Version 0.11.12 2023-03-19 20:58:13 +10:00
David Reid ff6592be45 Remove the Windows-specific default memcpy(), malloc(), etc. 2023-03-18 08:58:55 +10:00
David Reid 695e750c34 Add support for callback notifications when a sound reaches the end. 2023-03-17 12:05:56 +10:00