Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
157eae21
Commit
157eae21
authored
Nov 15, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msgsm32.acm: Use BOOL type where appropriate.
parent
bf34d0c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
msgsm32.c
dlls/msgsm32.acm/msgsm32.c
+18
-18
No files found.
dlls/msgsm32.acm/msgsm32.c
View file @
157eae21
...
...
@@ -61,13 +61,13 @@ FUNCPTR(gsm_decode);
if((p##f = wine_dlsym(libgsm_handle, #f, NULL, 0)) == NULL) { \
wine_dlclose(libgsm_handle, NULL, 0); \
libgsm_handle = NULL; \
return
0
; \
return
FALSE
; \
}
/***********************************************************************
* GSM_drvLoad
*/
static
LRESULT
GSM_drvLoad
(
void
)
static
BOOL
GSM_drvLoad
(
void
)
{
char
error
[
128
];
...
...
@@ -79,12 +79,12 @@ static LRESULT GSM_drvLoad(void)
LOAD_FUNCPTR
(
gsm_option
);
LOAD_FUNCPTR
(
gsm_encode
);
LOAD_FUNCPTR
(
gsm_decode
);
return
1
;
return
TRUE
;
}
else
{
ERR
(
"Couldn't load "
SONAME_LIBGSM
": %s
\n
"
,
error
);
return
0
;
return
FALSE
;
}
}
...
...
@@ -137,10 +137,10 @@ static LRESULT GSM_DriverDetails(PACMDRIVERDETAILSW add)
}
/* Validate a WAVEFORMATEX structure */
static
DWORD
GSM_FormatValidate
(
const
WAVEFORMATEX
*
wfx
)
static
BOOL
GSM_FormatValidate
(
const
WAVEFORMATEX
*
wfx
)
{
if
(
wfx
->
nChannels
!=
1
)
return
0
;
return
FALSE
;
switch
(
wfx
->
wFormatTag
)
{
...
...
@@ -148,54 +148,54 @@ static DWORD GSM_FormatValidate(const WAVEFORMATEX *wfx)
if
(
wfx
->
wBitsPerSample
!=
16
)
{
WARN
(
"PCM wBitsPerSample %u
\n
"
,
wfx
->
wBitsPerSample
);
return
0
;
return
FALSE
;
}
if
(
wfx
->
nBlockAlign
!=
2
)
{
WARN
(
"PCM nBlockAlign %u
\n
"
,
wfx
->
nBlockAlign
);
return
0
;
return
FALSE
;
}
if
(
wfx
->
nAvgBytesPerSec
!=
wfx
->
nBlockAlign
*
wfx
->
nSamplesPerSec
)
{
WARN
(
"PCM nAvgBytesPerSec %u/%u
\n
"
,
wfx
->
nAvgBytesPerSec
,
wfx
->
nBlockAlign
*
wfx
->
nSamplesPerSec
);
return
0
;
return
FALSE
;
}
return
1
;
return
TRUE
;
case
WAVE_FORMAT_GSM610
:
if
(
wfx
->
cbSize
<
sizeof
(
WORD
))
{
WARN
(
"GSM cbSize %u
\n
"
,
wfx
->
cbSize
);
return
0
;
return
FALSE
;
}
if
(
wfx
->
wBitsPerSample
!=
0
)
{
WARN
(
"GSM wBitsPerSample %u
\n
"
,
wfx
->
wBitsPerSample
);
return
0
;
return
FALSE
;
}
if
(
wfx
->
nBlockAlign
!=
65
)
{
WARN
(
"GSM nBlockAlign %u
\n
"
,
wfx
->
nBlockAlign
);
return
0
;
return
FALSE
;
}
if
(((
const
GSM610WAVEFORMAT
*
)
wfx
)
->
wSamplesPerBlock
!=
320
)
{
WARN
(
"GSM wSamplesPerBlock %u
\n
"
,
((
const
GSM610WAVEFORMAT
*
)
wfx
)
->
wSamplesPerBlock
);
return
0
;
return
FALSE
;
}
if
(
wfx
->
nAvgBytesPerSec
!=
wfx
->
nSamplesPerSec
*
65
/
320
)
{
WARN
(
"GSM nAvgBytesPerSec %d / %d
\n
"
,
wfx
->
nAvgBytesPerSec
,
wfx
->
nSamplesPerSec
*
65
/
320
);
return
0
;
return
FALSE
;
}
return
1
;
return
TRUE
;
default:
return
0
;
return
FALSE
;
}
return
0
;
return
FALSE
;
}
static
const
DWORD
gsm_rates
[]
=
{
8000
,
11025
,
22050
,
44100
,
48000
,
96000
};
...
...
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