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
c097eec8
Commit
c097eec8
authored
Jun 19, 2017
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare for 0.3 release.
parent
1e501fc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
mini_al.h
mini_al.h
+13
-8
No files found.
mini_al.h
View file @
c097eec8
// Mini audio library. Public domain. See "unlicense" statement at the end of this file.
// Mini audio library. Public domain. See "unlicense" statement at the end of this file.
// mini_al - v0.3 -
TBD
// mini_al - v0.3 -
2017-06-19
//
//
// David Reid -
mackron
@gmail.com
// David Reid -
davidreidsoftware
@gmail.com
// ABOUT
// ABOUT
// =====
// =====
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
//
//
// Supported Backends:
// Supported Backends:
// - DirectSound
// - DirectSound
// - WASAPI
(Unstable)
// - WASAPI
// - ALSA
// - ALSA
// - OpenSL|ES / Android
(Unstable)
// - OpenSL|ES / Android
// - OpenAL
(Unstable)
// - OpenAL
// - Null (Silence)
// - Null (Silence)
// - ... and more in the future.
// - ... and more in the future.
// - Core Audio (OSX, iOS)
// - Core Audio (OSX, iOS)
...
@@ -169,7 +169,6 @@ extern "C" {
...
@@ -169,7 +169,6 @@ extern "C" {
#else
#else
#define MAL_POSIX
#define MAL_POSIX
#include <pthread.h> // Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types.
#include <pthread.h> // Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types.
#include <wchar.h> // For the wchar_t type in mal_device_id.
#ifdef __linux__
#ifdef __linux__
#define MAL_LINUX
#define MAL_LINUX
...
@@ -354,10 +353,16 @@ typedef enum
...
@@ -354,10 +353,16 @@ typedef enum
typedef
union
typedef
union
{
{
#ifdef MAL_ANDROIND
mal_uint32
opensl
;
// OpenSL|ES uses a 32-bit unsigned integer for identification.
mal_uint32
opensl
;
// OpenSL|ES uses a 32-bit unsigned integer for identification.
#endif
#ifdef MAL_LINUX
char
alsa
[
32
];
// ALSA uses a name string for identification.
char
alsa
[
32
];
// ALSA uses a name string for identification.
#endif
#ifdef MAL_WIN32
mal_uint8
dsound
[
16
];
// DirectSound uses a GUID for identification.
mal_uint8
dsound
[
16
];
// DirectSound uses a GUID for identification.
wchar_t
wasapi
[
64
];
// WASAPI uses a wchar_t string for identification which is also annoyingly long...
wchar_t
wasapi
[
64
];
// WASAPI uses a wchar_t string for identification which is also annoyingly long...
#endif
char
openal
[
256
];
// OpenAL seems to use human-readable device names as the ID.
char
openal
[
256
];
// OpenAL seems to use human-readable device names as the ID.
}
mal_device_id
;
}
mal_device_id
;
...
@@ -399,7 +404,7 @@ typedef struct
...
@@ -399,7 +404,7 @@ typedef struct
mal_format
formatOut
;
mal_format
formatOut
;
mal_uint32
channels
;
mal_uint32
channels
;
mal_src_algorithm
algorithm
;
mal_src_algorithm
algorithm
;
mal_uint32
cacheSizeInFrames
;
//
<
The number of frames to read from the client at a time.
mal_uint32
cacheSizeInFrames
;
// The number of frames to read from the client at a time.
}
mal_src_config
;
}
mal_src_config
;
struct
mal_src
struct
mal_src
...
@@ -7664,7 +7669,7 @@ void mal_pcm_f32_to_s32(int* pOut, const float* pIn, unsigned int count)
...
@@ -7664,7 +7669,7 @@ void mal_pcm_f32_to_s32(int* pOut, const float* pIn, unsigned int count)
// REVISION HISTORY
// REVISION HISTORY
// ================
// ================
//
//
// v0.3 -
TBD
// v0.3 -
2017-06-19
// - API CHANGE: Introduced the notion of a context. The context is the highest level object and is required for
// - API CHANGE: Introduced the notion of a context. The context is the highest level object and is required for
// enumerating and creating devices. Now, applications must first create a context, and then use that to
// enumerating and creating devices. Now, applications must first create a context, and then use that to
// enumerate and create devices. The reason for this change is to ensure device enumeration and creation is
// enumerate and create devices. The reason for this change is to ensure device enumeration and creation is
...
...
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