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
8397196f
Commit
8397196f
authored
Sep 26, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/alsa: change a few "dsd" to "dop"
parent
85476114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+4
-4
No files found.
src/output/plugins/AlsaOutputPlugin.cxx
View file @
8397196f
...
@@ -636,7 +636,7 @@ error:
...
@@ -636,7 +636,7 @@ error:
}
}
static
bool
static
bool
alsa_setup_d
sd
(
AlsaOutput
*
ad
,
const
AudioFormat
audio_format
,
alsa_setup_d
op
(
AlsaOutput
*
ad
,
const
AudioFormat
audio_format
,
bool
*
shift8_r
,
bool
*
packed_r
,
bool
*
reverse_endian_r
,
bool
*
shift8_r
,
bool
*
packed_r
,
bool
*
reverse_endian_r
,
Error
&
error
)
Error
&
error
)
{
{
...
@@ -677,7 +677,7 @@ alsa_setup_dsd(AlsaOutput *ad, const AudioFormat audio_format,
...
@@ -677,7 +677,7 @@ alsa_setup_dsd(AlsaOutput *ad, const AudioFormat audio_format,
}
}
static
bool
static
bool
alsa_setup_or_d
sd
(
AlsaOutput
*
ad
,
AudioFormat
&
audio_format
,
alsa_setup_or_d
op
(
AlsaOutput
*
ad
,
AudioFormat
&
audio_format
,
Error
&
error
)
Error
&
error
)
{
{
bool
shift8
=
false
,
packed
,
reverse_endian
;
bool
shift8
=
false
,
packed
,
reverse_endian
;
...
@@ -685,7 +685,7 @@ alsa_setup_or_dsd(AlsaOutput *ad, AudioFormat &audio_format,
...
@@ -685,7 +685,7 @@ alsa_setup_or_dsd(AlsaOutput *ad, AudioFormat &audio_format,
const
bool
dop
=
ad
->
dop
&&
const
bool
dop
=
ad
->
dop
&&
audio_format
.
format
==
SampleFormat
::
DSD
;
audio_format
.
format
==
SampleFormat
::
DSD
;
const
bool
success
=
dop
const
bool
success
=
dop
?
alsa_setup_d
sd
(
ad
,
audio_format
,
?
alsa_setup_d
op
(
ad
,
audio_format
,
&
shift8
,
&
packed
,
&
reverse_endian
,
&
shift8
,
&
packed
,
&
reverse_endian
,
error
)
error
)
:
alsa_setup
(
ad
,
audio_format
,
&
packed
,
&
reverse_endian
,
:
alsa_setup
(
ad
,
audio_format
,
&
packed
,
&
reverse_endian
,
...
@@ -717,7 +717,7 @@ alsa_open(AudioOutput *ao, AudioFormat &audio_format, Error &error)
...
@@ -717,7 +717,7 @@ alsa_open(AudioOutput *ao, AudioFormat &audio_format, Error &error)
snd_pcm_name
(
ad
->
pcm
),
snd_pcm_name
(
ad
->
pcm
),
snd_pcm_type_name
(
snd_pcm_type
(
ad
->
pcm
)));
snd_pcm_type_name
(
snd_pcm_type
(
ad
->
pcm
)));
if
(
!
alsa_setup_or_d
sd
(
ad
,
audio_format
,
error
))
{
if
(
!
alsa_setup_or_d
op
(
ad
,
audio_format
,
error
))
{
snd_pcm_close
(
ad
->
pcm
);
snd_pcm_close
(
ad
->
pcm
);
return
false
;
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