Add rayman2 source files

This commit is contained in:
2024-09-18 02:33:44 +08:00
parent bcc093f8ed
commit fb036c54fd
14339 changed files with 2596224 additions and 0 deletions

View File

@@ -0,0 +1,102 @@
/*************************************************************
Module name: AdvWin32.H
Notices: Copyright (c) 1995 Jeffrey Richter
*************************************************************/
/* Disable ridiculous warnings so that the code */
/* compiles cleanly using warning level 4. */
/* nonstandard extension 'single line comment' was used */
#pragma warning(disable: 4001)
// nonstandard extension used : nameless struct/union
#pragma warning(disable: 4201)
// nonstandard extension used : bit field types other than int
#pragma warning(disable: 4214)
// Note: Creating precompiled header
#pragma warning(disable: 4699)
// unreferenced inline function has been removed
#pragma warning(disable: 4514)
// unreferenced formal parameter
#pragma warning(disable: 4100)
// 'type' differs in indirection to slightly different base
// types from 'other type'
#pragma warning(disable: 4057)
// named type definition in parentheses
#pragma warning(disable: 4115)
// nonstandard extension used : benign typedef redefinition
#pragma warning(disable: 4209)
/////////////////////////////////////////////////////////////
// Force all EXEs/DLLs to use STRICT type checking.
#define STRICT
/////////////////////////////////////////////////////////////
// Force all EXEs/DLLs to be compiled for Unicode.
// Uncomment the line below to compile using Unicode strings
// #define UNICODE
#ifdef UNICODE
#define _UNICODE
#endif
/////////////////////////////////////////////////////////////
// Create an ARRAY_SIZE macro that returns the number of
// elements in an array. This is a handy macro that I use
// frequently throughout the sample applications.
#define ARRAY_SIZE(Array) \
(sizeof(Array) / sizeof((Array)[0]))
/////////////////////////////////////////////////////////////
// Create a BEGINTHREADEX macro that calls the C run-time's
// _beginthreadex function. The C run-time library doesn't
// want to have any reliance on Win32 data types such as
// HANDLE. This means that a Win32 programmer needs to cast
// the return value to a HANDLE. This is terribly inconvenient,
// so I have created this macro to perform the casting.
typedef unsigned (__stdcall *PTHREAD_START) (void *);
#define BEGINTHREADEX(lpsa, cbStack, lpStartAddr, \
lpvThreadParm, fdwCreate, lpIDThread) \
((HANDLE)_beginthreadex( \
(void *) (lpsa), \
(unsigned) (cbStack), \
(PTHREAD_START) (lpStartAddr), \
(void *) (lpvThreadParm), \
(unsigned) (fdwCreate), \
(unsigned *) (lpIDThread)))
/////////////////////////////////////////////////////////////
// Compile all CONTEXT structures to use 32-bit members
// instead of 16-bit members. Currently, the only sample
// application that requires this is TInjLib.16 in order
// for it to work correctly on the DEC Alpha AXP.
#define _PORTABLE_32BIT_CONTEXT
/////////////////////////////////////////////////////////////
// Force all EXEs and DLLs to be built for Windows 4.0.
// Comment out the one line below to create samples
// that run under Windows NT 3.1 or Win32s.
// NOTE: Windows NT 3.5 runs Win32 programs marked as 4.0.
//#pragma comment(lib, "msvcrt " "-subsystem:Windows,4.0")
////////////////////////// End Of File //////////////////////

View File

