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
fa822646
Commit
fa822646
authored
Aug 23, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/PcmDsd: remove "lsbfirst" support
Unused. Bit reversing is done in the decoder.
parent
ae467aa4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
PcmConvert.cxx
src/pcm/PcmConvert.cxx
+1
-2
PcmDsd.cxx
src/pcm/PcmDsd.cxx
+2
-3
PcmDsd.hxx
src/pcm/PcmDsd.hxx
+1
-1
No files found.
src/pcm/PcmConvert.cxx
View file @
fa822646
...
...
@@ -124,8 +124,7 @@ PcmConvert::Convert(ConstBuffer<void> buffer, Error &error)
if
(
format
.
format
==
SampleFormat
::
DSD
)
{
auto
s
=
ConstBuffer
<
uint8_t
>::
FromVoid
(
buffer
);
auto
d
=
dsd
.
ToFloat
(
format
.
channels
,
false
,
s
);
auto
d
=
dsd
.
ToFloat
(
format
.
channels
,
s
);
if
(
d
.
IsNull
())
{
error
.
Set
(
pcm_domain
,
"DSD to PCM conversion failed"
);
...
...
src/pcm/PcmDsd.cxx
View file @
fa822646
...
...
@@ -48,8 +48,7 @@ PcmDsd::Reset()
}
ConstBuffer
<
float
>
PcmDsd
::
ToFloat
(
unsigned
channels
,
bool
lsbfirst
,
ConstBuffer
<
uint8_t
>
src
)
PcmDsd
::
ToFloat
(
unsigned
channels
,
ConstBuffer
<
uint8_t
>
src
)
{
assert
(
!
src
.
IsNull
());
assert
(
!
src
.
IsEmpty
());
...
...
@@ -72,7 +71,7 @@ PcmDsd::ToFloat(unsigned channels, bool lsbfirst,
dsd2pcm_translate
(
dsd2pcm
[
c
],
num_frames
,
src
.
data
+
c
,
channels
,
lsbfirst
,
dest
+
c
,
channels
);
false
,
dest
+
c
,
channels
);
}
return
{
dest
,
num_samples
};
...
...
src/pcm/PcmDsd.hxx
View file @
fa822646
...
...
@@ -41,7 +41,7 @@ public:
void
Reset
();
ConstBuffer
<
float
>
ToFloat
(
unsigned
channels
,
bool
lsbfirst
,
ConstBuffer
<
float
>
ToFloat
(
unsigned
channels
,
ConstBuffer
<
uint8_t
>
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