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
6a53fb33
Commit
6a53fb33
authored
Feb 26, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/alsa: basic infrastructure for DSD_U16 and DSD_U32
parent
dcaf2998
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+20
-0
No files found.
src/output/plugins/AlsaOutputPlugin.cxx
View file @
6a53fb33
...
...
@@ -39,6 +39,11 @@
#define HAVE_ALSA_DSD
#endif
#if SND_LIB_VERSION >= 0x1001d
/* alsa-lib supports DSD_U32 since version 1.0.29 */
#define HAVE_ALSA_DSD_U32
#endif
static
const
char
default_device
[]
=
"default"
;
static
constexpr
unsigned
MPD_ALSA_BUFFER_TIME_US
=
500000
;
...
...
@@ -314,6 +319,21 @@ byteswap_bitformat(snd_pcm_format_t fmt)
return
SND_PCM_FORMAT_S24_3BE
;
case
SND_PCM_FORMAT_S32_BE
:
return
SND_PCM_FORMAT_S32_LE
;
#ifdef HAVE_ALSA_DSD_U32
case
SND_PCM_FORMAT_DSD_U16_LE
:
return
SND_PCM_FORMAT_DSD_U16_BE
;
case
SND_PCM_FORMAT_DSD_U16_BE
:
return
SND_PCM_FORMAT_DSD_U16_LE
;
case
SND_PCM_FORMAT_DSD_U32_LE
:
return
SND_PCM_FORMAT_DSD_U32_BE
;
case
SND_PCM_FORMAT_DSD_U32_BE
:
return
SND_PCM_FORMAT_DSD_U32_LE
;
#endif
default
:
return
SND_PCM_FORMAT_UNKNOWN
;
}
}
...
...
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