David Reid
1d17b09e41
Fix an error in ma_sound_get_cursor_in_pcm_frames().
2023-10-27 16:07:14 +10:00
David Reid
39a7cc444b
Fix a crash when uninitialising a device without stopping it first.
2023-10-27 16:06:19 +10:00
a.borisov
fe5f17ecf3
fix misspells
...
occured -> occurred
aquired -> acquired
accomodate -> accommodate
seperate -> separate
etc.
2023-10-22 07:06:12 +10:00
David Reid
0bb56819a8
Address an issue in ma_sound_get_cursor_*().
...
When seeking, the seek does not immediately get applied to the data
source. Instead it is delayed. This results in a situation where the
sound can be seeked, but a small window will exist where querying the
seek point will not be consistent with the previous seek request.
2023-10-21 07:56:06 +10:00
David Reid
105ffd8b05
Update revision history.
2023-10-21 07:31:05 +10:00
David Reid
9bf256dcf3
Fix a documentation error.
2023-10-21 07:29:24 +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
Marek Maškarinec
d282fba0fe
Fix AudioContext creation fail if sampleRate is 0 ( #745 )
2023-10-18 16:38:19 +10:00
Christian Alonso-Daubney
a185b99f12
Added pSound check to ma_sound_get_cone()
2023-10-15 07:34:09 +10:00
Christian Alonso-Daubney
aef76e251c
Added pEngine and listenerIndex check to ma_engine_listener_get_cone()
2023-10-15 07:34:09 +10:00
David Reid
b792ccd483
Try making runtime linking more robust on Apple platforms.
...
Public issue https://github.com/mackron/miniaudio/issues/750
2023-10-14 11:56:16 +10:00
David Reid
a3cabad692
Fix some warnings with the Emscripten build.
2023-09-21 08:43:50 +10:00
my1e5
1a9acbad95
fix-sample-rate : fixed value of 11025 Hz sample rate in ma_standard_sample_rate enum
2023-09-21 08:38:43 +10:00
David Reid
381a035fdd
Fix some unused function warnings.
...
Public issue https://github.com/mackron/miniaudio/issues/732
2023-09-11 08:30:30 +10:00
David Reid
e1a0f523d0
Update dr_wav.
2023-09-11 08:16:53 +10:00
David Reid
03e36da814
Try fixing a strange error when initializing a POSIX mutex.
...
https://github.com/mackron/miniaudio/issues/733
2023-09-11 07:55:08 +10:00
David Reid
a47f065a4a
Don't stop the device in ma_device_uninit().
...
If the state miniaudio side of the device does not match the actual
state of the backend side of it, such as when the device is stopped but
the backend doesn't post a notification, attempting to stop the device
might result in a deadlock.
This is a just a quick workaround hack for the moment while a more
robust solution is figured out.
https://github.com/mackron/miniaudio/issues/717
2023-09-10 07:33:59 +10:00
David Reid
bdf9a5554b
Update the deviceio test.
2023-09-10 07:26:09 +10:00
David Reid
537c4ca36c
Update the simple_playback_sine example.
2023-09-05 06:48:49 +10:00
David Reid
2922859ea9
Remove cosmo windows.h header.
2023-08-31 18:30:42 +10:00
David Reid
6e6823d9e4
Update deviceio test.
2023-08-31 18:30:04 +10:00
Oldes
568e0ae9e9
FIX: Only white noise type is generated
...
resolves: https://github.com/mackron/miniaudio/issues/723
Signed-off-by: Oldes <oldes.huhuman@gmail.com >
2023-08-31 07:12:15 +10:00
nmlgc
70bf42392d
Fix SSE2 sample swapping in mono expansion.
...
The SSE2 code paths for mono expansion introduced in Version 0.11.15
mixed up the parameters of `_mm_shuffle_ps()`, which in turn caused
adjacent PCM frames to be swapped in the channel-expanded output.
2023-08-30 08:37:12 +10:00
David Reid
9d461f6d5d
Minor changes to osaudio.
2023-08-27 15:26:46 +10:00
David Reid
6539b67163
Remove an incorrect comment.
2023-08-27 15:25:08 +10:00
David Reid
78c6fcb370
Fix some parenthesis errors.
2023-08-27 15:24:39 +10:00
David Reid
1f8c86d9ca
Fix a copy/paste error.
2023-08-22 21:20:35 +10:00
David Reid
90342e5f67
Update revision history.
2023-08-19 09:24:02 +10:00
David Reid
46eaf1fa5e
Fix a bug where ma_decoder_init_file can incorrectly return successful.
2023-08-19 09:22:39 +10:00
David Reid
509bd6d4f2
Fix some typos.
2023-08-17 20:56:42 +10:00
David Reid
a81f09d93c
Add osaudio to the extras folder.
...
This is just a small project to experiment with a few API ideas. This
is not a replacement for miniaudio or anything so don't panic.
2023-08-17 19:45:15 +10:00
David Reid
f2ea656297
Correctly mark some functions as static.
2023-08-17 19:32:06 +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
0.11.18
2023-08-07 11:05:14 +10:00
David Reid
9eca9ce0cd
Update dr_libs.
2023-08-07 10:00:49 +10:00
David Reid
d4fd8411c4
Update Emscripten test.
2023-08-06 15:39:54 +10:00
David Reid
efa9e7d727
Web Audio: Memory usage optimization to the Audio Worklet path.
...
This applies only to duplex devices.
2023-08-06 15:31:50 +10:00
David Reid
c24829cbb9
Web Audio: Refactoring to the ScriptProcessorNode path.
...
This unifies, as much as possible, the ScriptProcessorNode path with
the AudioWorklets path to avoid some code duplication, and to also make
the two paths more similar to each other to ease in maintenance.
2023-08-06 15:06:37 +10:00
David Reid
fde7d20414
More improvements to the AudioWorklets Web Audio backend.
...
* Duplex mode now only creates a single AudioContext and AudioWorklet
* Devices should now automatically start in response to a gesture
2023-08-06 10:42:48 +10:00
David Reid
c36b391cc5
Update changes.
2023-08-05 17:58:01 +10:00
David Reid
4d23c1c5ab
Update build instructions for Emscripten.
2023-08-05 17:53:58 +10:00
David Reid
810cdc2380
Improvements to Audio Worklets support for Web Audio.
...
Public issue https://github.com/mackron/miniaudio/issues/597
2023-08-05 17:02:26 +10:00
David Reid
53907863c7
Add support for stopping and sound and fading out.
...
This adds the following APIs:
* ma_sound_stop_with_fade_in_pcm_frames()
* ma_sound_stop_with_fade_in_milliseconds()
* ma_sound_set_stop_time_with_fade_in_pcm_frames()
* ma_sound_set_stop_time_with_fade_in_milliseconds()
These functions will overwrite any existing fades. For the
set_stop_time variants, you specify the time that the sound will be put
into it's stopped state. The fade will start at stopTime - fadeLength.
If the fade length is greater than the stop time, the fade length will
be clamped.
Public issue https://github.com/mackron/miniaudio/issues/669
2023-08-05 10:04:59 +10:00
David Reid
f9f542b2fb
Fix a fading bug introduced with an earlier commit.
2023-08-05 09:19:17 +10:00
David Reid
e43457fcce
Add initial implementation for scheduled fades.
...
This adds the following APIs:
* ma_sound_set_fade_start_in_pcm_frames()
* ma_sound_set_fade_start_in_milliseconds()
Public issue https://github.com/mackron/miniaudio/issues/669
2023-08-04 20:28:56 +10:00
David Reid
356eb3252e
Set up some infrastructure for starting fades with an offset.
2023-08-04 19:26:55 +10:00
David Reid
3429769623
Update change history.
2023-08-04 12:14:18 +10:00
David Reid
ca7284fde5
ALSA: Fix an error where restarting a device can fail.
2023-08-03 17:03:33 +10:00
David Reid
2212965267
Fix errors with the C89 build.
2023-08-03 09:16:59 +10:00