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
3932e62f
Commit
3932e62f
authored
Mar 15, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/test_pcm: replace 256 with prime number
Use some odd number that will expose problems with remaining samples after optimized vector operations.
parent
729304ae
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
test_pcm_channels.cxx
test/test_pcm_channels.cxx
+2
-2
test_pcm_dither.cxx
test/test_pcm_dither.cxx
+2
-2
test_pcm_format.cxx
test/test_pcm_format.cxx
+4
-4
test_pcm_mix.cxx
test/test_pcm_mix.cxx
+1
-1
test_pcm_pack.cxx
test/test_pcm_pack.cxx
+2
-2
test_pcm_volume.cxx
test/test_pcm_volume.cxx
+2
-2
No files found.
test/test_pcm_channels.cxx
View file @
3932e62f
...
...
@@ -27,7 +27,7 @@
void
PcmChannelsTest
::
TestChannels16
()
{
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int16_t
,
N
*
2
>
();
PcmBuffer
buffer
;
...
...
@@ -55,7 +55,7 @@ PcmChannelsTest::TestChannels16()
void
PcmChannelsTest
::
TestChannels32
()
{
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int32_t
,
N
*
2
>
();
PcmBuffer
buffer
;
...
...
test/test_pcm_dither.cxx
View file @
3932e62f
...
...
@@ -24,7 +24,7 @@
void
PcmDitherTest
::
TestDither24
()
{
constexpr
unsigned
N
=
256
;
constexpr
unsigned
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int32_t
,
N
>
(
RandomInt24
());
int16_t
dest
[
N
];
...
...
@@ -40,7 +40,7 @@ PcmDitherTest::TestDither24()
void
PcmDitherTest
::
TestDither32
()
{
constexpr
unsigned
N
=
256
;
constexpr
unsigned
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int32_t
,
N
>
();
int16_t
dest
[
N
];
...
...
test/test_pcm_format.cxx
View file @
3932e62f
...
...
@@ -29,7 +29,7 @@
void
PcmFormatTest
::
TestFormat8to16
()
{
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int8_t
,
N
>
();
PcmBuffer
buffer
;
...
...
@@ -45,7 +45,7 @@ PcmFormatTest::TestFormat8to16()
void
PcmFormatTest
::
TestFormat16to24
()
{
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int16_t
,
N
>
();
PcmBuffer
buffer
;
...
...
@@ -60,7 +60,7 @@ PcmFormatTest::TestFormat16to24()
void
PcmFormatTest
::
TestFormat16to32
()
{
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int16_t
,
N
>
();
PcmBuffer
buffer
;
...
...
@@ -75,7 +75,7 @@ PcmFormatTest::TestFormat16to32()
void
PcmFormatTest
::
TestFormatFloat
()
{
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int16_t
,
N
>
();
PcmBuffer
buffer1
,
buffer2
;
...
...
test/test_pcm_mix.cxx
View file @
3932e62f
...
...
@@ -27,7 +27,7 @@ template<typename T, SampleFormat format, typename G=RandomInt<T>>
static
void
TestPcmMix
(
G
g
=
G
())
{
constexpr
unsigned
N
=
256
;
constexpr
unsigned
N
=
509
;
const
auto
src1
=
TestDataBuffer
<
T
,
N
>
(
g
);
const
auto
src2
=
TestDataBuffer
<
T
,
N
>
(
g
);
...
...
test/test_pcm_pack.cxx
View file @
3932e62f
...
...
@@ -25,7 +25,7 @@
void
PcmPackTest
::
TestPack24
()
{
constexpr
unsigned
N
=
256
;
constexpr
unsigned
N
=
509
;
const
auto
src
=
TestDataBuffer
<
int32_t
,
N
>
(
RandomInt24
());
uint8_t
dest
[
N
*
3
];
...
...
@@ -49,7 +49,7 @@ PcmPackTest::TestPack24()
void
PcmPackTest
::
TestUnpack24
()
{
constexpr
unsigned
N
=
256
;
constexpr
unsigned
N
=
509
;
const
auto
src
=
TestDataBuffer
<
uint8_t
,
N
*
3
>
();
int32_t
dest
[
N
];
...
...
test/test_pcm_volume.cxx
View file @
3932e62f
...
...
@@ -39,7 +39,7 @@ TestVolume(G g=G())
PcmVolume
pv
;
CPPUNIT_ASSERT
(
pv
.
Open
(
F
,
IgnoreError
()));
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
static
value_type
zero
[
N
];
const
auto
_src
=
TestDataBuffer
<
value_type
,
N
>
(
g
);
const
ConstBuffer
<
void
>
src
(
_src
,
sizeof
(
_src
));
...
...
@@ -98,7 +98,7 @@ PcmVolumeTest::TestVolumeFloat()
PcmVolume
pv
;
CPPUNIT_ASSERT
(
pv
.
Open
(
SampleFormat
::
FLOAT
,
IgnoreError
()));
constexpr
size_t
N
=
256
;
constexpr
size_t
N
=
509
;
static
float
zero
[
N
];
const
auto
_src
=
TestDataBuffer
<
float
,
N
>
(
RandomFloat
());
const
ConstBuffer
<
void
>
src
(
_src
,
sizeof
(
_src
));
...
...
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