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
176d5a3c
Commit
176d5a3c
authored
Aug 09, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MAL_COINIT_VALUE.
parent
f894b83e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
mini_al.h
mini_al.h
+11
-2
No files found.
mini_al.h
View file @
176d5a3c
...
@@ -244,6 +244,9 @@
...
@@ -244,6 +244,9 @@
//
//
// #define MAL_DEBUT_OUTPUT
// #define MAL_DEBUT_OUTPUT
// Enable printf() debug output.
// Enable printf() debug output.
//
// #ifndef MAL_COINIT_VALUE
// Windows only. The value to pass to internal calls to CoInitializeEx(). Defaults to COINIT_MULTITHREADED.
#ifndef mini_al_h
#ifndef mini_al_h
#define mini_al_h
#define mini_al_h
...
@@ -3007,6 +3010,11 @@ static MAL_INLINE mal_bool32 mal_is_big_endian()
...
@@ -3007,6 +3010,11 @@ static MAL_INLINE mal_bool32 mal_is_big_endian()
}
}
#ifndef MAL_COINIT_VALUE
#define MAL_COINIT_VALUE 0 /* 0 = COINIT_MULTITHREADED*/
#endif
#ifndef MAL_PI
#ifndef MAL_PI
#define MAL_PI 3.14159265358979323846264f
#define MAL_PI 3.14159265358979323846264f
...
@@ -19173,7 +19181,7 @@ mal_thread_result MAL_THREADCALL mal_worker_thread(void* pData)
...
@@ -19173,7 +19181,7 @@ mal_thread_result MAL_THREADCALL mal_worker_thread(void* pData)
mal_assert(pDevice != NULL);
mal_assert(pDevice != NULL);
#ifdef MAL_WIN32
#ifdef MAL_WIN32
mal_CoInitializeEx(pDevice->pContext, NULL,
0); // 0 = COINIT_MULTITHREADED
mal_CoInitializeEx(pDevice->pContext, NULL,
MAL_COINIT_VALUE);
#endif
#endif
#if 1
#if 1
...
@@ -19353,7 +19361,7 @@ mal_result mal_context_init_backend_apis__win32(mal_context* pContext)
...
@@ -19353,7 +19361,7 @@ mal_result mal_context_init_backend_apis__win32(mal_context* pContext)
pContext->win32.RegQueryValueExA = (mal_proc)mal_dlsym(pContext->win32.hAdvapi32DLL, "RegQueryValueExA");
pContext->win32.RegQueryValueExA = (mal_proc)mal_dlsym(pContext->win32.hAdvapi32DLL, "RegQueryValueExA");
#endif
#endif
mal_CoInitializeEx(pContext, NULL,
0); // 0 = COINIT_MULTITHREADED
mal_CoInitializeEx(pContext, NULL,
MAL_COINIT_VALUE);
return MAL_SUCCESS;
return MAL_SUCCESS;
}
}
#else
#else
...
@@ -27385,6 +27393,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSineWave, mal_uint64 count, float*
...
@@ -27385,6 +27393,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSineWave, mal_uint64 count, float*
//
//
// v0.8.5-rc - 2018-xx-xx
// v0.8.5-rc - 2018-xx-xx
// - Fix a bug where an incorrect number of samples is returned from sinc resampling.
// - Fix a bug where an incorrect number of samples is returned from sinc resampling.
// - Add support for setting the value to be passed to internal calls to CoInitializeEx().
//
//
// v0.8.4 - 2018-08-06
// v0.8.4 - 2018-08-06
// - Add sndio backend for OpenBSD.
// - Add sndio backend for OpenBSD.
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