@@ -0,0 +1,130 @@
// EAX.H -- DirectSound Environmental Audio Extensions
#ifndef EAX_H_INCLUDED
#define EAX_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
// EAX (listener) reverb property set {4a4e6fc1-c341-11d1-b73a-444553540000}
DEFINE_GUID(DSPROPSETID_EAX_ReverbProperties,
0x4a4e6fc1,
0xc341,
0x11d1,
0xb7, 0x3a, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);
typedef enum
{
DSPROPERTY_EAX_ALL, // all reverb properties
DSPROPERTY_EAX_ENVIRONMENT, // standard environment no.
DSPROPERTY_EAX_VOLUME, // loudness of the reverb
DSPROPERTY_EAX_DECAYTIME, // how long the reverb lasts
DSPROPERTY_EAX_DAMPING // the high frequencies decay faster
} DSPROPERTY_EAX_REVERBPROPERTY;
#define EAX_NUM_STANDARD_PROPERTIES (DSPROPERTY_EAX_DAMPING + 1)
// use this structure for get/set all properties...
typedef struct
{
unsigned long environment; // 0 to EAX_ENVIRONMENT_COUNT-1
float fVolume; // 0 to 1
float fDecayTime_sec; // seconds, 0.1 to 100
float fDamping; // 0 to 1
} EAX_REVERBPROPERTIES;
enum
{
EAX_ENVIRONMENT_GENERIC, // factory default
EAX_ENVIRONMENT_PADDEDCELL,
EAX_ENVIRONMENT_ROOM, // standard environments
EAX_ENVIRONMENT_BATHROOM,
EAX_ENVIRONMENT_LIVINGROOM,
EAX_ENVIRONMENT_STONEROOM,
EAX_ENVIRONMENT_AUDITORIUM,
EAX_ENVIRONMENT_CONCERTHALL,
EAX_ENVIRONMENT_CAVE,
EAX_ENVIRONMENT_ARENA,
EAX_ENVIRONMENT_HANGAR,
EAX_ENVIRONMENT_CARPETEDHALLWAY,
EAX_ENVIRONMENT_HALLWAY,
EAX_ENVIRONMENT_STONECORRIDOR,
EAX_ENVIRONMENT_ALLEY,
EAX_ENVIRONMENT_FOREST,
EAX_ENVIRONMENT_CITY,
EAX_ENVIRONMENT_MOUNTAINS,
EAX_ENVIRONMENT_QUARRY,
EAX_ENVIRONMENT_PLAIN,
EAX_ENVIRONMENT_PARKINGLOT,
EAX_ENVIRONMENT_SEWERPIPE,
EAX_ENVIRONMENT_UNDERWATER,
EAX_ENVIRONMENT_DRUGGED,
EAX_ENVIRONMENT_DIZZY,
EAX_ENVIRONMENT_PSYCHOTIC,
EAX_ENVIRONMENT_COUNT // total number of environments
};
#define EAX_MAX_ENVIRONMENT (EAX_ENVIRONMENT_COUNT - 1)
// presets
#define EAX_PRESET_GENERIC EAX_ENVIRONMENT_GENERIC,0.5F,1.493F,0.5F
#define EAX_PRESET_PADDEDCELL EAX_ENVIRONMENT_PADDEDCELL,0.25F,0.1F,0.0F
#define EAX_PRESET_ROOM EAX_ENVIRONMENT_ROOM,0.417F,0.4F,0.666F
#define EAX_PRESET_BATHROOM EAX_ENVIRONMENT_BATHROOM,0.653F,1.499F,0.166F
#define EAX_PRESET_LIVINGROOM EAX_ENVIRONMENT_LIVINGROOM,0.208F,0.478F,0.0F
#define EAX_PRESET_STONEROOM EAX_ENVIRONMENT_STONEROOM,0.5F,2.309F,0.888F
#define EAX_PRESET_AUDITORIUM EAX_ENVIRONMENT_AUDITORIUM,0.403F,4.279F,0.5F
#define EAX_PRESET_CONCERTHALL EAX_ENVIRONMENT_CONCERTHALL,0.5F,3.961F,0.5F
#define EAX_PRESET_CAVE EAX_ENVIRONMENT_CAVE,0.5F,2.886F,1.304F
#define EAX_PRESET_ARENA EAX_ENVIRONMENT_ARENA,0.361F,7.284F,0.332F
#define EAX_PRESET_HANGAR EAX_ENVIRONMENT_HANGAR,0.5F,10.0F,0.3F
#define EAX_PRESET_CARPETEDHALLWAY EAX_ENVIRONMENT_CARPETEDHALLWAY,0.153F,0.259F,2.0F
#define EAX_PRESET_HALLWAY EAX_ENVIRONMENT_HALLWAY,0.361F,1.493F,0.0F
#define EAX_PRESET_STONECORRIDOR EAX_ENVIRONMENT_STONECORRIDOR,0.444F,2.697F,0.638F
#define EAX_PRESET_ALLEY EAX_ENVIRONMENT_ALLEY,0.25F,1.752F,0.776F
#define EAX_PRESET_FOREST EAX_ENVIRONMENT_FOREST,0.111F,3.145F,0.472F
#define EAX_PRESET_CITY EAX_ENVIRONMENT_CITY,0.111F,2.767F,0.224F
#define EAX_PRESET_MOUNTAINS EAX_ENVIRONMENT_MOUNTAINS,0.194F,7.841F,0.472F
#define EAX_PRESET_QUARRY EAX_ENVIRONMENT_QUARRY,1.0F,1.499F,0.5F
#define EAX_PRESET_PLAIN EAX_ENVIRONMENT_PLAIN,0.097F,2.767F,0.224F
#define EAX_PRESET_PARKINGLOT EAX_ENVIRONMENT_PARKINGLOT,0.208F,1.652F,1.5F
#define EAX_PRESET_SEWERPIPE EAX_ENVIRONMENT_SEWERPIPE,0.652F,2.886F,0.25F
#define EAX_PRESET_UNDERWATER EAX_ENVIRONMENT_UNDERWATER,1.0F,1.499F,0.0F
#define EAX_PRESET_DRUGGED EAX_ENVIRONMENT_DRUGGED,0.875F,8.392F,1.388F
#define EAX_PRESET_DIZZY EAX_ENVIRONMENT_DIZZY,0.139F,17.234F,0.666F
#define EAX_PRESET_PSYCHOTIC EAX_ENVIRONMENT_PSYCHOTIC,0.486F,7.563F,0.806F
// EAX buffer reverb property set {4a4e6fc0-c341-11d1-b73a-444553540000}
DEFINE_GUID(DSPROPSETID_EAXBUFFER_ReverbProperties,
0x4a4e6fc0,
0xc341,
0x11d1,
0xb7, 0x3a, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);
typedef enum
{
DSPROPERTY_EAXBUFFER_ALL, // all reverb buffer properties
DSPROPERTY_EAXBUFFER_REVERBMIX // the wet source amount
} DSPROPERTY_EAXBUFFER_REVERBPROPERTY;
// use this structure for get/set all properties...
typedef struct
{
float fMix; // linear factor, 0.0F to 1.0F
} EAXBUFFER_REVERBPROPERTIES;
#define EAX_REVERBMIX_USEDISTANCE -1.0F // out of normal range
// signifies the reverb engine should
// calculate it's own reverb mix value
// based on distance
#ifdef __cplusplus
}
#endif // __cplusplus
#endif

