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
8c33b648
Commit
8c33b648
authored
Oct 10, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvp: unsinged integers
Fix some gcc warnings by using unsigned where appropriate. Declare numfrequencies as "const", and replaced the magic number 12 with a sizeof.
parent
cec9264d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
audioOutput_mvp.c
src/audioOutputs/audioOutput_mvp.c
+5
-4
No files found.
src/audioOutputs/audioOutput_mvp.c
View file @
8c33b648
...
...
@@ -66,7 +66,7 @@ typedef struct _MvpData {
int
fd
;
}
MvpData
;
static
int
pcmfrequencies
[][
3
]
=
{
static
unsigned
pcmfrequencies
[][
3
]
=
{
{
9
,
8000
,
32000
},
{
10
,
11025
,
44100
},
{
11
,
12000
,
48000
},
...
...
@@ -81,7 +81,8 @@ static int pcmfrequencies[][3] = {
{
15
,
96000
,
48000
}
};
static
int
numfrequencies
=
sizeof
(
pcmfrequencies
)
/
12
;
static
const
unsigned
numfrequencies
=
sizeof
(
pcmfrequencies
)
/
sizeof
(
pcmfrequencies
[
0
]);
static
int
mvp_testDefault
(
void
)
{
...
...
@@ -120,8 +121,8 @@ static void mvp_finishDriver(void *data)
static
int
mvp_setPcmParams
(
MvpData
*
md
,
unsigned
long
rate
,
int
channels
,
int
big_endian
,
unsigned
bits
)
{
int
iloop
;
int
mix
[
5
];
unsigned
iloop
;
unsigned
mix
[
5
];
if
(
channels
==
1
)
mix
[
0
]
=
1
;
...
...
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