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
9c6a4505
Commit
9c6a4505
authored
Mar 21, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio_format: remove the format SAMPLE_FORMAT_DSD_LSBFIRST
This format is unused since the DSDIFF decoder plugin now reverses the bit order.
parent
238c3ada
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2 additions
and
34 deletions
+2
-34
audio_format.c
src/audio_format.c
+0
-3
audio_format.h
src/audio_format.h
+0
-8
audio_parser.c
src/audio_parser.c
+0
-6
flac_pcm.c
src/decoder/flac_pcm.c
+0
-1
alsa_output_plugin.c
src/output/alsa_output_plugin.c
+0
-1
oss_output_plugin.c
src/output/oss_output_plugin.c
+0
-1
pcm_byteswap.c
src/pcm_byteswap.c
+0
-1
pcm_convert.c
src/pcm_convert.c
+2
-6
pcm_format.c
src/pcm_format.c
+0
-4
pcm_mix.c
src/pcm_mix.c
+0
-2
pcm_volume.c
src/pcm_volume.c
+0
-1
No files found.
src/audio_format.c
View file @
9c6a4505
...
...
@@ -75,9 +75,6 @@ sample_format_to_string(enum sample_format format)
case
SAMPLE_FORMAT_DSD
:
return
"dsd"
;
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
return
"dsdl"
;
case
SAMPLE_FORMAT_DSD_OVER_USB
:
return
"dsdusb"
;
}
...
...
src/audio_format.h
View file @
9c6a4505
...
...
@@ -57,12 +57,6 @@ enum sample_format {
SAMPLE_FORMAT_DSD
,
/**
* Same as #SAMPLE_FORMAT_DSD, but the least significant bit
* comes first.
*/
SAMPLE_FORMAT_DSD_LSBFIRST
,
/**
* DSD packed in 24 bit samples (no padding), according to the
* dCS suggested standard:
* http://www.dcsltd.co.uk/page/assets/DSDoverUSB.pdf
...
...
@@ -195,7 +189,6 @@ audio_valid_sample_format(enum sample_format format)
case
SAMPLE_FORMAT_S32
:
case
SAMPLE_FORMAT_FLOAT
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
return
true
;
...
...
@@ -275,7 +268,6 @@ sample_format_size(enum sample_format format)
return
4
;
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
/* each frame has 8 samples per channel */
return
1
;
...
...
src/audio_parser.c
View file @
9c6a4505
...
...
@@ -94,14 +94,8 @@ parse_sample_format(const char *src, bool mask,
}
if
(
memcmp
(
src
,
"dsd"
,
3
)
==
0
)
{
if
(
src
[
3
]
==
'l'
)
{
*
sample_format_r
=
SAMPLE_FORMAT_DSD_LSBFIRST
;
*
endptr_r
=
src
+
4
;
}
else
{
*
sample_format_r
=
SAMPLE_FORMAT_DSD
;
*
endptr_r
=
src
+
3
;
}
return
true
;
}
...
...
src/decoder/flac_pcm.c
View file @
9c6a4505
...
...
@@ -104,7 +104,6 @@ flac_convert(void *dest,
case
SAMPLE_FORMAT_S24
:
case
SAMPLE_FORMAT_FLOAT
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
case
SAMPLE_FORMAT_UNDEFINED
:
/* unreachable */
...
...
src/output/alsa_output_plugin.c
View file @
9c6a4505
...
...
@@ -195,7 +195,6 @@ get_bitformat(enum sample_format sample_format)
switch
(
sample_format
)
{
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
return
SND_PCM_FORMAT_UNKNOWN
;
...
...
src/output/oss_output_plugin.c
View file @
9c6a4505
...
...
@@ -397,7 +397,6 @@ sample_format_to_oss(enum sample_format format)
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_FLOAT
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
return
AFMT_QUERY
;
...
...
src/pcm_byteswap.c
View file @
9c6a4505
...
...
@@ -76,7 +76,6 @@ pcm_byteswap(struct pcm_buffer *buffer, enum sample_format format,
case
SAMPLE_FORMAT_S8
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
return
src
;
case
SAMPLE_FORMAT_S16
:
...
...
src/pcm_convert.c
View file @
9c6a4505
...
...
@@ -81,7 +81,6 @@ pcm_convert_channels(struct pcm_buffer *buffer, enum sample_format format,
case
SAMPLE_FORMAT_S24
:
case
SAMPLE_FORMAT_FLOAT
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
g_set_error
(
error_r
,
pcm_convert_quark
(),
0
,
"Channel conversion not implemented for format '%s'"
,
...
...
@@ -408,14 +407,11 @@ pcm_convert(struct pcm_convert_state *state,
}
struct
audio_format
float_format
;
if
(
src_format
->
format
==
SAMPLE_FORMAT_DSD
||
src_format
->
format
==
SAMPLE_FORMAT_DSD_LSBFIRST
)
{
if
(
src_format
->
format
==
SAMPLE_FORMAT_DSD
)
{
size_t
f_size
;
const
bool
lsbfirst
=
src_format
->
format
==
SAMPLE_FORMAT_DSD_LSBFIRST
;
const
float
*
f
=
pcm_dsd_to_float
(
&
state
->
dsd
,
src_format
->
channels
,
lsbfirst
,
src
,
src_size
,
false
,
src
,
src_size
,
&
f_size
);
if
(
f
==
NULL
)
{
g_set_error_literal
(
error_r
,
pcm_convert_quark
(),
0
,
...
...
src/pcm_format.c
View file @
9c6a4505
...
...
@@ -148,7 +148,6 @@ pcm_convert_to_16(struct pcm_buffer *buffer, struct pcm_dither *dither,
switch
(
src_format
)
{
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
break
;
...
...
@@ -269,7 +268,6 @@ pcm_convert_to_24(struct pcm_buffer *buffer,
switch
(
src_format
)
{
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
break
;
...
...
@@ -396,7 +394,6 @@ pcm_convert_to_32(struct pcm_buffer *buffer,
switch
(
src_format
)
{
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
break
;
...
...
@@ -534,7 +531,6 @@ pcm_convert_to_float(struct pcm_buffer *buffer,
switch
(
src_format
)
{
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
break
;
...
...
src/pcm_mix.c
View file @
9c6a4505
...
...
@@ -121,7 +121,6 @@ pcm_add_vol(void *buffer1, const void *buffer2, size_t size,
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_S24
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
/* not implemented */
return
false
;
...
...
@@ -233,7 +232,6 @@ pcm_add(void *buffer1, const void *buffer2, size_t size,
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_S24
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
/* not implemented */
return
false
;
...
...
src/pcm_volume.c
View file @
9c6a4505
...
...
@@ -160,7 +160,6 @@ pcm_volume(void *buffer, size_t length,
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_S24
:
case
SAMPLE_FORMAT_DSD
:
case
SAMPLE_FORMAT_DSD_LSBFIRST
:
case
SAMPLE_FORMAT_DSD_OVER_USB
:
/* not implemented */
return
false
;
...
...
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