View File

@@ -0,0 +1,20 @@
//d<>finitions des effets sonors
// inclus par un et un seul fichier
#define NO_EFFECT 0
#define GREVERB1 1
#define GREVERB2 2
#define GREVERB3 3
#define GREVERB4 4
#define GFLANGE 5
#define LOCAL 6
//---- VARIABLES
long Sound_Global_Effect;
long Sound_Local_Effect;

View File

@@ -0,0 +1,17 @@
/************************************************************
Module name: PMRstSub.H
Notices: Copyright (c) 1995 Jeffrey Richter
************************************************************/
#if defined(DLLCLIENT)
#pragma message("EXE : on importe SubclassProgManFrame")
__declspec(dllimport) BOOL SubclassProgManFrame (DWORD ThreadIdPMRestore);
__declspec(dllimport) HHOOK g_hHook;
#else
#pragma message("DLL : on exporte SubclassProgManFrame")
__declspec(dllexport) BOOL SubclassProgManFrame (DWORD ThreadIdPMRestore);
__declspec(dllexport) HHOOK g_hHook;
#endif
//////////////////////// End Of File ////////////////////////

View File

@@ -0,0 +1,244 @@
#ifndef _SNDHARD_H_
#define _SNDHARD_H_
#if (defined(__cplusplus)&& !defined(CPA_ForceCplusplus))
extern "C" {
#endif // __cplusplus
#include <windows.h>
#include <mmsystem.h>
/*
//////////////////////////////////////////////////////
// SNDHARD.H - Librairie SOUNDxd version 2.0 //
//////////////////////////////////////////////////////
// D<>finitions des types et constantes utilis<69>es //
// par tous les modules de SOUNDxD mais orient<6E>s //
// pour chaque machine (seuls les noms sont communs//
//////////////////////////////////////////////////////
*/
#ifdef M_SET_ALIGNMENT
#pragma pack(push)
#pragma pack(M_SET_ALIGNMENT)
#endif
#ifdef __cplusplus
#define SND_INLINE inline
#else
#define SND_INLINE
#endif
#define SNDBANK_FORMAT2 //pour utiliser le format 2 des banques binaires (un moteur
//compil<69> en format 2 ne peut plus lire le format 1 - un moteur compil<69> en format 1
//peut lire les 2 formats
//---type communs <20> d<>finitions variables
//-------------------------------------------------------------------------
//**********************************************************
//*** Sound Bank Management structures ********
//**********************************************************
typedef enum _tdeBankState
{
BANK_NOT_LOADED, //bank isn't in memory, and no need to be
BANK_LOADED, //bank is in memory
BANK_LOADING, //bank is being loaded
BANK_WAITING, //bank wait to know if it will remain in memory
BANK_TO_BE_LOADED, //banl must be load
BANK_FOR_ALIGNEMENT=SND_ENUM_ALIGNEMENT
} tdeBankState;
struct _tdstSndBankHeader
{
long lVersion;
};
typedef struct _tdstSndBankPolyRes tdstSndBankPolyRes;
typedef struct _tdstSndBankPolyEvent tdstSndBankPolyEvent;
struct _tdstSndBankPolyRes
{
SNDLST2_M_StaticParentDeclaration(tduBlockResource*)
};
struct _tdstSndBankPolyEvent
{
SNDLST2_M_StaticParentDeclaration(SND_tdstBlockEvent*)
};
#define SND_BNM_VERSIONCHECK_1 0x24
#define SND_BNM_VERSIONCHECK_2 0x2B
#define SND_BNM_GETVERSION(ptdstBankHead) ((long)*((long*)(ptdstBankHead)+1))
struct _tdstSndBankHead
{
tdstSndBankHeader stHeader;
tdstSndBankPolyEvent stEventList;
tdstSndBankPolyRes stResList;
unsigned long ulOffsetMPEG;
unsigned long ulOffsetMidi;
unsigned long ulOffsetSample;
#ifdef SNDBANK_FORMAT2
unsigned long ulOffsetADPCM;
unsigned long ulOffsetStreaming;
#endif
unsigned long ulTotalSize;
};
struct _tdstSndBankDescriptor
{
char czFilename[13];
unsigned long ulDataSize;
tdeBankState eState;
tdstSndBankHead* pData;
};
//--------------------------------------------------- MIDI
//param<61>tres d'une ressource midi (donn<6E>es sur disk)
struct _tdstTypeMidiDisk {
SndBool bStream; //streamer ou en m<>moire
SndBool bVolable; //peut-on changer le volume
SndBool bLoop; //bouclant ou non
unsigned long ulNbLoops; //nombre de r<>p<EFBFBD>tition de cet <20>l<EFBFBD>ment
unsigned long ulStartLoop; //point de rebouclage
unsigned long ulEndLoop; //longueur de la boucle
char czFileName[13];
} ;
//param<61>tres d'une ressource midi en m<>moire
struct _tdstMidiMemory {
// void* pvPtrFirst ;//adresse du 1<> octet
// int iLoop; //point de bouclage
// int iLast; //indice du dernier evt.
MCIDEVICEID uiMidiDeviceId;
unsigned long ulLength;
unsigned long ulNbLoops;
} ;
//param<61>tres d'une ressource midi <20> streamer
struct _tdstMidiStreaming {
char fichier[13] ; //nom du fichier
unsigned long Offset ; //Offest des datas dans le fichier
int iLoop; //indice du point de bouclage
int iLast; //indice du dernier evt
} ;
//union des desciption dedata midi
union _tduDataMidi {
tdstMidiMemory stMem;
tdstMidiStreaming stStream;
} ;
//param<61>tres d'une ressource midi (donn<6E>e en m<>moire)
struct _tdstTypeMidiMem {
SndBool bStream; //streamer ou en m<>moire
SndBool bVolable; //peut-on changer le volume
SndBool bLoop; //bouclant ou non
unsigned long ulNbLoops; //nombre de r<>p<EFBFBD>tition de cet <20>l<EFBFBD>ment
unsigned long ulStartLoop; //point de rebouclage
unsigned long ulEndLoop; //longueur de la boucle
tduDataMidi uData ;
} ;
//--------------------------------------------------- CD-AUDIO
//param<61>tre d'une ressource CD (donn<6E>es en mem ou sur disk)
struct _tdstTypeCD {
short wTrackId; //id de la track CD
SndBool bVolable; //peut-on changer son volume
SndBool bLoop; //doit-elle looper
int iNbLoops; //nombre de tours
unsigned long ulStartLoop; //point de rebouclage
unsigned long ulEndLoop; //longeur de la boucle
unsigned long ulStartingFrame; // La piste commence
unsigned long ulEndingFrame; // La piste termine
} ;
//--------------------------------------------------- SAMPLE
//param<61>tre d'une ressource sample (donn<6E>e sur disk)
struct _tdstTypeSampleDisk {
SndBool bPitchable; //peut-on changer le pitch du sample
SndBool bVolable; //peut-on changer son volume
SndBool bPanable; //peut le paner
SndBool bSpacable; //peut-on lui appliquer un effet space
SndBool bReverbable; //peut-on (ou doit-on) le reverber
SndBool bStream; //streming ou en m<>moire
SndBool bLoop; //loope-t-il
unsigned long ulStartLoop; //point de rebouclage en octets
unsigned long ulLoopLength; //longueur de la boucle en octets
unsigned long ulFreq; //fr<66>quence par d<>faut
unsigned short uwResolution; //nb de bits (8 ou 16)
unsigned short uwNbChannels; //nb de canaux(mono, st<73>reo ...)
tdeTypeZip eZip;
char czFileName[13]; //nom du fichier associ<63>
} ;
//param<61>tre d'une ressource sample en m<>moire
struct _tdstSampleMemory {
void* pvPtrFirst ; //adresse du 1<> octet
unsigned long ulNbEchLoop; //indice de l'ech du point de bouclage
unsigned long ulNbEch; //indice du dernier ech
} ;
//param<61>tre d'une ressource sample <20> streamer
struct _tdstSampleStreaming {
char szFileName[13] ;//nom du fichier
unsigned long ulOffsetFirst; //Offest des datas dans le fichier
unsigned long ulOffsetLoop; //offset du point de bouclage en octets
unsigned long ulOffsetLast; //offset du dernier octets.
} ;
//union de la description du sample
union _tduDataSample{
tdstSampleMemory stMem ;
tdstSampleStreaming stStream ;
} ;
//param<61>tres d'une ressource sample (donn<6E>es en mem)
struct _tdstTypeSampleMem {
SndBool bPitchable; //peut-on changer le pitch du sample
SndBool bVolable; //peut-on changer son volume
SndBool bPanable; //peut le paner
SndBool bSpacable; //peut-on lui appliquer un effet space
SndBool bReverbable; //peut-on (ou doit-on) le reverber
SndBool bStream; //streming ou en m<>moire
SndBool bLoop; //loope-t-il
tduDataSample uData; //description du sample
unsigned long ulInc0 ; //p<>riode en echantillons
unsigned long ulFreq; //frequence
unsigned short uwResolution; //nb de bits (8 ou 16)
unsigned short uwNbChannels; //nb de canaux(mono, st<73>reo ...)
tdeTypeZip eZip;
} ;
//extern tduRefRes SND_RES_FANTOME;
//---callback pour buffers clients
//typedef void (WINAPI *td_pfn_vRefreshBufferClient)(long id_buffer,unsigned long first,unsigned long nb,void* ptr_first_sample);
//id_buffer=id/voie du biffer client concern<72>
//first=id du 1<> sample <20> rafraichir (pas en octets)
//nb=nb de samples <20> calculer
//ptr_first_sample=adresse cible
#ifdef M_SET_ALIGNMENT
#pragma pack(pop)
#endif
#if (defined(__cplusplus)&& !defined(CPA_ForceCplusplus))
}
#endif // __cplusplus
#endif //_SNDHARD_H_

