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
6e1a21a4
Commit
6e1a21a4
authored
May 28, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/osx: make several fields `const`
parent
80e83380
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
OSXOutputPlugin.cxx
src/output/plugins/OSXOutputPlugin.cxx
+9
-10
No files found.
src/output/plugins/OSXOutputPlugin.cxx
View file @
6e1a21a4
...
...
@@ -67,8 +67,8 @@ struct OSXOutput final : AudioOutput {
OSType
component_subtype
;
/* only applicable with kAudioUnitSubType_HALOutput */
const
char
*
device_name
;
const
char
*
channel_map
;
bool
hog_device
;
const
char
*
c
onst
c
hannel_map
;
const
bool
hog_device
;
bool
pause
;
#ifdef ENABLE_DSD
/**
...
...
@@ -76,7 +76,7 @@ struct OSXOutput final : AudioOutput {
*
* @see http://dsd-guide.com/dop-open-standard
*/
bool
dop_setting
;
const
bool
dop_setting
;
bool
dop_enabled
;
Manual
<
PcmExport
>
pcm_export
;
#endif
...
...
@@ -132,7 +132,12 @@ osx_output_test_default_device()
}
OSXOutput
::
OSXOutput
(
const
ConfigBlock
&
block
)
:
AudioOutput
(
FLAG_ENABLE_DISABLE
|
FLAG_PAUSE
)
:
AudioOutput
(
FLAG_ENABLE_DISABLE
|
FLAG_PAUSE
),
channel_map
(
block
.
GetBlockValue
(
"channel_map"
)),
hog_device
(
block
.
GetBlockValue
(
"hog_device"
,
false
))
#ifdef ENABLE_DSD
,
dop_setting
(
block
.
GetBlockValue
(
"dop"
,
false
))
#endif
{
const
char
*
device
=
block
.
GetBlockValue
(
"device"
);
...
...
@@ -149,12 +154,6 @@ OSXOutput::OSXOutput(const ConfigBlock &block)
/* XXX am I supposed to strdup() this? */
device_name
=
device
;
}
channel_map
=
block
.
GetBlockValue
(
"channel_map"
);
hog_device
=
block
.
GetBlockValue
(
"hog_device"
,
false
);
#ifdef ENABLE_DSD
dop_setting
=
block
.
GetBlockValue
(
"dop"
,
false
);
#endif
}
AudioOutput
*
...
...
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