David Reid
592d3d61b5
Minor change for improved syntax highlighting for the implementation.
2022-01-16 18:00:14 +10:00
David Reid
e3f3754e4e
Fix a compilation error when MA_NO_DEVICE_IO is enabled.
2022-01-16 17:41:42 +10:00
David Reid
5138fd992c
Update changes.
2022-01-16 11:59:51 +10:00
David Reid
0ca929a658
WASAPI: Refactoring to simplify data reading and writing.
...
This commit removes the custom data loop and instead implements the
onDeviceRead and onDeviceWrite backend callbacks. This simplifies the
implementation and fixes a bug with duplex mode where the capture and
playback devices have different native sample rates.
This commit also fixes a bug with fixed sized callbacks with duplex
mode.
Public issue https://github.com/mackron/miniaudio/issues/397
2022-01-16 11:52:26 +10:00
David Reid
1d8f687b2e
Make ma_engine_play_sound_ex() publicly visible.
2022-01-15 06:49:53 +10:00
David Reid
dd2441a407
Add validation for the pitch in ma_sound_set_pitch().
2022-01-14 21:21:29 +10:00
David Reid
28ba62cb9d
Add some validation to the resampler.
2022-01-14 21:13:13 +10:00
David Reid
aa983db038
Core Audio: Stop the device when interruption_began is posted.
...
Public issue https://github.com/mackron/miniaudio/issues/400
2022-01-14 19:03:52 +10:00
David Reid
99d3718440
Core Audio: Fix a deadlock when stopping a device from an interruption.
...
Public issue https://github.com/mackron/miniaudio/issues/400
2022-01-14 19:00:44 +10:00
David Reid
981d05ae8d
Fix a deadlock when starting a device fails.
...
Public issue https://github.com/mackron/miniaudio/issues/399
2022-01-13 18:28:40 +10:00
David Reid
26e2a59ffb
Update changes.
2022-01-11 19:30:42 +10:00
David Reid
7796b4a0d9
Add documentation for the aaudio.noAutoStartAfterReroute config.
2022-01-11 19:30:32 +10:00
David Reid
cc274c67d5
Move revision history out of miniaudio.h and into CHANGES.md
2022-01-11 19:09:25 +10:00
David Reid
a548ffba5d
Update version number.
2022-01-11 18:59:21 +10:00
David Reid
ee75e79975
AAudio: Don't try stopping the stream if it's disconnected.
...
Public issue https://github.com/mackron/miniaudio/issues/318
2022-01-11 18:58:49 +10:00
David Reid
af1928c3f0
AAudio: Try fixing an issue with automatic stream rerouting.
...
Public issue https://github.com/mackron/miniaudio/issues/318
2022-01-11 18:53:14 +10:00
David Reid
e89650cc4b
Version 0.11.4
2022-01-11 18:30:44 +10:00
David Reid
38fa2eff40
Merge branch 'master' of https://github.com/mackron/miniaudio into dev
2022-01-11 18:29:01 +10:00
David Reid
290755d1d3
Merge pull request #398 from thedmd/dev-gdk
...
Add support for GDK (<https://github.com/microsoft/GDK >)
2022-01-11 18:28:22 +10:00
David Reid
97065d2428
Fix an incorrect return type.
...
Public issue https://github.com/mackron/miniaudio/issues/396
2022-01-11 15:59:59 +10:00
thedmd
8340b65e12
Add support for GDK (< https://github.com/microsoft/GDK >)
2022-01-11 05:33:37 +01:00
David Reid
3f19469e01
Fix compilation errors with the UWP build.
2022-01-10 19:42:06 +10:00
David Reid
e8cdf5bcd6
Fix some atomicity errors with the spatializer.
...
This is WIP. There's still some atomicity errors in here.
2022-01-09 19:28:51 +10:00
David Reid
10e79d5841
Add link for discussion about Apple notarization process.
2022-01-09 18:39:27 +10:00
David Reid
bce5418b57
AAudio: Fix a division by zero error.
2022-01-09 17:34:07 +10:00
David Reid
fe3e21a4a6
AAudio: Add support for automatic stream routing.
...
Public issue https://github.com/mackron/miniaudio/issues/318
2022-01-09 17:21:58 +10:00
David Reid
2d466c582d
Set up some infrastructure for stream routing with AAudio.
2022-01-09 13:15:19 +10:00
David Reid
12be13a772
Rearrange some code.
2022-01-09 12:18:12 +10:00
David Reid
fa946b07bd
Add initial implementation of ma_device_job_thread.
...
A device job thread is used for processing jobs from a separate thread
for cases where doing a certain operation needs to be done from outside
a callback.
2022-01-09 12:07:18 +10:00
David Reid
b60392eea6
Finish refactoring for generalization of the job system.
2022-01-09 10:40:41 +10:00
David Reid
adbe6325db
Rename some job type tokens.
2022-01-09 10:11:32 +10:00
David Reid
069ad349c3
More renaming from ma_resource_manager_job to ma_job.
2022-01-09 10:07:34 +10:00
David Reid
154d65c85b
Move the ma_job API out of the resource management section.
2022-01-09 10:04:03 +10:00
David Reid
b8c64b0beb
Rename ma_resource_manager_job to ma_job.
...
This is in preparation for generalizing the job system.
2022-01-09 09:55:15 +10:00
David Reid
8b617b1bdc
Code restructure in preparation for work on the job system.
2022-01-09 09:15:18 +10:00
David Reid
2b93a86c7d
Refactoring in preparation for generalising the job system.
2022-01-09 08:48:05 +10:00
David Reid
fd58700ac1
Rearrange some code.
2022-01-09 06:10:16 +10:00
David Reid
d437288588
Remove MA_RESOURCE_MANAGER_JOB_CUSTOM.
2022-01-09 06:03:48 +10:00
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