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
eef1fb8f
Commit
eef1fb8f
authored
Jul 23, 2000
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed first seek on MEM mmio files.
parent
9239ddd2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
23 deletions
+15
-23
mmio.c
dlls/winmm/mmio.c
+14
-18
audio.c
dlls/winmm/wineoss/audio.c
+1
-5
No files found.
dlls/winmm/mmio.c
View file @
eef1fb8f
...
...
@@ -10,7 +10,6 @@
/* Still to be done:
* + correct handling of global/local IOProcs
* + mode of mmio objects is not used (read vs write vs readwrite)
* + IO buffering is limited to 64k
* + optimization of internal buffers (seg / lin)
* + even in 32 bit only, a seg ptr IO buffer is allocated (after this is
* fixed, we'll have a proper 32/16 separation)
...
...
@@ -614,20 +613,18 @@ static BOOL MMIO_Destroy(LPWINE_MMIO wm)
*/
static
LRESULT
MMIO_Flush
(
WINE_MMIO
*
wm
,
UINT
uFlags
)
{
if
((
!
wm
->
info
.
cchBuffer
)
||
(
wm
->
info
.
fccIOProc
==
FOURCC_MEM
))
{
return
0
;
}
/* not quite sure what to do here, but I'll guess */
if
(
wm
->
info
.
dwFlags
&
MMIO_DIRTY
)
{
MMIO_SendMessage
(
wm
,
MMIOM_SEEK
,
wm
->
info
.
lDiskOffset
,
SEEK_SET
,
MMIO_PROC_32A
);
MMIO_SendMessage
(
wm
,
MMIOM_WRITE
,
(
LPARAM
)
wm
->
info
.
pchBuffer
,
wm
->
info
.
pchNext
-
wm
->
info
.
pchBuffer
,
MMIO_PROC_32A
);
wm
->
info
.
dwFlags
&=
~
MMIO_DIRTY
;
if
(
wm
->
info
.
cchBuffer
&&
(
wm
->
info
.
fccIOProc
!=
FOURCC_MEM
))
{
/* not quite sure what to do here, but I'll guess */
if
(
wm
->
info
.
dwFlags
&
MMIO_DIRTY
)
{
MMIO_SendMessage
(
wm
,
MMIOM_SEEK
,
wm
->
info
.
lDiskOffset
,
SEEK_SET
,
MMIO_PROC_32A
);
MMIO_SendMessage
(
wm
,
MMIOM_WRITE
,
(
LPARAM
)
wm
->
info
.
pchBuffer
,
wm
->
info
.
pchNext
-
wm
->
info
.
pchBuffer
,
MMIO_PROC_32A
);
}
if
(
uFlags
&
MMIO_EMPTYBUF
)
wm
->
info
.
pchNext
=
wm
->
info
.
pchBuffer
;
}
if
(
uFlags
&
MMIO_EMPTYBUF
)
wm
->
info
.
pchNext
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
dwFlags
&=
~
MMIO_DIRTY
;
return
0
;
}
...
...
@@ -667,10 +664,8 @@ static UINT MMIO_SetBuffer(WINE_MMIO* wm, void* pchBuffer, LONG cchBuffer,
TRACE
(
"(%p %p %ld %u %d)
\n
"
,
wm
,
pchBuffer
,
cchBuffer
,
uFlags
,
bFrom32
);
if
(
uFlags
)
return
MMSYSERR_INVALPARAM
;
if
(
cchBuffer
>
0xFFFF
)
{
FIXME
(
"Not handling huge mmio buffers yet (%ld >= 64k)
\n
"
,
cchBuffer
);
return
MMSYSERR_INVALPARAM
;
}
if
(
cchBuffer
>
0xFFFF
)
WARN
(
"Untested handling of huge mmio buffers (%ld >= 64k)
\n
"
,
cchBuffer
);
if
(
MMIO_Flush
(
wm
,
MMIO_EMPTYBUF
)
!=
0
)
return
MMIOERR_CANNOTWRITE
;
...
...
@@ -790,6 +785,7 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo,
type
!=
MMIO_PROC_16
);
if
(
refmminfo
->
wErrorRet
!=
MMSYSERR_NOERROR
)
goto
error1
;
wm
->
bBufferLoaded
=
TRUE
;
}
/* else => unbuffered, wm->info.pchBuffer == NULL */
/* see mmioDosIOProc for that one */
...
...
dlls/winmm/wineoss/audio.c
View file @
eef1fb8f
...
...
@@ -1417,7 +1417,7 @@ static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface, PDSDRIVERDES
static
HRESULT
WINAPI
IDsDriverImpl_Open
(
PIDSDRIVER
iface
)
{
ICOM_THIS
(
IDsDriverImpl
,
iface
);
int
enable
;
int
enable
=
0
;
TRACE
(
"(%p)
\n
"
,
iface
);
/* make sure the card doesn't start playing before we want it to */
...
...
@@ -1557,10 +1557,6 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
* Low level WAVE IN implemantation *
*======================================================================*/
/*======================================================================*
* Low level WAVE IN implemantation *
*======================================================================*/
/**************************************************************************
* widGetDevCaps [internal]
*/
...
...
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