View File

@@ -0,0 +1,60 @@
#ifndef _SNDTEST_H_
#define _SNDTEST_H_
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/*
//////////////////////////////////////////////////////////////
// SNDTEST.H //
//////////////////////////////////////////////////////////////
// Module de test de configuration PC //
//////////////////////////////////////////////////////////////
*/
#undef DLL_IMPEXP
#undef CPA_EXPORT
#ifdef _DLL_COMPILATION_MODE
#define DLL_IMPEXP __declspec(dllexport)
#define CPA_EXPORT
#else
#define DLL_IMPEXP
//**************************************
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
//**************************************
#endif
#if defined(_DLL_COMPILATION_MODE) && !defined(SNDDLL_MODULE)
#pragma message("-> sndtest : functions pointers defined in SNDDLL.H")
#else
DLL_IMPEXP BOOL SND_CALL SND_fn_bTestSnd_Pentium(void);
DLL_IMPEXP BOOL SND_CALL SND_fn_bTestSnd_MMX(void);
DLL_IMPEXP BOOL SND_CALL SND_fn_bTestSnd_WinMM(WAVEFORMATEX *format);
DLL_IMPEXP BOOL SND_CALL SND_fn_bTestSnd_Win32(void);
DLL_IMPEXP BOOL SND_CALL SND_fn_bTestSnd_WinNT(void);
//to force symbols reference (fuction must be EXPORTable)
#ifndef __WATCOMC__
#pragma comment(linker, "/INCLUDE:_SND_fn_bTestSnd_Pentium@0")
#pragma comment(linker, "/INCLUDE:_SND_fn_bTestSnd_MMX@0")
#pragma comment(linker, "/INCLUDE:_SND_fn_bTestSnd_WinMM@4")
#pragma comment(linker, "/INCLUDE:_SND_fn_bTestSnd_Win32@0")
#pragma comment(linker, "/INCLUDE:_SND_fn_bTestSnd_WinNT@0")
#endif
#endif
#ifdef __cplusplus
}
#endif // __cplusplus
#endif //_SNDTEST_H_

