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
7c3af4f5
Commit
7c3af4f5
authored
Apr 04, 2014
by
Jurgen Kramer
Committed by
Max Kellermann
Aug 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report bitrate for DSF and DSDIFF DSD decoders
parent
880ce080
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
NEWS
NEWS
+1
-0
DsdiffDecoderPlugin.cxx
src/decoder/plugins/DsdiffDecoderPlugin.cxx
+4
-2
DsfDecoderPlugin.cxx
src/decoder/plugins/DsfDecoderPlugin.cxx
+4
-2
No files found.
NEWS
View file @
7c3af4f5
...
...
@@ -39,6 +39,7 @@ ver 0.19 (not yet released)
- vorbis, flac, opus: honor DESCRIPTION= tag in Xiph-based files as a comment to the song
- audiofile: support scanning remote files
- audiofile: log libaudiofile errors
- dsdiff, dsf: report bit rate
- sndfile: support scanning remote files
- sndfile: support tags "comment", "album", "track", "genre"
- mp4v2: support playback of MP4 files.
...
...
src/decoder/plugins/DsdiffDecoderPlugin.cxx
View file @
7c3af4f5
...
...
@@ -355,7 +355,7 @@ bit_reverse_buffer(uint8_t *p, uint8_t *end)
*/
static
bool
dsdiff_decode_chunk
(
Decoder
&
decoder
,
InputStream
&
is
,
unsigned
channels
,
unsigned
channels
,
unsigned
sample_rate
,
uint64_t
chunk_size
)
{
uint8_t
buffer
[
8192
];
...
...
@@ -385,7 +385,8 @@ dsdiff_decode_chunk(Decoder &decoder, InputStream &is,
if
(
lsbitfirst
)
bit_reverse_buffer
(
buffer
,
buffer
+
nbytes
);
const
auto
cmd
=
decoder_data
(
decoder
,
is
,
buffer
,
nbytes
,
0
);
const
auto
cmd
=
decoder_data
(
decoder
,
is
,
buffer
,
nbytes
,
sample_rate
/
1000
);
switch
(
cmd
)
{
case
DecoderCommand
:
:
NONE
:
break
;
...
...
@@ -440,6 +441,7 @@ dsdiff_stream_decode(Decoder &decoder, InputStream &is)
if
(
chunk_header
.
id
.
Equals
(
"DSD "
))
{
if
(
!
dsdiff_decode_chunk
(
decoder
,
is
,
metadata
.
channels
,
metadata
.
sample_rate
,
chunk_size
))
break
;
}
else
{
...
...
src/decoder/plugins/DsfDecoderPlugin.cxx
View file @
7c3af4f5
...
...
@@ -219,7 +219,7 @@ dsf_to_pcm_order(uint8_t *dest, uint8_t *scratch, size_t nrbytes)
*/
static
bool
dsf_decode_chunk
(
Decoder
&
decoder
,
InputStream
&
is
,
unsigned
channels
,
unsigned
channels
,
unsigned
sample_rate
,
uint64_t
chunk_size
,
bool
bitreverse
)
{
...
...
@@ -256,7 +256,8 @@ dsf_decode_chunk(Decoder &decoder, InputStream &is,
dsf_to_pcm_order
(
buffer
,
dsf_scratch_buffer
,
nbytes
);
const
auto
cmd
=
decoder_data
(
decoder
,
is
,
buffer
,
nbytes
,
0
);
const
auto
cmd
=
decoder_data
(
decoder
,
is
,
buffer
,
nbytes
,
sample_rate
/
1000
);
switch
(
cmd
)
{
case
DecoderCommand
:
:
NONE
:
break
;
...
...
@@ -300,6 +301,7 @@ dsf_stream_decode(Decoder &decoder, InputStream &is)
decoder_initialized
(
decoder
,
audio_format
,
false
,
songtime
);
if
(
!
dsf_decode_chunk
(
decoder
,
is
,
metadata
.
channels
,
metadata
.
sample_rate
,
chunk_size
,
metadata
.
bitreverse
))
return
;
...
...
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