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
d3f0b623
Commit
d3f0b623
authored
Feb 26, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/export: another #ifdef ENABLE_DSD fix
parent
6a53fb33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
PcmExport.cxx
src/pcm/PcmExport.cxx
+2
-1
No files found.
src/pcm/PcmExport.cxx
View file @
d3f0b623
...
...
@@ -36,7 +36,6 @@ PcmExport::Open(SampleFormat sample_format, unsigned _channels,
bool
_dop
,
bool
_shift8
,
bool
_pack
,
bool
_reverse_endian
)
{
assert
(
audio_valid_sample_format
(
sample_format
));
assert
(
!
_dop
||
audio_valid_channel_count
(
_channels
));
channels
=
_channels
;
alsa_channel_order
=
_alsa_channel_order
...
...
@@ -44,12 +43,14 @@ PcmExport::Open(SampleFormat sample_format, unsigned _channels,
:
SampleFormat
::
UNDEFINED
;
#ifdef ENABLE_DSD
assert
(
!
_dop
||
audio_valid_channel_count
(
_channels
));
dop
=
_dop
&&
sample_format
==
SampleFormat
::
DSD
;
if
(
dop
)
/* after the conversion to DoP, the DSD
samples are stuffed inside fake 24 bit samples */
sample_format
=
SampleFormat
::
S24_P32
;
#else
(
void
)
_channels
;
(
void
)
_dop
;
#endif
...
...
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