View File

@@ -0,0 +1,33 @@
/*
CDplayerResource.h
Ce fichier contient les Ids de menu du Cd player
*/
#define SUBCLASSED_NORMALCALL 0x56
#define SUBCLASSED_NOCALL 0x57
#define SUBCLASSED_ID_MODIF 0x12c
#define SUBCLASSED_ID_QUITTER 0x12d
#define SUBCLASSED_ID_OUTILS 0x190
#define SUBCLASSED_ID_INFODISQUE 0x191
#define SUBCLASSED_ID_ETAT 0x192
#define SUBCLASSED_ID_DUREEMORCEAUECOULEE 0x193
#define SUBCLASSED_ID_DUREEMORCEAURESTANTE 0x194
#define SUBCLASSED_ID_DUREEDISQUERESTANTE 0x195
#define SUBCLASSED_ID_VOLUME 0x196
#define SUBCLASSED_ID_ORDREALEATOIRE 0x1f5
#define SUBCLASSED_ID_LECTURECONTINUE 0x1f7
#define SUBCLASSED_ID_LECTUREINTRO 0x1f8
#define SUBCLASSED_ID_PREFERENCES 0x1f9
#define SUBCLASSED_ID_AIDE 0x25b
#define SUBCLASSED_ID_APROPOS 0x25a
#define SUBCLASSED_ID_PLAY 0x3e8
#define SUBCLASSED_ID_PAUSE 0x3e9
#define SUBCLASSED_ID_STOP 0x3ea
#define SUBCLASSED_ID_PREVTRACK 0x3eb
#define SUBCLASSED_ID_NEXTTRACK 0x3ee
#define SUBCLASSED_ID_FORWARD 0x3ed
#define SUBCLASSED_ID_BACKWARD 0x3ec
#define SUBCLASSED_ID_EJECT 0x3ef

View File

