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
6979be00
Commit
6979be00
authored
Apr 21, 2020
by
Rosen Penev
Committed by
Max Kellermann
Apr 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clang-tidy] use auto
Found with modernize-use-auto. Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
71792ffd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AudiofileDecoderPlugin.cxx
src/decoder/plugins/AudiofileDecoderPlugin.cxx
+1
-1
PulseMixerPlugin.cxx
src/mixer/plugins/PulseMixerPlugin.cxx
+2
-2
No files found.
src/decoder/plugins/AudiofileDecoderPlugin.cxx
View file @
6979be00
...
...
@@ -129,7 +129,7 @@ audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset _offset,
static
AFvirtualfile
*
setup_virtual_fops
(
AudioFileInputStream
&
afis
)
noexcept
{
AFvirtualfile
*
vf
=
(
AFvirtualfile
*
)
malloc
(
sizeof
(
*
vf
));
auto
vf
=
(
AFvirtualfile
*
)
malloc
(
sizeof
(
AFvirtualfile
));
vf
->
closure
=
&
afis
;
vf
->
write
=
nullptr
;
vf
->
read
=
audiofile_file_read
;
...
...
src/mixer/plugins/PulseMixerPlugin.cxx
View file @
6979be00
...
...
@@ -214,7 +214,7 @@ PulseMixer::GetVolume()
int
PulseMixer
::
GetVolumeInternal
()
{
pa_volume_t
max_pa_volume
=
pa_volume_t
(
volume_scale_factor
*
PA_VOLUME_NORM
);
auto
max_pa_volume
=
pa_volume_t
(
volume_scale_factor
*
PA_VOLUME_NORM
);
return
online
?
(
int
)((
100
*
(
pa_cvolume_avg
(
&
volume
)
+
1
))
/
max_pa_volume
)
:
-
1
;
...
...
@@ -228,7 +228,7 @@ PulseMixer::SetVolume(unsigned new_volume)
if
(
!
online
)
throw
std
::
runtime_error
(
"disconnected"
);
pa_volume_t
max_pa_volume
=
pa_volume_t
(
volume_scale_factor
*
PA_VOLUME_NORM
);
auto
max_pa_volume
=
pa_volume_t
(
volume_scale_factor
*
PA_VOLUME_NORM
);
struct
pa_cvolume
cvolume
;
pa_cvolume_set
(
&
cvolume
,
volume
.
channels
,
...
...
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