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
5628dcf4
Commit
5628dcf4
authored
Feb 27, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/export: add #ifdef ENABLE_DSD to struct Params
parent
fb4f02cd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
PcmExport.hxx
src/pcm/PcmExport.hxx
+2
-0
test_pcm_all.hxx
test/test_pcm_all.hxx
+4
-0
test_pcm_export.cxx
test/test_pcm_export.cxx
+4
-0
No files found.
src/pcm/PcmExport.hxx
View file @
5628dcf4
...
...
@@ -35,8 +35,10 @@ template<typename T> struct ConstBuffer;
struct
PcmExport
{
struct
Params
{
bool
alsa_channel_order
=
false
;
#ifdef ENABLE_DSD
bool
dsd_u32
=
false
;
bool
dop
=
false
;
#endif
bool
shift8
=
false
;
bool
pack24
=
false
;
bool
reverse_endian
=
false
;
...
...
test/test_pcm_all.hxx
View file @
5628dcf4
...
...
@@ -125,8 +125,10 @@ class PcmExportTest : public CppUnit::TestFixture {
CPPUNIT_TEST
(
TestShift8
);
CPPUNIT_TEST
(
TestPack24
);
CPPUNIT_TEST
(
TestReverseEndian
);
#ifdef ENABLE_DSD
CPPUNIT_TEST
(
TestDsdU32
);
CPPUNIT_TEST
(
TestDop
);
#endif
CPPUNIT_TEST
(
TestAlsaChannelOrder
);
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -134,8 +136,10 @@ public:
void
TestShift8
();
void
TestPack24
();
void
TestReverseEndian
();
#ifdef ENABLE_DSD
void
TestDsdU32
();
void
TestDop
();
#endif
void
TestAlsaChannelOrder
();
};
...
...
test/test_pcm_export.cxx
View file @
5628dcf4
...
...
@@ -115,6 +115,8 @@ PcmExportTest::TestReverseEndian()
CPPUNIT_ASSERT
(
memcmp
(
dest
.
data
,
expected4
,
dest
.
size
)
==
0
);
}
#ifdef ENABLE_DSD
void
PcmExportTest
::
TestDsdU32
()
{
...
...
@@ -165,6 +167,8 @@ PcmExportTest::TestDop()
CPPUNIT_ASSERT
(
memcmp
(
dest
.
data
,
expected
,
dest
.
size
)
==
0
);
}
#endif
template
<
SampleFormat
F
,
class
Traits
=
SampleTraits
<
F
>>
static
void
TestAlsaChannelOrder51
()
...
...
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