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
61862f9f
Commit
61862f9f
authored
Oct 12, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Use S24_3LE instead of S24_LE.
S24_LE is aligned with 4 bytes instead of the expected 3.
parent
0595ed39
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
dscapture.c
dlls/winealsa.drv/dscapture.c
+1
-1
dsoutput.c
dlls/winealsa.drv/dsoutput.c
+1
-1
wavein.c
dlls/winealsa.drv/wavein.c
+1
-1
waveout.c
dlls/winealsa.drv/waveout.c
+1
-1
No files found.
dlls/winealsa.drv/dscapture.c
View file @
61862f9f
...
@@ -597,7 +597,7 @@ static HRESULT WINAPI IDsCaptureDriverBufferImpl_SetFormat(PIDSCDRIVERBUFFER ifa
...
@@ -597,7 +597,7 @@ static HRESULT WINAPI IDsCaptureDriverBufferImpl_SetFormat(PIDSCDRIVERBUFFER ifa
{
{
case
8
:
format
=
SND_PCM_FORMAT_U8
;
break
;
case
8
:
format
=
SND_PCM_FORMAT_U8
;
break
;
case
16
:
format
=
SND_PCM_FORMAT_S16_LE
;
break
;
case
16
:
format
=
SND_PCM_FORMAT_S16_LE
;
break
;
case
24
:
format
=
SND_PCM_FORMAT_S24_LE
;
break
;
case
24
:
format
=
SND_PCM_FORMAT_S24_
3
LE
;
break
;
case
32
:
format
=
SND_PCM_FORMAT_S32_LE
;
break
;
case
32
:
format
=
SND_PCM_FORMAT_S32_LE
;
break
;
default:
FIXME
(
"Unsupported bpp: %d
\n
"
,
pwfx
->
wBitsPerSample
);
return
DSERR_GENERIC
;
default:
FIXME
(
"Unsupported bpp: %d
\n
"
,
pwfx
->
wBitsPerSample
);
return
DSERR_GENERIC
;
}
}
...
...
dlls/winealsa.drv/dsoutput.c
View file @
61862f9f
...
@@ -385,7 +385,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx)
...
@@ -385,7 +385,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx)
{
{
case
8
:
format
=
SND_PCM_FORMAT_U8
;
break
;
case
8
:
format
=
SND_PCM_FORMAT_U8
;
break
;
case
16
:
format
=
SND_PCM_FORMAT_S16_LE
;
break
;
case
16
:
format
=
SND_PCM_FORMAT_S16_LE
;
break
;
case
24
:
format
=
SND_PCM_FORMAT_S24_LE
;
break
;
case
24
:
format
=
SND_PCM_FORMAT_S24_
3
LE
;
break
;
case
32
:
format
=
SND_PCM_FORMAT_S32_LE
;
break
;
case
32
:
format
=
SND_PCM_FORMAT_S32_LE
;
break
;
default:
FIXME
(
"Unsupported bpp: %d
\n
"
,
pwfx
->
wBitsPerSample
);
return
DSERR_GENERIC
;
default:
FIXME
(
"Unsupported bpp: %d
\n
"
,
pwfx
->
wBitsPerSample
);
return
DSERR_GENERIC
;
}
}
...
...
dlls/winealsa.drv/wavein.c
View file @
61862f9f
...
@@ -504,7 +504,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
...
@@ -504,7 +504,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
IsEqualGUID
(
&
wwi
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
)))
{
IsEqualGUID
(
&
wwi
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
)))
{
format
=
(
wwi
->
format
.
Format
.
wBitsPerSample
==
8
)
?
SND_PCM_FORMAT_U8
:
format
=
(
wwi
->
format
.
Format
.
wBitsPerSample
==
8
)
?
SND_PCM_FORMAT_U8
:
(
wwi
->
format
.
Format
.
wBitsPerSample
==
16
)
?
SND_PCM_FORMAT_S16_LE
:
(
wwi
->
format
.
Format
.
wBitsPerSample
==
16
)
?
SND_PCM_FORMAT_S16_LE
:
(
wwi
->
format
.
Format
.
wBitsPerSample
==
24
)
?
SND_PCM_FORMAT_S24_LE
:
(
wwi
->
format
.
Format
.
wBitsPerSample
==
24
)
?
SND_PCM_FORMAT_S24_
3
LE
:
(
wwi
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_S32_LE
:
-
1
;
(
wwi
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_S32_LE
:
-
1
;
}
else
if
((
wwi
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
&&
}
else
if
((
wwi
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
&&
IsEqualGUID
(
&
wwi
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
)){
IsEqualGUID
(
&
wwi
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
)){
...
...
dlls/winealsa.drv/waveout.c
View file @
61862f9f
...
@@ -698,7 +698,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
...
@@ -698,7 +698,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
IsEqualGUID
(
&
wwo
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
)))
{
IsEqualGUID
(
&
wwo
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
)))
{
format
=
(
wwo
->
format
.
Format
.
wBitsPerSample
==
8
)
?
SND_PCM_FORMAT_U8
:
format
=
(
wwo
->
format
.
Format
.
wBitsPerSample
==
8
)
?
SND_PCM_FORMAT_U8
:
(
wwo
->
format
.
Format
.
wBitsPerSample
==
16
)
?
SND_PCM_FORMAT_S16_LE
:
(
wwo
->
format
.
Format
.
wBitsPerSample
==
16
)
?
SND_PCM_FORMAT_S16_LE
:
(
wwo
->
format
.
Format
.
wBitsPerSample
==
24
)
?
SND_PCM_FORMAT_S24_LE
:
(
wwo
->
format
.
Format
.
wBitsPerSample
==
24
)
?
SND_PCM_FORMAT_S24_
3
LE
:
(
wwo
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_S32_LE
:
-
1
;
(
wwo
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_S32_LE
:
-
1
;
}
else
if
((
wwo
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
&&
}
else
if
((
wwo
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
&&
IsEqualGUID
(
&
wwo
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
)){
IsEqualGUID
(
&
wwo
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
)){
...
...
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