Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f7faba23
Commit
f7faba23
authored
Jun 16, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineesd.drv: Initialize the stream name before using it.
parent
dcade852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
audio.c
dlls/wineesd.drv/audio.c
+12
-4
No files found.
dlls/wineesd.drv/audio.c
View file @
f7faba23
...
@@ -1176,11 +1176,15 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
...
@@ -1176,11 +1176,15 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
out_rate
=
(
int
)
wwo
->
waveFormat
.
Format
.
nSamplesPerSec
;
out_rate
=
(
int
)
wwo
->
waveFormat
.
Format
.
nSamplesPerSec
;
TRACE
(
"esd output format = 0x%08x, rate = %d
\n
"
,
out_format
,
out_rate
);
TRACE
(
"esd output format = 0x%08x, rate = %d
\n
"
,
out_format
,
out_rate
);
wwo
->
stream_name
=
get_stream_name
(
"out"
,
wDevID
);
wwo
->
stream_fd
=
esd_play_stream
(
out_format
,
out_rate
,
NULL
,
wwo
->
stream_name
);
wwo
->
stream_fd
=
esd_play_stream
(
out_format
,
out_rate
,
NULL
,
wwo
->
stream_name
);
TRACE
(
"wwo->stream_fd=%d
\n
"
,
wwo
->
stream_fd
);
TRACE
(
"wwo->stream_fd=%d
\n
"
,
wwo
->
stream_fd
);
if
(
wwo
->
stream_fd
<
0
)
return
MMSYSERR_ALLOCATED
;
if
(
wwo
->
stream_fd
<
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
wwo
->
stream_name
);
return
MMSYSERR_ALLOCATED
;
}
wwo
->
stream_name
=
get_stream_name
(
"out"
,
wDevID
);
wwo
->
stream_id
=
0
;
wwo
->
stream_id
=
0
;
wwo
->
dwPlayedTotal
=
0
;
wwo
->
dwPlayedTotal
=
0
;
wwo
->
dwWrittenTotal
=
0
;
wwo
->
dwWrittenTotal
=
0
;
...
@@ -1899,14 +1903,18 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
...
@@ -1899,14 +1903,18 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
in_rate
=
(
int
)
wwi
->
waveFormat
.
Format
.
nSamplesPerSec
;
in_rate
=
(
int
)
wwi
->
waveFormat
.
Format
.
nSamplesPerSec
;
TRACE
(
"esd input format = 0x%08x, rate = %d
\n
"
,
in_format
,
in_rate
);
TRACE
(
"esd input format = 0x%08x, rate = %d
\n
"
,
in_format
,
in_rate
);
wwi
->
stream_name
=
get_stream_name
(
"in"
,
wDevID
);
#ifdef WID_USE_ESDMON
#ifdef WID_USE_ESDMON
wwi
->
stream_fd
=
esd_monitor_stream
(
in_format
,
in_rate
,
NULL
,
wwi
->
stream_name
);
wwi
->
stream_fd
=
esd_monitor_stream
(
in_format
,
in_rate
,
NULL
,
wwi
->
stream_name
);
#else
#else
wwi
->
stream_fd
=
esd_record_stream
(
in_format
,
in_rate
,
NULL
,
wwi
->
stream_name
);
wwi
->
stream_fd
=
esd_record_stream
(
in_format
,
in_rate
,
NULL
,
wwi
->
stream_name
);
#endif
#endif
TRACE
(
"wwi->stream_fd=%d
\n
"
,
wwi
->
stream_fd
);
TRACE
(
"wwi->stream_fd=%d
\n
"
,
wwi
->
stream_fd
);
if
(
wwi
->
stream_fd
<
0
)
return
MMSYSERR_ALLOCATED
;
if
(
wwi
->
stream_fd
<
0
)
wwi
->
stream_name
=
get_stream_name
(
"in"
,
wDevID
);
{
HeapFree
(
GetProcessHeap
(),
0
,
wwi
->
stream_name
);
return
MMSYSERR_ALLOCATED
;
}
wwi
->
state
=
WINE_WS_STOPPED
;
wwi
->
state
=
WINE_WS_STOPPED
;
if
(
wwi
->
lpQueuePtr
)
{
if
(
wwi
->
lpQueuePtr
)
{
...
...
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