@@ -0,0 +1,42 @@
// Maxi Sound 64 Specific functionalities
#include <INITGUID.H>
// DSPROPERTY_Dream3D
//
// Property supported by the IPropertySet interface associated with the
// Primary Buffer interface.
//
// {E8C0D100-503E-11d1-99DE-444553540000}
DEFINE_GUID(DSPROPERTY_Dream3D,
0xe8c0d100, 0x503e, 0x11d1, 0x99, 0xde, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
// DSPROPERTY_DreamBuffer
//
// Property supported by the IPropertySet interface associated with the
// IDirectSoundBuffer interface.
//
// {E8C0D101-503E-11d1-99DE-444553540000}
DEFINE_GUID(DSPROPERTY_DreamBuffer,
0xe8c0d101, 0x503e, 0x11d1, 0x99, 0xde, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
typedef enum
{
DSPROPERTY_DREAM3D_NOMIDI, // no data
DSPROPERTY_DREAM3D_REMOVEALLBANKS, // no data
DSPROPERTY_DREAM3D_REMOVEBANK, // pPropertyData=BankName[8]
DSPROPERTY_DREAM3D_ADDBANK, // pPropertyData=Sound Bank Path
DSPROPERTY_DREAM3D_REVERB, //*pPropertyData=(BOOL) TRUE(set )/FALSE(remove )
DSPROPERTY_DREAM3D_CHORUS, //*pPropertyData=(BOOL) TRUE(set )/FALSE(remove )
DSPROPERTY_DREAM3D_ECHO, //*pPropertyData=(BOOL) TRUE(set )/FALSE(remove )
DSPROPERTY_DREAM3D_AUDIOIN, //*pPropertyData=(BOOL) TRUE(set )/FALSE(remove )
DSPROPERTY_DREAM3D_EQUALIZER //*pPropertyData=(BOOL) TRUE(set )/FALSE(remove )
} DSPROPERTY_DREAM3D;
typedef enum
{
DSPROPERTY_DREAMBUFFER_LOOPPOINT // *pPropertyData=(DWORD) LoopPoint
} DSPROPERTY_DREAMBUFFER;

View File

@@ -0,0 +1,115 @@
#ifndef __SNDDBG_H__
#define __SNDDBG_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "snddll.h"
//#define SUPERVISATER
// ++++++++++++++++++++++++++++++++++++
// + Macro de compilation en mode DLL +
// ++++++++++++++++++++++++++++++++++++
#ifdef SUPERVISATER
#undef DLL_IMPEXP
#define DLL_IMPEXP __declspec(dllexport)
#else
#undef DLL_IMPEXP
#define DLL_IMPEXP
#endif
//**************************************
#undef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
//**************************************
//versions statiques de dbgSND_fn_pstGetSelectedResource et dbgSND_fn_bDoesSupervisaterSelectResource
CPA_EXPORT tdstBlockResourceMem* SND_fn_pstGetSelectedResource(void);
CPA_EXPORT SndBool SND_fn_bDoesSupervisaterSelectResource(void);
CPA_EXPORT void SND_fn_vRefreshSupervisater(void);
#if defined(_DLL_COMPILATION_MODE) && !defined(SNDDLL_MODULE)
//++++++++++++fonctions d<>finies par SNDDBG.DLL
//fonctions g<>n<EFBFBD>rales
DLL_IMPEXP void SND_CALL SND_fn_vLaunchSupervisater(SND_tdstInitStruct *pInitStruct);
DLL_IMPEXP void SND_CALL SND_fn_vKillSupervisater();
DLL_IMPEXP void SND_CALL dbgSND_fn_vSetProjectTitleForSuperVisater(char* ProjectFilename);
DLL_IMPEXP void SND_CALL SND_fn_vSetSupervisaterActive(void);
DLL_IMPEXP SndBool SND_CALL SND_fn_bIsSupervisaterActive(void);
//suivi des objets
DLL_IMPEXP void SND_CALL dbgSND_fn_vAddEventToObject(long indice,long type,long asso,SND_tduRefEvt evt);
DLL_IMPEXP void SND_CALL dbgSND_fn_vKillEventToObject(long indice,long asso);
DLL_IMPEXP void SND_CALL dbgSND_fn_vSetPosObject(long indice,SoundParam* par);
//suivi des micros
DLL_IMPEXP void SND_CALL dbgSND_fn_vAddMicro(long indice);
DLL_IMPEXP void SND_CALL dbgSND_fn_vKillMicro(long indice);
DLL_IMPEXP void SND_CALL dbgSND_fn_vSetPosMicro(long indice,MicroParam* par);
//historique des events
DLL_IMPEXP void SND_CALL dbgSND_fn_vAddHistoric(SND_tduRefEvt evt,long indice,long obj_type,long asso,tdstBlockResourceMem* res);
//ligne de volume
DLL_IMPEXP void SND_CALL dbgSND_fn_vKillVolumeLine(long line);
DLL_IMPEXP void SND_CALL dbgSND_fn_vAddVolumeLine(long line);
DLL_IMPEXP void SND_CALL dbgSND_fn_vSetVolumeLine(long line,long vol);
//bank
DLL_IMPEXP void SND_CALL dbgSND_fn_vLoadBank(int iId);
DLL_IMPEXP void SND_CALL dbgSND_fn_vUnLoadBank(int iId);
DLL_IMPEXP void SND_CALL dbgSND_fn_vAddVoiceSample(long id,tduRefRes res,SampleParam *par);
DLL_IMPEXP void SND_CALL dbgSND_fn_vSetParVoiceSample(long id,SampleParam *par);
DLL_IMPEXP void SND_CALL dbgSND_fn_vDelVoiceSample(long id);
DLL_IMPEXP void SND_CALL dbgSND_fn_vPauseVoiceSample(long id);
DLL_IMPEXP void SND_CALL dbgSND_fn_vResumeVoiceSample(long id);
DLL_IMPEXP tdstBlockResourceMem* SND_CALL dbgSND_fn_pstGetSelectedResource(void);
DLL_IMPEXP SndBool SND_CALL dbgSND_fn_bDoesSupervisaterSelectResource(void);
DLL_IMPEXP void SND_CALL dbgSND_fn_vSetProcessTimeSample(float ratio);
//sndvirt
DLL_IMPEXP void SND_CALL dbgSND_fn_vRajListesSxdVirtual(void* VV,void* VA,void* VD);//obsolete
DLL_IMPEXP void SND_CALL dbgSND_fn_vRajListesSxdVirtual2(SND_tdhVirtualModule p_virtual_module);
DLL_IMPEXP void SND_CALL dbgSND_fn_vInitListesSxdVirtual(long p_virtual_module,char* descrpition);
DLL_IMPEXP void SND_CALL dbgSND_fn_vRefreshSupervisater(void);
#else
//+++++++++fonctions d<>finies par SNDxyuvw.LIB et utilis<69>es par SNDDBG.DLL
DLL_IMPEXP SndBool SND_CALL dbgSND_fn_bGetAskedTheme(tduRefRes*,SndBool*);
DLL_IMPEXP SndBool SND_CALL dbgSND_fn_bGetThemePosition(tduRefRes*,long* ,long* );
DLL_IMPEXP void SND_CALL dbgSND_fn_vGetInfoForObjectSound(long ,long ,char* ,long );
DLL_IMPEXP long SND_CALL dbgSND_fn_lGetSizeOfSoundParam(SoundParam* );
DLL_IMPEXP void SND_CALL SND_fn_vSetResNameCallback(tdpfnResNameCallback pfnResNameCallback);
DLL_IMPEXP const char* SND_CALL SND_fn_czGetResNameFromEdId(unsigned long ulId);
DLL_IMPEXP SndBool SND_CALL dbgSND_fn_bSetResourceStaticVolume(unsigned long ulEdId,unsigned char ucVolume);
DLL_IMPEXP SndReal SND_CALL dbgSND_fn_rGetDopplerFactor(void);
DLL_IMPEXP void SND_CALL dbgSND_fn_vSendRequestSound(SND_tduRefEvt evt);
//to force symbols reference (fuction must be EXPORTable)
#if !defined(__WATCOMC__) && defined(SUPERVISATER)
#pragma comment(linker, "/INCLUDE:_dbgSND_fn_bGetAskedTheme@8")
#pragma comment(linker, "/INCLUDE:_dbgSND_fn_bGetThemePosition@12")
#pragma comment(linker, "/INCLUDE:_dbgSND_fn_vGetInfoForObjectSound@16")
#pragma comment(linker, "/INCLUDE:_dbgSND_fn_lGetSizeOfSoundParam@4")
#pragma comment(linker, "/INCLUDE:_SND_fn_vSetResNameCallback@4")
#pragma comment(linker, "/INCLUDE:_SND_fn_czGetResNameFromEdId@4")
#pragma comment(linker, "/INCLUDE:_dbgSND_fn_bSetResourceStaticVolume@8")
#pragma comment(linker, "/INCLUDE:_dbgSND_fn_rGetDopplerFactor@0")
#pragma comment(linker, "/INCLUDE:_dbgSND_fn_vSendRequestSound@4")
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif //__SNDDBG_H__

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,22 @@
/*-----------------------------------------------------
sndeax.h
-----------------------------------------------------*/
#ifndef __SNDEAX_H__
#define __SNDEAX_H__
/*-----------------------------------------------------
PROTOTYPES
-----------------------------------------------------*/
BOOL fn_bIsEaxAvailable();
void SND_fn_vInitEaxModule(LPDIRECTSOUND lpDSO);
void SND_fn_vDesInitEaxModule();
void SND_fn_vSetPreset(unsigned long ulNewPreset);
BOOL fn_bGetInterfEAX(LPDIRECTSOUNDBUFFER Buffer2D,LPKSPROPERTYSET *pBufferEAX);
BOOL set_param_eax(LPKSPROPERTYSET pBufferEAX,unsigned char ucReverb,BOOL bReverbable);
#endif

View File

@@ -0,0 +1,47 @@
#ifndef _SNDINI_H_
#define _SNDINI_H_
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#undef DLL_IMPEXP
#undef CPA_EXPORT
#ifdef _DLL_COMPILATION_MODE
#define DLL_IMPEXP __declspec(dllexport)
#define CPA_EXPORT
#else
#define DLL_IMPEXP
//**************************************
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
//**************************************
#endif
//gestion des options
void SND_fn_vInitOptions(SND_tdstInitStruct *pInitStruct);
void SND_fn_vDesInitOptions(void);
#define INI_FILENAME "CPA\\DLL\\SND_CPA.INI"
#if defined(_DLL_COMPILATION_MODE) && !defined(SNDDLL_MODULE)
#pragma message("-> sndini : functions pointers defined in SNDDLL.H")
#else
DLL_IMPEXP SndBool SND_CALL SND_fn_bGetOptions(char* section,char* key,char* value,int size_value);
DLL_IMPEXP void SND_CALL SND_fn_vSetOptions(char* section,char* key,char* value);
DLL_IMPEXP SndBool SND_CALL SND_fn_bCanSetOptions(void);
#endif
#ifdef __cplusplus
}
#endif // __cplusplus
#endif //SNDINI

View File

@@ -0,0 +1,63 @@
#ifndef _SNDLD_BN_H_
#define _SNDLD_BN_H_
//***************************************************************
//* *
//* SNDLD_S.H Version 1.0 *
//* *
//* Private sound data load&reference functions *
//* Binary version *
//* *
//***************************************************************
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#ifdef M_SET_ALIGNMENT
#pragma pack(push)
#pragma pack(M_SET_ALIGNMENT)
#endif
#ifndef NO_ACP_LDBIN
typedef struct _tdstSndBankDescriptorElement *p_tdstSndBankDescriptorElement;
SNDLST2_M_DynamicUseListOf(p_tdstSndBankDescriptorElement);
struct _tdstSndBankDescriptorElement
{
int iId; //Id of bank
unsigned long iLevel; //level (for StartLoadBank2
char czFileName[13]; //file name of bank
long lBNMCheckVersion; //BNM version (value of CheckVersion)
//signed long ulDataSize; //size of
tdeBankState eState; //current of bank (loading, to be loaded...)
tdstSndBankHead* pData; //pointer to main data (malloc)
void *pDataPrimary; //pointer to primary data (CPA list for Theme, Seq...)
void *pDataMPEG; //pointer to MPEG data
void *pDataMidi; //pointer to Midi data
void *pDataSample; //pointer to Sampel data
void *pDataADPCM; //pointer to Sampel data
SNDLST2_M_DynamicElementDeclaration(p_tdstSndBankDescriptorElement)
} tdstSndBankDescriptorElement;
typedef struct tdstSndBankDescriptorList_{
SNDLST2_M_DynamicAnchorDeclaration(p_tdstSndBankDescriptorElement) pList;
} tdstSndBankDescriptorList;
extern tdstSndBankDescriptorList SND_g_dBankDescriptionList;
p_tdstSndBankDescriptorElement fn_pstGetBankDescriptor(int _iBankNum);
#endif //NO_ACP_LDBIN
#ifdef M_SET_ALIGNMENT
#pragma pack(pop)
#endif
#ifdef __cplusplus
}
#endif // __cplusplus
#endif //_SNDLD_BN_H_

