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
2c209ccb
Commit
2c209ccb
authored
Oct 03, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg711.acm: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dea1fceb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
msg711.c
dlls/msg711.acm/msg711.c
+3
-7
No files found.
dlls/msg711.acm/msg711.c
View file @
2c209ccb
...
...
@@ -675,10 +675,6 @@ static LRESULT G711_DriverDetails(PACMDRIVERDETAILSW add)
*/
static
LRESULT
G711_FormatTagDetails
(
PACMFORMATTAGDETAILSW
aftd
,
DWORD
dwQuery
)
{
static
const
WCHAR
szPcm
[]
=
{
'P'
,
'C'
,
'M'
,
0
};
static
const
WCHAR
szALaw
[]
=
{
'A'
,
'-'
,
'L'
,
'a'
,
'w'
,
0
};
static
const
WCHAR
szULaw
[]
=
{
'U'
,
'-'
,
'L'
,
'a'
,
'w'
,
0
};
switch
(
dwQuery
)
{
case
ACM_FORMATTAGDETAILSF_INDEX
:
...
...
@@ -712,19 +708,19 @@ static LRESULT G711_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
aftd
->
dwFormatTag
=
WAVE_FORMAT_PCM
;
aftd
->
cbFormatSize
=
sizeof
(
PCMWAVEFORMAT
);
aftd
->
cStandardFormats
=
ARRAY_SIZE
(
PCM_Formats
);
lstrcpyW
(
aftd
->
szFormatTag
,
szPcm
);
lstrcpyW
(
aftd
->
szFormatTag
,
L"PCM"
);
break
;
case
1
:
aftd
->
dwFormatTag
=
WAVE_FORMAT_ALAW
;
aftd
->
cbFormatSize
=
sizeof
(
WAVEFORMATEX
);
aftd
->
cStandardFormats
=
ARRAY_SIZE
(
ALaw_Formats
);
lstrcpyW
(
aftd
->
szFormatTag
,
szALaw
);
lstrcpyW
(
aftd
->
szFormatTag
,
L"A-Law"
);
break
;
case
2
:
aftd
->
dwFormatTag
=
WAVE_FORMAT_MULAW
;
aftd
->
cbFormatSize
=
sizeof
(
WAVEFORMATEX
);
aftd
->
cStandardFormats
=
ARRAY_SIZE
(
ULaw_Formats
);
lstrcpyW
(
aftd
->
szFormatTag
,
szULaw
);
lstrcpyW
(
aftd
->
szFormatTag
,
L"U-Law"
);
break
;
}
return
MMSYSERR_NOERROR
;
...
...
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