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
894b9cfd
Commit
894b9cfd
authored
Oct 07, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/dsdiff: add option "lsbitfirst"
Defaults to "no", which fixes the noise problems.
parent
7ecbb045
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
user.xml
doc/user.xml
+23
-0
dsdiff_decoder_plugin.c
src/decoder/dsdiff_decoder_plugin.c
+11
-1
No files found.
doc/user.xml
View file @
894b9cfd
...
@@ -742,6 +742,29 @@ cd mpd-version</programlisting>
...
@@ -742,6 +742,29 @@ cd mpd-version</programlisting>
<para>
<para>
Decodes DFF files containing DSDIFF data (e.g. SACD rips).
Decodes DFF files containing DSDIFF data (e.g. SACD rips).
</para>
</para>
<informaltable>
<tgroup
cols=
"2"
>
<thead>
<row>
<entry>
Setting
</entry>
<entry>
Description
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<varname>
lsbitfirst
</varname>
<parameter>
yes|no
</parameter>
</entry>
<entry>
Decode the least significant bit first. Default is
"no".
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
</section>
<section>
<section>
...
...
src/decoder/dsdiff_decoder_plugin.c
View file @
894b9cfd
...
@@ -54,6 +54,15 @@ struct dsdiff_metadata {
...
@@ -54,6 +54,15 @@ struct dsdiff_metadata {
unsigned
sample_rate
,
channels
;
unsigned
sample_rate
,
channels
;
};
};
static
bool
lsbitfirst
;
static
bool
dsdiff_init
(
const
struct
config_param
*
param
)
{
lsbitfirst
=
config_get_block_bool
(
param
,
"lsbitfirst"
,
false
);
return
true
;
}
static
bool
static
bool
dsdiff_id_equals
(
const
struct
dsdiff_id
*
id
,
const
char
*
s
)
dsdiff_id_equals
(
const
struct
dsdiff_id
*
id
,
const
char
*
s
)
{
{
...
@@ -356,7 +365,7 @@ dsdiff_decode_chunk(struct decoder *decoder, struct input_stream *is,
...
@@ -356,7 +365,7 @@ dsdiff_decode_chunk(struct decoder *decoder, struct input_stream *is,
for
(
unsigned
c
=
0
;
c
<
channels
;
++
c
)
for
(
unsigned
c
=
0
;
c
<
channels
;
++
c
)
dsd2pcm_translate
(
dsd2pcm
[
c
],
now_frames
,
dsd2pcm_translate
(
dsd2pcm
[
c
],
now_frames
,
buffer
+
c
,
channels
,
buffer
+
c
,
channels
,
true
,
f_buffer
+
c
,
channels
);
lsbitfirst
,
f_buffer
+
c
,
channels
);
/* convert to integer and submit to the decoder API */
/* convert to integer and submit to the decoder API */
...
@@ -485,6 +494,7 @@ static const char *const dsdiff_mime_types[] = {
...
@@ -485,6 +494,7 @@ static const char *const dsdiff_mime_types[] = {
const
struct
decoder_plugin
dsdiff_decoder_plugin
=
{
const
struct
decoder_plugin
dsdiff_decoder_plugin
=
{
.
name
=
"dsdiff"
,
.
name
=
"dsdiff"
,
.
init
=
dsdiff_init
,
.
stream_decode
=
dsdiff_stream_decode
,
.
stream_decode
=
dsdiff_stream_decode
,
.
stream_tag
=
dsdiff_stream_tag
,
.
stream_tag
=
dsdiff_stream_tag
,
.
suffixes
=
dsdiff_suffixes
,
.
suffixes
=
dsdiff_suffixes
,
...
...
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