View File

@@ -0,0 +1,42 @@
#ifndef _SNDLD_HY_H_
#define _SNDLD_HY_H_
//***************************************************************
//* *
//* SNDLD_S.H Version 1.0 *
//* *
//* Private sound data load&reference functions *
//* Binary version *
//* *
//***************************************************************
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
//**************************************
#undef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
//**************************************
#ifdef SND_HYBRID_VERSION
CPA_EXPORT SndBool SND_fn_bDesInitDataLoadSnd(void);
CPA_EXPORT const char * SND_fn_czGetProjectTitle(void);
#endif //SND_HYBRID_VERSION
#ifdef __cplusplus
}
#endif // __cplusplus
#endif //_SNDLD_HY_H_

View File

@@ -0,0 +1,41 @@
#ifndef _SNDLD_S_H_
#define _SNDLD_S_H_
//***************************************************************
//* *
//* SNDLD_S.H Version 1.0 *
//* *
//* Private sound data load&reference functions *
//* Script version *
//* *
//***************************************************************
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/****************************************/
#undef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
/****************************************/
extern CPA_EXPORT SCR_tdst_Link_Table* SND_pstGetEventGroupLinkTable(void);
void SND_fn_vInitScriptSnd(void);
void SND_fn_vDesInitScriptSnd(void);
CPA_EXPORT const char * SND_fn_czGetProjectTitle(void);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif //_SNDLD_S_H_

