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
e977ec92
Commit
e977ec92
authored
Oct 20, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm_volume: remove "default" statement
Don't suppress gcc warnings.
parent
b7d5652b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
pcm_volume.c
src/pcm_volume.c
+9
-3
No files found.
src/pcm_volume.c
View file @
e977ec92
...
@@ -151,6 +151,11 @@ pcm_volume(void *buffer, size_t length,
...
@@ -151,6 +151,11 @@ pcm_volume(void *buffer, size_t length,
}
}
switch
(
format
)
{
switch
(
format
)
{
case
SAMPLE_FORMAT_UNDEFINED
:
case
SAMPLE_FORMAT_S24
:
/* not implemented */
return
false
;
case
SAMPLE_FORMAT_S8
:
case
SAMPLE_FORMAT_S8
:
pcm_volume_change_8
((
int8_t
*
)
buffer
,
length
,
volume
);
pcm_volume_change_8
((
int8_t
*
)
buffer
,
length
,
volume
);
return
true
;
return
true
;
...
@@ -169,8 +174,9 @@ pcm_volume(void *buffer, size_t length,
...
@@ -169,8 +174,9 @@ pcm_volume(void *buffer, size_t length,
pcm_volume_change_32
((
int32_t
*
)
buffer
,
length
/
4
,
pcm_volume_change_32
((
int32_t
*
)
buffer
,
length
/
4
,
volume
);
volume
);
return
true
;
return
true
;
default:
return
false
;
}
}
/* unreachable */
assert
(
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