Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d3f097c7
Commit
d3f097c7
authored
Mar 06, 2018
by
Christian Kröner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Honor 'device "system"' setting for OSX output
parent
a3d1b107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
OSXOutputPlugin.cxx
src/output/plugins/OSXOutputPlugin.cxx
+17
-7
No files found.
src/output/plugins/OSXOutputPlugin.cxx
View file @
d3f097c7
...
...
@@ -138,15 +138,25 @@ AudioOutput *
OSXOutput
::
Create
(
EventLoop
&
,
const
ConfigBlock
&
block
)
{
OSXOutput
*
oo
=
new
OSXOutput
(
block
);
AudioObjectPropertyAddress
aopa
=
{
kAudioHardwarePropertyDefaultOutputDevice
,
kAudioObjectPropertyScopeOutput
,
kAudioObjectPropertyElementMaster
};
AudioObjectPropertyAddress
aopa
;
AudioDeviceID
dev_id
=
kAudioDeviceUnknown
;
UInt32
dev_id_size
=
sizeof
(
dev_id
);
if
(
oo
->
component_subtype
==
kAudioUnitSubType_SystemOutput
)
// get system output dev_id if configured
aopa
=
{
kAudioHardwarePropertyDefaultSystemOutputDevice
,
kAudioObjectPropertyScopeOutput
,
kAudioObjectPropertyElementMaster
};
else
// fallback to default device initially (can still be changed by osx_output_set_device)
aopa
=
{
kAudioHardwarePropertyDefaultOutputDevice
,
kAudioObjectPropertyScopeOutput
,
kAudioObjectPropertyElementMaster
};
AudioObjectGetPropertyData
(
kAudioObjectSystemObject
,
&
aopa
,
0
,
...
...
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