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
10509573
Commit
10509573
authored
Oct 28, 2003
by
Rok Mandeljc
Committed by
Alexandre Julliard
Oct 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes in dmband loading.
parent
897beee5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
61 deletions
+127
-61
band.c
dlls/dmband/band.c
+75
-27
bandtrack.c
dlls/dmband/bandtrack.c
+0
-0
dmband_private.h
dlls/dmband/dmband_private.h
+52
-34
No files found.
dlls/dmband/band.c
View file @
10509573
This diff is collapsed.
Click to expand it.
dlls/dmband/bandtrack.c
View file @
10509573
This diff is collapsed.
Click to expand it.
dlls/dmband/dmband_private.h
View file @
10509573
...
@@ -33,6 +33,8 @@
...
@@ -33,6 +33,8 @@
#include "dmplugin.h"
#include "dmplugin.h"
#include "dmusicf.h"
#include "dmusicf.h"
#include "dsound.h"
#include "dsound.h"
#include "wine/list.h"
/*****************************************************************************
/*****************************************************************************
* Interfaces
* Interfaces
...
@@ -67,6 +69,33 @@ extern HRESULT WINAPI DMUSIC_CreateDirectMusicBandObject (LPCGUID lpcGUID, LPDIR
...
@@ -67,6 +69,33 @@ extern HRESULT WINAPI DMUSIC_CreateDirectMusicBandObject (LPCGUID lpcGUID, LPDIR
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicBandTrack
(
LPCGUID
lpcGUID
,
LPDIRECTMUSICTRACK8
*
ppTrack
,
LPUNKNOWN
pUnkOuter
);
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicBandTrack
(
LPCGUID
lpcGUID
,
LPDIRECTMUSICTRACK8
*
ppTrack
,
LPUNKNOWN
pUnkOuter
);
/*****************************************************************************
* Auxiliary definitions
*/
/* i don't like M$'s idea about two different band item headers, so behold: universal one */
typedef
struct
_DMUS_PRIVATE_BAND_ITEM_HEADER
{
DWORD
dwVersion
;
/* 1 or 2 */
/* v.1 */
MUSIC_TIME
lBandTime
;
/* v.2 */
MUSIC_TIME
lBandTimeLogical
;
MUSIC_TIME
lBandTimePhysical
;
}
DMUS_PRIVATE_BAND_ITEM_HEADER
;
typedef
struct
_DMUS_PRIVATE_INSTRUMENT
{
struct
list
entry
;
/* for listing elements */
DMUS_IO_INSTRUMENT
pInstrument
;
IDirectMusicCollection
*
ppReferenceCollection
;
}
DMUS_PRIVATE_INSTRUMENT
,
*
LPDMUS_PRIVATE_INSTRUMENT
;
typedef
struct
_DMUS_PRIVATE_BAND
{
struct
list
entry
;
/* for listing elements */
DMUS_PRIVATE_BAND_ITEM_HEADER
pBandHeader
;
IDirectMusicBandImpl
*
ppBand
;
}
DMUS_PRIVATE_BAND
,
*
LPDMUS_PRIVATE_BAND
;
/*****************************************************************************
/*****************************************************************************
* IDirectMusicBandImpl implementation structure
* IDirectMusicBandImpl implementation structure
*/
*/
...
@@ -78,18 +107,18 @@ struct IDirectMusicBandImpl
...
@@ -78,18 +107,18 @@ struct IDirectMusicBandImpl
/* IDirectMusicBandImpl fields */
/* IDirectMusicBandImpl fields */
IDirectMusicBandObject
*
pObject
;
IDirectMusicBandObject
*
pObject
;
GUID
guidID
;
/* unique id */
DMUS_IO_VERSION
vVersion
;
/* version */
GUID
*
guidID
;
/* unique id */
DMUS_IO_VERSION
*
vVersion
;
/* version */
/* info from UNFO list */
/* info from UNFO list */
WCHAR
*
wszName
;
WCHAR
*
wzName
;
WCHAR
*
wszArtist
;
WCHAR
*
wzArtist
;
WCHAR
*
wszCopyright
;
WCHAR
*
wzCopyright
;
WCHAR
*
wszSubject
;
WCHAR
*
wzSubject
;
WCHAR
*
wszComment
;
WCHAR
*
wzComment
;
/* data */
/* data */
DMUS_IO_INSTRUMENT
pInstruments
[
255
];
struct
list
Instruments
;
IDirectMusicCollection
*
ppReferenceCollection
[
255
];
DWORD
dwInstruments
;
};
};
/* IUnknown: */
/* IUnknown: */
...
@@ -151,15 +180,6 @@ extern HRESULT WINAPI IDirectMusicBandObjectStream_Load (LPPERSISTSTREAM iface,
...
@@ -151,15 +180,6 @@ extern HRESULT WINAPI IDirectMusicBandObjectStream_Load (LPPERSISTSTREAM iface,
extern
HRESULT
WINAPI
IDirectMusicBandObjectStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
);
extern
HRESULT
WINAPI
IDirectMusicBandObjectStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
);
extern
HRESULT
WINAPI
IDirectMusicBandObjectStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
);
extern
HRESULT
WINAPI
IDirectMusicBandObjectStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
);
/* i don't like M$'s idea about two different band item headers, so behold: universal one */
typedef
struct
_DMUS_PRIVATE_BAND_ITEM_HEADER
{
DWORD
dwVersion
;
/* 1 or 2 */
/* v.1 */
MUSIC_TIME
lBandTime
;
/* v.2 */
MUSIC_TIME
lBandTimeLogical
;
MUSIC_TIME
lBandTimePhysical
;
}
DMUS_PRIVATE_BAND_ITEM_HEADER
;
/*****************************************************************************
/*****************************************************************************
* IDirectMusicBandTrack implementation structure
* IDirectMusicBandTrack implementation structure
...
@@ -172,19 +192,18 @@ struct IDirectMusicBandTrack
...
@@ -172,19 +192,18 @@ struct IDirectMusicBandTrack
/* IDirectMusicBandTrack fields */
/* IDirectMusicBandTrack fields */
IDirectMusicBandTrackStream
*
pStream
;
IDirectMusicBandTrackStream
*
pStream
;
DMUS_IO_BAND_TRACK_HEADER
btkHeader
;
/* header */
DMUS_IO_BAND_TRACK_HEADER
*
btkHeader
;
/* header */
GUID
guidID
;
/* unique id */
GUID
*
guidID
;
/* unique id */
DMUS_IO_VERSION
vVersion
;
/* version */
DMUS_IO_VERSION
*
vVersion
;
/* version */
/* info from UNFO list */
/* info from UNFO list */
WCHAR
*
wszName
;
WCHAR
*
wzName
;
WCHAR
*
wszArtist
;
WCHAR
*
wzArtist
;
WCHAR
*
wszCopyright
;
WCHAR
*
wzCopyright
;
WCHAR
*
wszSubject
;
WCHAR
*
wzSubject
;
WCHAR
*
wszComment
;
WCHAR
*
wzComment
;
/* data */
/* data */
DMUS_PRIVATE_BAND_ITEM_HEADER
pBandHeaders
[
255
];
/* band item headers for bands */
struct
list
Bands
;
IDirectMusicBandImpl
*
ppBands
[
255
];
/* bands */
DWORD
dwBands
;
/* nr. of IDirectMusicBandImpl* and DMUS_PRIVATE_BAND_ITEM_HEADER */
};
};
/* IUnknown: */
/* IUnknown: */
...
@@ -234,12 +253,11 @@ extern HRESULT WINAPI IDirectMusicBandTrackStream_Load (LPPERSISTSTREAM iface, I
...
@@ -234,12 +253,11 @@ extern HRESULT WINAPI IDirectMusicBandTrackStream_Load (LPPERSISTSTREAM iface, I
extern
HRESULT
WINAPI
IDirectMusicBandTrackStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
);
extern
HRESULT
WINAPI
IDirectMusicBandTrackStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
);
extern
HRESULT
WINAPI
IDirectMusicBandTrackStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
);
extern
HRESULT
WINAPI
IDirectMusicBandTrackStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
);
static
inline
const
char
*
debugstr_fourcc
(
DWORD
fourcc
)
static
inline
const
char
*
debugstr_fourcc
(
DWORD
fourcc
)
{
{
if
(
!
fourcc
)
return
"'null'"
;
if
(
!
fourcc
)
return
"'null'"
;
return
wine_dbg_sprintf
(
"
\'
%c%c%c%c
\'
"
,
return
wine_dbg_sprintf
(
"
\'
%c%c%c%c
\'
"
,
(
char
)(
fourcc
),
(
char
)(
fourcc
>>
8
),
(
char
)(
fourcc
),
(
char
)(
fourcc
>>
8
),
(
char
)(
fourcc
>>
16
),
(
char
)(
fourcc
>>
24
)
);
(
char
)(
fourcc
>>
16
),
(
char
)(
fourcc
>>
24
)
);
}
}
#endif
/* __WINE_DMBAND_PRIVATE_H */
#endif
/* __WINE_DMBAND_PRIVATE_H */
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