Commit Graph

3067 Commits

Author SHA1 Message Date
David Reid 69917d7e7b Update general issue template. 2022-01-08 18:22:57 +10:00
David Reid ca4ef1c2a1 Minor documentation fix. 2022-01-08 17:34:15 +10:00
David Reid 24974c89e8 Minor documentation fix. 2022-01-08 17:21:28 +10:00
David Reid c159a9b4bf Add link for Reddit. 2022-01-08 15:44:36 +10:00
David Reid 949a2d4558 Add support for initializing an encoder from a VFS. 2022-01-08 12:35:07 +10:00
David Reid 902df08607 Fix a bug with encoders where a file handle can be left unclosed. 2022-01-08 12:15:05 +10:00
David Reid 700dba14ea Version 0.11.3 2022-01-07 21:04:38 +10:00
David Reid beb4f31b5e Update dr_flac. 2022-01-07 20:43:37 +10:00
David Reid 3f44af0e5d Add shield to readme for reddit. 2022-01-06 21:24:25 +10:00
David Reid 6035f2c14c Change the logic for the default format for wav decoders.
This will now pick the closest miniaudio-supported format to the source
file's internal format rather than always defaulting to f32.
2022-01-06 18:36:04 +10:00
David Reid 438db05cfe Fix a bug in ma_data_source_read_pcm_frames().
The issue here is that MA_AT_END is getting returned when nothing has
been read. The rules are that MA_AT_END should only ever be returned
when nothing is read.
2022-01-06 18:00:38 +10:00
David Reid 3a3616e0ee Update Steam Audio example. 2022-01-03 16:37:16 +10:00
David Reid 19e81b8e33 PulseAudio: Fix some deadlocks when starting and stopping streams. 2022-01-03 11:19:52 +10:00
David Reid 4e14738309 Update revision history. 2022-01-02 17:04:43 +10:00
David Reid 3d191fcefd Merge branch 'dev' of https://github.com/mackron/miniaudio into dev 2022-01-02 17:03:26 +10:00
David Reid 414989745d Fix a bug where ma_device_get_info/name() fails. 2022-01-02 17:03:14 +10:00
David Reid 550dd92539 Core Audio: Fix some bugs with device name retrieval. 2022-01-02 16:33:03 +10:00
David Reid 73cf76cbbe Clean up some logging. 2022-01-02 13:51:10 +10:00
David Reid 7af2ce2521 Make log levels an enum instead of defines. 2022-01-02 13:16:50 +10:00
David Reid ce0d8f8491 Always post debug logs to log handlers. 2022-01-02 13:12:07 +10:00
David Reid eab1cc4357 Remove old "[miniaudio]" labels from some logs. 2022-01-02 13:10:36 +10:00
David Reid 6a04b9c0ff Update documentation for log levels. 2022-01-02 13:08:19 +10:00
David Reid 3c7e4fe9b5 Remove a stray debugging line. 2022-01-02 07:23:37 +10:00
David Reid 7ee6d1d792 Add support for configuring the size of input caches in nodes.
This is important for fixed sized processing.
2022-01-01 21:31:06 +10:00
David Reid f3915423b6 Update the Steam Audio example. 2022-01-01 21:20:13 +10:00
David Reid cba36680bd Add support for fixed sized data callbacks.
This is the new default. The size of the buffer will be based on the
periodSizeInFrames and periodSizeInMilliseconds config variable. To go
back to the previous system, where the data callback could specify any
number of frames, set the noFixedSizedCallback config variable to true.
2022-01-01 21:14:22 +10:00
David Reid 2ad40dc7da Minor rewording and fix a typo. 2022-01-01 16:25:36 +10:00
David Reid 27a934a16c Update revision history. 2022-01-01 16:21:11 +10:00
David Reid 3f51e94524 Add the MA_NODE_FLAG_SILENT_OUTPUT flag for nodes.
This flag is used to tell miniaudio that it should assume the output of
the node is silence. This is useful for special nodes that want to
output to a file and don't want the output of the node to contribute to
the final mix.
2022-01-01 16:09:58 +10:00
David Reid a0b4e7824b Update comment. 2022-01-01 13:32:14 +10:00
David Reid 153b2ebd48 Add example for using the engine with SDL. 2022-01-01 13:21:30 +10:00
David Reid 21755cfcb2 Update website. 2022-01-01 12:30:14 +10:00
David Reid cf024cb71f Fix an error in the simple_mixing example.
Public issue https://github.com/mackron/miniaudio/issues/388
2022-01-01 07:42:42 +10:00
David Reid 42abbbea46 Version 0.11.2 2021-12-31 19:15:03 +10:00
David Reid 354d0c91c6 Add some clarification notes for device notifications. 2021-12-31 16:38:02 +10:00
David Reid b69ca62994 PulseAudio: Integrate the rerouted event. 2021-12-31 07:39:40 +10:00
David Reid a10675f2cf Fire the reroute notification for desktop Core Audio. 2021-12-31 07:15:08 +10:00
David Reid bcd53f09b7 Fire the reroute notification for WASAPI. 2021-12-31 07:12:38 +10:00
David Reid 19006256e0 Clean up some old documentation.
Public issue https://github.com/mackron/miniaudio/issues/386
2021-12-30 06:37:50 +10:00
David Reid 8ed545ae56 Another documentation fix.
Public issue https://github.com/mackron/miniaudio/issues/385
2021-12-30 05:49:02 +10:00
David Reid 15298ad77f Fix documentation for ma_decoder_read_pcm_frames().
Public issue https://github.com/mackron/miniaudio/issues/385
2021-12-30 05:42:57 +10:00
David Reid 6353c2e69e Fix a type mismatch error.
Public issue https://github.com/mackron/miniaudio/issues/385
2021-12-30 05:38:44 +10:00
David Reid afc0fc107b iOS: Initial work on interruption detection. 2021-12-29 13:56:55 +10:00
David Reid d077e92f5c PulseAudio: Fix a crash when initializing multiple devices.
This was due to context-level mainloop being accessed from different
audio threads at the same time. I've fixed this by giving each device
their own pa_mainloop and pa_context objects.

I considered the idea of having only a single context-level mainloop
and just using a mutex for mutal exclusion, but that would involve a
lock in the audio thread's data loop which I wasn't happy about. Also,
I wasn't sure which thread PulseAudio callbacks would get fired from
since the main loop would be iterated on different audio threads.

Public issue https://github.com/mackron/miniaudio/issues/376
2021-12-29 09:22:03 +10:00
David Reid 4f07898b69 Clarification to revision history. 2021-12-28 20:48:50 +10:00
David Reid 3c4634dd6a Add support for forcing stdint.h for sized types.
Public issue https://github.com/mackron/miniaudio/issues/334
2021-12-28 20:32:54 +10:00
David Reid 922b58463c Introduce a new device notification system.
This replaces the stop callback. The new callback supports different
event types, not all of which are supported on all backends.

This commit also fixes a bug where the stop callback is not fired.

Public issue https://github.com/mackron/miniaudio/issues/351
2021-12-28 19:35:05 +10:00
David Reid 2bd5011b4b Update revision history. 2021-12-28 08:15:15 +10:00
David Reid 3f044fc658 iOS: Add support for configuring the size of the IO buffer. 2021-12-28 08:13:30 +10:00
David Reid fdf2a28338 Fix a compilation warning with Xcode 2021-12-28 07:46:59 +10:00