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
1cb4d9d1
Commit
1cb4d9d1
authored
Dec 30, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: Always fail if exclusive mode is requested.
parent
b756bd67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
mini_al.h
mini_al.h
+14
-1
No files found.
mini_al.h
View file @
1cb4d9d1
...
@@ -2238,6 +2238,10 @@ mal_result mal_context_get_device_info(mal_context* pContext, mal_device_type ty
...
@@ -2238,6 +2238,10 @@ mal_result mal_context_get_device_info(mal_context* pContext, mal_device_type ty
// operating system may need to present the user with a message asking for permissions. Please refer
// operating system may need to present the user with a message asking for permissions. Please refer
// to the official documentation for ActivateAudioInterfaceAsync() for more information.
// to the official documentation for ActivateAudioInterfaceAsync() for more information.
//
//
// ALSA Specific: When initializing the default device, requesting shared mode will try using the
// "dmix" device for playback and the "dsnoop" device for capture. If these fail it will try falling
// back to the "hw" device.
//
// Return Value:
// Return Value:
// MAL_SUCCESS if successful; any other error code otherwise.
// MAL_SUCCESS if successful; any other error code otherwise.
//
//
...
@@ -12140,7 +12144,11 @@ void mal_context_get_device_info_source_callback__pulse(mal_pa_context* pPulseCo
...
@@ -12140,7 +12144,11 @@ void mal_context_get_device_info_source_callback__pulse(mal_pa_context* pPulseCo
mal_result mal_context_get_device_info__pulse(mal_context* pContext, mal_device_type deviceType, const mal_device_id* pDeviceID, mal_share_mode shareMode, mal_device_info* pDeviceInfo)
mal_result mal_context_get_device_info__pulse(mal_context* pContext, mal_device_type deviceType, const mal_device_id* pDeviceID, mal_share_mode shareMode, mal_device_info* pDeviceInfo)
{
{
mal_assert(pContext != NULL);
mal_assert(pContext != NULL);
(void)shareMode;
/* No exclusive mode with the PulseAudio backend. */
if (shareMode == mal_share_mode_exclusive) {
return MAL_SHARE_MODE_NOT_SUPPORTED;
}
mal_result result = MAL_SUCCESS;
mal_result result = MAL_SUCCESS;
...
@@ -12390,6 +12398,11 @@ mal_result mal_device_init__pulse(mal_context* pContext, mal_device_type type, c
...
@@ -12390,6 +12398,11 @@ mal_result mal_device_init__pulse(mal_context* pContext, mal_device_type type, c
mal_result result = MAL_SUCCESS;
mal_result result = MAL_SUCCESS;
int error = 0;
int error = 0;
/* No exclusive mode with the PulseAudio backend. */
if (pConfig->shareMode == mal_share_mode_exclusive) {
return MAL_SHARE_MODE_NOT_SUPPORTED;
}
const char* dev = NULL;
const char* dev = NULL;
if (pDeviceID != NULL) {
if (pDeviceID != NULL) {
dev = pDeviceID->pulse;
dev = pDeviceID->pulse;
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