Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
d76b9a1a
Commit
d76b9a1a
authored
May 27, 2023
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 0.11.17
parent
e9b6559b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8884 additions
and
10650 deletions
+8884
-10650
CHANGES.md
CHANGES.md
+3
-3
extras/miniaudio_split/miniaudio.c
extras/miniaudio_split/miniaudio.c
+8819
-10626
extras/miniaudio_split/miniaudio.h
extras/miniaudio_split/miniaudio.h
+61
-20
miniaudio.h
miniaudio.h
+1
-1
No files found.
CHANGES.md
View file @
d76b9a1a
v0.11.7 -
TBD
v0.11.7 -
2023-05-27
=============
=============
=======
*
Fix
some
compilation errors with MA_USE_STDINT.
*
Fix compilation errors with MA_USE_STDINT.
*
Fix a possible runtime error with Windows 95/98.
*
Fix a possible runtime error with Windows 95/98.
*
Fix a very minor linting warning in VS2022.
*
Fix a very minor linting warning in VS2022.
*
Add support for AIFF/AIFC decoding.
*
Add support for AIFF/AIFC decoding.
...
...
extras/miniaudio_split/miniaudio.c
View file @
d76b9a1a
This diff is collapsed.
Click to expand it.
extras/miniaudio_split/miniaudio.h
View file @
d76b9a1a
/*
/*
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
miniaudio - v0.11.1
6 - 2023-05-15
miniaudio - v0.11.1
7 - 2023-05-27
David Reid - mackron@gmail.com
David Reid - mackron@gmail.com
...
@@ -20,7 +20,7 @@ extern "C" {
...
@@ -20,7 +20,7 @@ extern "C" {
#define MA_VERSION_MAJOR 0
#define MA_VERSION_MAJOR 0
#define MA_VERSION_MINOR 11
#define MA_VERSION_MINOR 11
#define MA_VERSION_REVISION 1
6
#define MA_VERSION_REVISION 1
7
#define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION)
#define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION)
#if defined(_MSC_VER) && !defined(__clang__)
#if defined(_MSC_VER) && !defined(__clang__)
...
@@ -212,6 +212,13 @@ typedef ma_uint16 wchar_t;
...
@@ -212,6 +212,13 @@ typedef ma_uint16 wchar_t;
#ifdef _MSC_VER
#ifdef _MSC_VER
#define MA_INLINE __forceinline
#define MA_INLINE __forceinline
/* noinline was introduced in Visual Studio 2005. */
#if _MSC_VER >= 1400
#define MA_NO_INLINE __declspec(noinline)
#else
#define MA_NO_INLINE
#endif
#elif defined(__GNUC__)
#elif defined(__GNUC__)
/*
/*
I've had a bug report where GCC is emitting warnings about functions possibly not being inlineable. This warning happens when
I've had a bug report where GCC is emitting warnings about functions possibly not being inlineable. This warning happens when
...
@@ -228,13 +235,17 @@ typedef ma_uint16 wchar_t;
...
@@ -228,13 +235,17 @@ typedef ma_uint16 wchar_t;
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) || defined(__clang__)
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) || defined(__clang__)
#define MA_INLINE MA_GNUC_INLINE_HINT __attribute__((always_inline))
#define MA_INLINE MA_GNUC_INLINE_HINT __attribute__((always_inline))
#define MA_NO_INLINE __attribute__((noinline))
#else
#else
#define MA_INLINE MA_GNUC_INLINE_HINT
#define MA_INLINE MA_GNUC_INLINE_HINT
#define MA_NO_INLINE __attribute__((noinline))
#endif
#endif
#elif defined(__WATCOMC__)
#elif defined(__WATCOMC__)
#define MA_INLINE __inline
#define MA_INLINE __inline
#define MA_NO_INLINE
#else
#else
#define MA_INLINE
#define MA_INLINE
#define MA_NO_INLINE
#endif
#endif
#if !defined(MA_API)
#if !defined(MA_API)
...
@@ -464,28 +475,31 @@ typedef enum
...
@@ -464,28 +475,31 @@ typedef enum
MA_CANCELLED
=
-
51
,
MA_CANCELLED
=
-
51
,
MA_MEMORY_ALREADY_MAPPED
=
-
52
,
MA_MEMORY_ALREADY_MAPPED
=
-
52
,
/* General non-standard errors. */
MA_CRC_MISMATCH
=
-
100
,
/* General miniaudio-specific errors. */
/* General miniaudio-specific errors. */
MA_FORMAT_NOT_SUPPORTED
=
-
1
00
,
MA_FORMAT_NOT_SUPPORTED
=
-
2
00
,
MA_DEVICE_TYPE_NOT_SUPPORTED
=
-
1
01
,
MA_DEVICE_TYPE_NOT_SUPPORTED
=
-
2
01
,
MA_SHARE_MODE_NOT_SUPPORTED
=
-
1
02
,
MA_SHARE_MODE_NOT_SUPPORTED
=
-
2
02
,
MA_NO_BACKEND
=
-
1
03
,
MA_NO_BACKEND
=
-
2
03
,
MA_NO_DEVICE
=
-
1
04
,
MA_NO_DEVICE
=
-
2
04
,
MA_API_NOT_FOUND
=
-
1
05
,
MA_API_NOT_FOUND
=
-
2
05
,
MA_INVALID_DEVICE_CONFIG
=
-
1
06
,
MA_INVALID_DEVICE_CONFIG
=
-
2
06
,
MA_LOOP
=
-
1
07
,
MA_LOOP
=
-
2
07
,
MA_BACKEND_NOT_ENABLED
=
-
1
08
,
MA_BACKEND_NOT_ENABLED
=
-
2
08
,
/* State errors. */
/* State errors. */
MA_DEVICE_NOT_INITIALIZED
=
-
2
00
,
MA_DEVICE_NOT_INITIALIZED
=
-
3
00
,
MA_DEVICE_ALREADY_INITIALIZED
=
-
2
01
,
MA_DEVICE_ALREADY_INITIALIZED
=
-
3
01
,
MA_DEVICE_NOT_STARTED
=
-
2
02
,
MA_DEVICE_NOT_STARTED
=
-
3
02
,
MA_DEVICE_NOT_STOPPED
=
-
2
03
,
MA_DEVICE_NOT_STOPPED
=
-
3
03
,
/* Operation errors. */
/* Operation errors. */
MA_FAILED_TO_INIT_BACKEND
=
-
3
00
,
MA_FAILED_TO_INIT_BACKEND
=
-
4
00
,
MA_FAILED_TO_OPEN_BACKEND_DEVICE
=
-
3
01
,
MA_FAILED_TO_OPEN_BACKEND_DEVICE
=
-
4
01
,
MA_FAILED_TO_START_BACKEND_DEVICE
=
-
3
02
,
MA_FAILED_TO_START_BACKEND_DEVICE
=
-
4
02
,
MA_FAILED_TO_STOP_BACKEND_DEVICE
=
-
3
03
MA_FAILED_TO_STOP_BACKEND_DEVICE
=
-
4
03
}
ma_result
;
}
ma_result
;
...
@@ -6343,7 +6357,7 @@ struct ma_encoder
...
@@ -6343,7 +6357,7 @@ struct ma_encoder
ma_encoder_uninit_proc
onUninit
;
ma_encoder_uninit_proc
onUninit
;
ma_encoder_write_pcm_frames_proc
onWritePCMFrames
;
ma_encoder_write_pcm_frames_proc
onWritePCMFrames
;
void
*
pUserData
;
void
*
pUserData
;
void
*
pInternalEncoder
;
/* <-- The drwav/drflac/stb_vorbis/etc. objects. */
void
*
pInternalEncoder
;
union
union
{
{
struct
struct
...
@@ -6408,6 +6422,33 @@ MA_API ma_result ma_waveform_set_frequency(ma_waveform* pWaveform, double freque
...
@@ -6408,6 +6422,33 @@ MA_API ma_result ma_waveform_set_frequency(ma_waveform* pWaveform, double freque
MA_API
ma_result
ma_waveform_set_type
(
ma_waveform
*
pWaveform
,
ma_waveform_type
type
);
MA_API
ma_result
ma_waveform_set_type
(
ma_waveform
*
pWaveform
,
ma_waveform_type
type
);
MA_API
ma_result
ma_waveform_set_sample_rate
(
ma_waveform
*
pWaveform
,
ma_uint32
sampleRate
);
MA_API
ma_result
ma_waveform_set_sample_rate
(
ma_waveform
*
pWaveform
,
ma_uint32
sampleRate
);
typedef
struct
{
ma_format
format
;
ma_uint32
channels
;
ma_uint32
sampleRate
;
double
dutyCycle
;
double
amplitude
;
double
frequency
;
}
ma_pulsewave_config
;
MA_API
ma_pulsewave_config
ma_pulsewave_config_init
(
ma_format
format
,
ma_uint32
channels
,
ma_uint32
sampleRate
,
double
dutyCycle
,
double
amplitude
,
double
frequency
);
typedef
struct
{
ma_waveform
waveform
;
ma_pulsewave_config
config
;
}
ma_pulsewave
;
MA_API
ma_result
ma_pulsewave_init
(
const
ma_pulsewave_config
*
pConfig
,
ma_pulsewave
*
pWaveform
);
MA_API
void
ma_pulsewave_uninit
(
ma_pulsewave
*
pWaveform
);
MA_API
ma_result
ma_pulsewave_read_pcm_frames
(
ma_pulsewave
*
pWaveform
,
void
*
pFramesOut
,
ma_uint64
frameCount
,
ma_uint64
*
pFramesRead
);
MA_API
ma_result
ma_pulsewave_seek_to_pcm_frame
(
ma_pulsewave
*
pWaveform
,
ma_uint64
frameIndex
);
MA_API
ma_result
ma_pulsewave_set_amplitude
(
ma_pulsewave
*
pWaveform
,
double
amplitude
);
MA_API
ma_result
ma_pulsewave_set_frequency
(
ma_pulsewave
*
pWaveform
,
double
frequency
);
MA_API
ma_result
ma_pulsewave_set_sample_rate
(
ma_pulsewave
*
pWaveform
,
ma_uint32
sampleRate
);
MA_API
ma_result
ma_pulsewave_set_duty_cycle
(
ma_pulsewave
*
pWaveform
,
double
dutyCycle
);
typedef
enum
typedef
enum
{
{
ma_noise_type_white
,
ma_noise_type_white
,
...
...
miniaudio.h
View file @
d76b9a1a
/*
/*
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
miniaudio - v0.11.17 -
TBD
miniaudio - v0.11.17 -
2023-05-27
David Reid - mackron@gmail.com
David Reid - mackron@gmail.com
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment