Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
dmusbuff.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 2k
Category:
Game Server Simulator
Development Platform:
C/C++
- /***************************************************************************
- * *
- * DMusBuff.h -- This module defines the buffer format for DirectMusic *
- * Shared file between user mode and kernel mode components *
- * *
- * Copyright (c) 1998, Microsoft Corp. All rights reserved. *
- * *
- ***************************************************************************/
- #ifndef _DMusBuff_
- #define _DMusBuff_
- /* Format of DirectMusic events in a buffer
- *
- * A buffer contains 1 or more events, each with the following header.
- * Immediately following the header is the event data. The header+data
- * size is rounded to the nearest quadword (8 bytes).
- */
- #include <pshpack4.h> /* Do not pad at end - that's where the data is */
- typedef struct _DMUS_EVENTHEADER *LPDMUS_EVENTHEADER;
- typedef struct _DMUS_EVENTHEADER
- {
- DWORD cbEvent; /* Unrounded bytes in event */
- DWORD dwChannelGroup; /* Channel group of event */
- REFERENCE_TIME rtDelta; /* Delta from start time of entire buffer */
- DWORD dwFlags; /* Flags DMUS_EVENT_xxx */
- } DMUS_EVENTHEADER;
- #include <poppack.h>
- #define DMUS_EVENT_STRUCTURED 0x00000001 /* Unstructured data (SysEx, etc.) */
- /* The number of bytes to allocate for an event with 'cb' data bytes.
- */
- #define QWORD_ALIGN(x) (((x) + 7) & ~7)
- #define DMUS_EVENT_SIZE(cb) QWORD_ALIGN(sizeof(DMUS_EVENTHEADER) + cb)
- #endif /* _DMusBuff_ */