View File

@@ -0,0 +1,58 @@
//=========================
//
// Mixer.h
//
//=========================
#ifndef __MIXER_H__
#define __MIXER_H__
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#include "mmsystem.h"
//=========================
// DEFINES
//=========================
#define MIXER_ERR_NOERR 0
#define MIXER_ERR_NOMIXER 1
#define MIXER_ERR_GETID 2
#define MIXER_ERR_OPEN 3
#define MIXER_ERR_GETCAPS 4
#define MIXER_ERR_GETLINEINFOCD 5
#define MIXER_ERR_GETLINEINFOSAMPLE 6
#define MIXER_ERR_GETLINECONTROLSCD 7
#define MIXER_ERR_GETLINECONTROLSSAMPLE 8
//=========================
// PROTOTYPES
//=========================
int MixerInit(HWAVEOUT hWave);
UINT GetNbrMixers();
DWORD GetNbrAudioLines();
DWORD GetCDMax();
DWORD GetCDMin();
DWORD SND_fn_dwGetCDValue();
void SND_fn_vSetCDValue(DWORD val);
DWORD GetSampleMax();
DWORD GetSampleMin();
DWORD SND_fn_dwGetSampleValue();
void SND_fn_vSetSampleValue(DWORD val);
DWORD GetMidiMax();
DWORD GetMidiMin();
DWORD GetMidiValue();
void SetMidiValue(DWORD val);
BOOL SND_fn_bIsCDControlAvailable();
BOOL SND_fn_bIsSampleControlAvailable();
int MixerDesInit();
int SND_fn_iMixerDesInitSample(void);
int SND_fn_iMixerInitSample(HWAVEOUT hWave);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif //MIXER_H_

View File

@@ -0,0 +1,21 @@
// module de gestion des ressources samples PCM stream<61>es
// multi plateforme (commun <20> directX, WinMM,...)
long SND_fn_lPlaySxdStream(tduRefRes res,SoundParam *par,long prio,SND_td_pfn_vSoundCallback fn_callback,long par_callback);
void SND_fn_vRemoveCallbackSxdStream(long voice);
SndBool SND_fn_bSetParamSxdStream(long voice,SoundParam *par);
SndBool SND_fn_bTestIsPlayingSxdStream(long voice);
void SND_fn_vStopSxdStream(long voice);
void SND_fn_vPauseSxdStream(long voice);
void SND_fn_vResumeSxdStream(long voice);
int SND_fn_iInitSxdStream(SND_tdstInitStruct *pInitStruct);
SndBool SND_fn_bTestInitSxdStream(void);
void SND_fn_vDesInitSxdStream(void);
SndReal SND_fn_rGetPosSxdStream(long voice);
SndReal SND_fn_rGetLengthSxdStream(long voice);
SndBool SND_fn_bLoadResScriptSxdStream(tdstBlockResourceDisk *disk,tdstBlockResourceMem *mem);
SndBool SND_fn_bLoadResBinarySxdStream(tdstBlockResourceDisk *_pBRDisk,tdstBlockResourceMem *_pBRMem,char *pDataBloc);
void SND_fn_vUnLoadResSxdStream(tdstBlockResourceMem* mem);
SndBool SND_fn_bSetResourceStaticVolumeSxdStream(tdstBlockResourceMem* pstRes,unsigned char ucVolume);

View File

@@ -0,0 +1,25 @@
#ifndef _MOTORSND_H_
#define _MOTORSND_H_
// this file must include no one else
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#undef DLL_IMPORT
#undef DLL_EXPORT
//#if (!defined(_DLL_MODULE))
extern HWND hwndMainSnd;
extern HINSTANCE SND_g_hResourceHandle;
extern HINSTANCE SND_hGlobalInst;
//#endif
#ifdef __cplusplus
}
#endif // __cplusplus
#endif //_MOTORSND_H_