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
dd26ad9d
Commit
dd26ad9d
authored
Oct 22, 2016
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the Android build and fix a few typos.
parent
7fb3a304
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
mini_al.h
mini_al.h
+6
-3
No files found.
mini_al.h
View file @
dd26ad9d
...
@@ -149,9 +149,12 @@ extern "C" {
...
@@ -149,9 +149,12 @@ extern "C" {
#endif
#endif
#else
#else
#define MAL_POSIX
#define MAL_POSIX
#if !defined(MAL_NO_ALSA) && defined(__linux__)
#if !defined(MAL_NO_ALSA) && defined(__linux__)
&& !defined(__ANDROID__)
#define MAL_ENABLE_ALSA
#define MAL_ENABLE_ALSA
#endif
#endif
#ifdef __ANDROID__
#define MAL_ENABLE_OPENSLES
#endif
#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.
#endif
#endif
...
@@ -469,7 +472,7 @@ void mal_device_set_stop_callback(mal_device* pDevice, mal_stop_proc proc);
...
@@ -469,7 +472,7 @@ void mal_device_set_stop_callback(mal_device* pDevice, mal_stop_proc proc);
// recording.
// recording.
//
//
// For a playback device, this will retrieve an initial chunk of audio data from the client before
// For a playback device, this will retrieve an initial chunk of audio data from the client before
// returning. Th
is
reason for this is to ensure there is valid audio data in the buffer, which needs
// returning. Th
e
reason for this is to ensure there is valid audio data in the buffer, which needs
// to be done _before_ the device starts playing back audio.
// to be done _before_ the device starts playing back audio.
//
//
// Return Value:
// Return Value:
...
@@ -564,7 +567,7 @@ mal_uint32 mal_device_get_available_rewind_amount(mal_device* pDevice);
...
@@ -564,7 +567,7 @@ mal_uint32 mal_device_get_available_rewind_amount(mal_device* pDevice);
// This currently waits on a mutex for thread-safety, but should otherwise be fairly efficient.
// This currently waits on a mutex for thread-safety, but should otherwise be fairly efficient.
mal_uint32
mal_device_rewind
(
mal_device
*
pDevice
,
mal_uint32
framesToRewind
);
mal_uint32
mal_device_rewind
(
mal_device
*
pDevice
,
mal_uint32
framesToRewind
);
// Retrieves the size of the in bytes for the given device.
// Retrieves the size of the
buffer
in bytes for the given device.
//
//
// Thread Safety: SAFE
// Thread Safety: SAFE
// This is calculated from constant values which are set at initialization time and never change.
// This is calculated from constant values which are set at initialization time and never change.
...
...
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