Commit Graph

217 Commits

Author SHA1 Message Date
David Reid 7b65f3748a Add some safety checks to data sources.
With this change, an error is now returned when the requested frame
count is zero. Two reasons for this:

  1) It usually means there's an error in the higher level logic if
     something is trying to read zero frames.

  2) When no frames are read, MA_AT_END should be returned. However, if
     the input frame count is also zero, it creates ambiguity as to
     whether or not the data source is truly at the end.
2021-07-18 10:35:34 +10:00
David Reid ebdc79ab6a Merge branch 'master' into dev-0.11 2021-07-14 20:47:00 +10:00
David Reid 0f5cb7829d Version 0.10.38 2021-07-14 20:46:38 +10:00
David Reid 3dc522e19b Remove the Speex resampler. 2021-07-10 15:54:52 +10:00
David Reid 49b9fa5109 Merge branch 'master' into dev-0.11 2021-07-06 17:41:05 +10:00
David Reid 90c7eef4f4 Version 0.10.37 2021-07-06 17:40:38 +10:00
David Reid 33aae652fe API CHANGE: Update ma_get_standard_channel_map().
This adds a capacity parameter for added safety. It also changes the
order of parameters to make it a bit more consistent.
2021-07-04 19:46:00 +10:00
David Reid 3fad6cad86 API CHANGE: Add channel maps to ma_data_source_get_data_format().
This commit also removes the onGetChannelMap callback from the decoding
backend vtable.
2021-07-04 18:21:36 +10:00
David Reid 1a4742e262 API CHANGE: Remove mapping from data sources.
This has proven to be exceptionally un-useful in practice and the
maintenance cost just isn't worth it.
2021-07-04 16:34:47 +10:00
David Reid b84d222c5e Remove miniaudio_dll. 2021-07-04 15:27:09 +10:00
David Reid 81d720e09f Version 0.10.36 2021-07-03 20:29:03 +10:00
David Reid db7a3dfd23 Update stb_vorbis. 2021-07-03 07:48:12 +10:00
David Reid 18d185832f Fix a compilation warning. 2021-07-02 20:54:38 +10:00
David Reid 11a774c9ff Update dr_wav. 2021-07-01 17:05:17 +10:00
David Reid 6dbb31849b Fix copy/paste errors. 2021-07-01 10:08:22 +10:00
David Reid 998bd995bc Add libvorbis and libopus data sources to the extras folder. 2021-06-30 20:42:43 +10:00
David Reid 73e1589afa Update dr_wav.
Public issue https://github.com/mackron/miniaudio/issues/320
2021-06-11 19:50:42 +10:00
David Reid 199d6a7875 Version 0.10.35 2021-04-27 17:31:19 +10:00
David Reid 994cda44b5 Version 0.10.34 2021-04-26 16:32:00 +10:00
David Reid fca829edef Version 0.10.33 2021-04-04 08:04:50 +10:00
David Reid 881fa6063e Update dr_flac. 2021-04-02 08:52:00 +10:00
David Reid d06d4983d3 Version 0.10.32 2021-02-23 18:09:47 +10:00
David Reid 25938c8197 Update dr_libs. 2021-02-21 08:50:46 +10:00
David Reid 53512c39b7 Version 0.10.31 2021-01-17 21:40:01 +10:00
David Reid 045fd9e732 Update dr_libs. 2021-01-17 20:28:57 +10:00
David Reid 1afec17bdb Make some functions const correct. 2021-01-12 20:03:56 +10:00
David Reid a6cd93401d Version 0.10.30 2021-01-10 22:42:17 +10:00
David Reid 8f675e6c31 Version 0.10.29 2020-12-26 18:09:28 +10:00
David Reid 4e9becd5b3 Update dr_flac and dr_mp3. 2020-12-26 18:04:14 +10:00
David Reid db53994f7c Version 0.10.28 2020-12-16 20:39:26 +10:00
David Reid f3e18dd25d Update dr_mp3. 2020-12-07 07:38:19 +10:00
David Reid caad0bc436 Version 0.10.27 2020-12-04 20:21:29 +10:00
David Reid 79017f6cbb Update dr_mp3. 2020-12-03 21:01:29 +10:00
David Reid ae9449cdba Update dr_mp3. 2020-12-03 17:49:14 +10:00
David Reid 8669f2001e Update dr_mp3. 2020-12-02 19:20:06 +10:00
David Reid c4a07602c6 Update dr_wav. 2020-12-02 18:12:47 +10:00
David Reid 0a70fc033d Update dr_flac and dr_mp3. 2020-11-29 07:22:39 +10:00
David Reid d6864c5ab5 Version 0.10.26 2020-11-24 17:56:22 +10:00
David Reid f8671d6933 Update external libraries. 2020-11-21 09:22:00 +10:00
David Reid 140bf99065 Version 0.10.25 2020-11-15 21:21:01 +10:00
David Reid b94249b010 Update dr_wav and dr_mp3. 2020-11-15 21:19:26 +10:00
David Reid 2e1e2ff8af Version 0.10.24 2020-11-10 19:55:33 +10:00
David Reid 35fd4fbf66 Version 0.10.23 2020-11-09 20:05:01 +10:00
David Reid 27a7fea804 Update dr_flac. 2020-11-01 21:49:01 +10:00
David Reid 89e5ae2144 Update dr_libs. 2020-11-01 21:43:34 +10:00
David Reid eda3dcc866 Fix some warnings in the Speex resampler. 2020-11-01 21:00:22 +10:00
David Reid ae88112e4f Version 0.10.21 2020-10-30 20:23:21 +10:00
David Reid 447e22e09f Update dr_libs. 2020-10-30 20:20:29 +10:00
David Reid 17b360539f Update split version. 2020-10-07 17:43:08 +10:00
David Reid 6562e6a0c8 Update FLAC decoder. 2020-08-30 11:41:37 +10:00