mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
*********************************************************
* 2006/04/26 * * Little Alien * * Developed in VS 2003 * ********************************************************* Source: - Soundmanager v1.1 added - Some changes for international versions git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@39 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-2
@@ -12,8 +12,8 @@ extern HVSURFACE ghFrameBuffer;
|
||||
void InitJA2SplashScreen()
|
||||
{
|
||||
UINT32 uiLogoID = 0;
|
||||
//HVSURFACE hVSurface; // unused jonathanl
|
||||
// VSURFACE_DESC VSurfaceDesc; //unused jonathanl
|
||||
HVSURFACE hVSurface; // unused jonathanl // lalien reenabled for international versions
|
||||
VSURFACE_DESC VSurfaceDesc; //unused jonathanl // lalien reenabled for international versions
|
||||
INT32 i = 0;
|
||||
|
||||
#if !defined( ENGLISH ) && defined( JA2TESTVERSION )
|
||||
|
||||
+1
-76
@@ -544,7 +544,7 @@
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib"
|
||||
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib"
|
||||
OutputFile="C:\Games\Jagged Alliance 2 Gold\ja2.exe"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
@@ -590,81 +590,6 @@
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90">
|
||||
<File
|
||||
RelativePath="Utils\_Ja25GermanText.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug Demo|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Demo Bounds Checker|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Demo Release with Debug Info|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release with Debug Info|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Bounds Checker|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release Demo|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="aniviewscreen.cpp">
|
||||
<FileConfiguration
|
||||
|
||||
+6
-42
@@ -651,40 +651,13 @@ INT32 FirstFreeBigEnoughPocket(MERCPROFILESTRUCT *pProfile, UINT16 usItem)
|
||||
|
||||
|
||||
void WriteOutCurrentImpCharacter( INT32 iProfileId )
|
||||
{
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("WriteOutCurrentImpCharacter: IMP.dat"));
|
||||
char zImpFileName[12];
|
||||
strcat(zImpFileName,IMP_MERC_FILENAME);
|
||||
strcat(zImpFileName,IMP_FILENAME_SUFFIX);
|
||||
WriteOutCurrentImpCharacter ( iProfileId, zImpFileName);
|
||||
|
||||
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("WriteOutCurrentImpCharacter: Nickname.dat"));
|
||||
|
||||
char zFileName[12];
|
||||
char temp;
|
||||
|
||||
for(int i=0;i < 8;i++) // Madd: I couldn't get strcpy or anything to work here... weird... if s/o wants to fix it, go ahead
|
||||
{
|
||||
temp = (char) gMercProfiles[iProfileId].zNickname[i];
|
||||
zFileName[i] = temp;
|
||||
}
|
||||
|
||||
strcat(zFileName,IMP_FILENAME_SUFFIX);
|
||||
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("WriteOutCurrentImpCharacter: %s", zFileName));
|
||||
WriteOutCurrentImpCharacter ( iProfileId, zFileName);
|
||||
}
|
||||
|
||||
void WriteOutCurrentImpCharacter( INT32 iProfileId, STR fileName )
|
||||
{
|
||||
// grab the profile number and write out what is contained there in
|
||||
HWFILE hFile;
|
||||
UINT32 uiBytesWritten = 0;
|
||||
|
||||
// open the file for writing
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("WriteOutCurrentImpCharacter: %s", fileName));
|
||||
hFile = FileOpen(fileName, FILE_ACCESS_WRITE | FILE_CREATE_ALWAYS, FALSE);
|
||||
hFile = FileOpen(strcat((STR)(&gMercProfiles[iProfileId].zNickname),IMP_FILENAME_SUFFIX), FILE_ACCESS_WRITE | FILE_CREATE_ALWAYS, FALSE);
|
||||
|
||||
// write out the profile id
|
||||
if (!FileWrite(hFile, &iProfileId, sizeof( INT32 ), &uiBytesWritten))
|
||||
@@ -712,15 +685,11 @@ void WriteOutCurrentImpCharacter( INT32 iProfileId, STR fileName )
|
||||
|
||||
BOOLEAN ImpExists ( STR nickName )
|
||||
{
|
||||
char zFileName[12];
|
||||
DWORD attribs = GetFileAttributes(strcat(nickName,IMP_FILENAME_SUFFIX));
|
||||
if ( attribs != INVALID_FILE_ATTRIBUTES && !(attribs & FILE_ATTRIBUTE_DIRECTORY) )
|
||||
return TRUE;
|
||||
|
||||
strcpy(zFileName,nickName);
|
||||
strcat(zFileName,IMP_FILENAME_SUFFIX);
|
||||
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("ImpExists: %s", (STR) zFileName));
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("ImpExists: %d", FileExistsNoDB(zFileName) ));
|
||||
|
||||
return FileExistsNoDB(zFileName);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void LoadImpCharacter( STR nickName )
|
||||
@@ -729,13 +698,8 @@ void LoadImpCharacter( STR nickName )
|
||||
HWFILE hFile;
|
||||
UINT32 uiBytesRead = 0;
|
||||
|
||||
char zFileName[12];
|
||||
|
||||
strcpy(zFileName,nickName);
|
||||
strcat(zFileName,IMP_FILENAME_SUFFIX);
|
||||
|
||||
// open the file for writing
|
||||
hFile = FileOpen(zFileName, FILE_ACCESS_READ, FALSE);
|
||||
hFile = FileOpen(strcat(nickName,IMP_FILENAME_SUFFIX), FILE_ACCESS_READ, FALSE);
|
||||
|
||||
// valid file?
|
||||
if( hFile == -1 )
|
||||
|
||||
@@ -9,7 +9,6 @@ void HandleIMPConfirm( void );
|
||||
BOOLEAN AddCharacterToPlayersTeam( void );
|
||||
void LoadImpCharacter( STR fileName );
|
||||
void WriteOutCurrentImpCharacter( INT32 iProfileId );
|
||||
void WriteOutCurrentImpCharacter( INT32 iProfileId, STR fileName );
|
||||
|
||||
void ResetIMPCharactersEyesAndMouthOffsets( UINT8 ubMercProfileID );
|
||||
|
||||
|
||||
+4
-11
@@ -342,7 +342,7 @@ void HandleTextEvent( UINT32 uiKey )
|
||||
uiKey == '_' || uiKey == '.' )
|
||||
{
|
||||
// if the current string position is at max or great, do nothing
|
||||
if( iStringPos >= 8 )
|
||||
if( iStringPos >= 6 )
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -387,9 +387,6 @@ void ProcessPlayerInputActivationString( void )
|
||||
if( NumberOfMercsOnPlayerTeam() >= 18 )
|
||||
return;
|
||||
|
||||
char charPlayerActivationString[32];
|
||||
wcstombs(charPlayerActivationString,pPlayerActivationString,32);
|
||||
|
||||
//Madd multiple imps if( ( ( wcscmp(pPlayerActivationString, L"XEP624") == 0 ) || ( wcscmp(pPlayerActivationString, L"xep624") == 0 ) )&&( LaptopSaveInfo.fIMPCompletedFlag == FALSE ) &&( LaptopSaveInfo.gfNewGameLaptop < 2 ) )
|
||||
if( ( ( wcscmp(pPlayerActivationString, L"XEP624") == 0 ) || ( wcscmp(pPlayerActivationString, L"xep624") == 0 ) ) &&( LaptopSaveInfo.gfNewGameLaptop < 2 ) )
|
||||
{
|
||||
@@ -400,14 +397,10 @@ void ProcessPlayerInputActivationString( void )
|
||||
|
||||
}
|
||||
//Madd multiple imps else if( ( wcscmp(pPlayerActivationString, L"90210") == 0 ) && ( LaptopSaveInfo.fIMPCompletedFlag == FALSE ) )
|
||||
else if( wcscmp(pPlayerActivationString, L"90210") == 0 )
|
||||
// Madd: load characters by name:
|
||||
else if ( ImpExists( (STR)pPlayerActivationString ) )
|
||||
{
|
||||
LoadImpCharacter( IMP_MERC_FILENAME );
|
||||
}
|
||||
// Madd: load characters by name
|
||||
else if ( ImpExists( charPlayerActivationString ) )
|
||||
{
|
||||
LoadImpCharacter( charPlayerActivationString );
|
||||
LoadImpCharacter( (STR)pPlayerActivationString );
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
@@ -12,7 +12,5 @@ void HandleImpHomePage( void );
|
||||
#define MIN_GLOW_DELTA 100
|
||||
#define CURSOR_HEIGHT GetFontHeight( FONT14ARIAL ) + 6
|
||||
|
||||
#define IMP_MERC_FILENAME "IMP"
|
||||
|
||||
extern INT32 GlowColorsList[][3];
|
||||
#endif
|
||||
+2
-2
@@ -4519,8 +4519,8 @@ BOOLEAN DisplayTitleBarMaximizeGraphic(BOOLEAN fForward, BOOLEAN fInit, UINT16 u
|
||||
|
||||
sPosBottomY = LAPTOP_TITLE_BAR_HEIGHT;
|
||||
|
||||
SrcRect.iLeft = 0;
|
||||
SrcRect.iTop = 0;
|
||||
SrcRect.iLeft = iScreenWidthOffset;
|
||||
SrcRect.iTop = iScreenHeightOffset;
|
||||
SrcRect.iRight = LAPTOP_TITLE_BAR_WIDTH;
|
||||
SrcRect.iBottom = LAPTOP_TITLE_BAR_HEIGHT;
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* ChangeLog:
|
||||
* 10.12.2005 Lesh ripped out everything that refers to MSS
|
||||
* 10.12.2005 Lesh added fmod.h
|
||||
*/
|
||||
#ifndef __JA2_SGP_ALL_H
|
||||
#define __JA2_SGP_ALL_H
|
||||
|
||||
@@ -83,7 +88,7 @@
|
||||
#include <windowsx.h>
|
||||
#include "vobject_private.h"
|
||||
#include "shading.h"
|
||||
#include "mss.h"
|
||||
//#include "mss.h"
|
||||
#include "imgfmt.h"
|
||||
#include "timer.h"
|
||||
#include "renderworld.h"
|
||||
@@ -94,5 +99,8 @@
|
||||
#include "vsurface_private.h"
|
||||
#include "Timer Control.h"
|
||||
|
||||
// Lesh modifications
|
||||
#include "fmod.h"
|
||||
#include "fmod_errors.h"
|
||||
|
||||
#endif
|
||||
@@ -2748,15 +2748,18 @@
|
||||
<File
|
||||
RelativePath="FileMan.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\fmod.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\fmod_errors.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Utils\Font Control.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="font.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="gameloop.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="himage.h">
|
||||
</File>
|
||||
@@ -2874,9 +2877,6 @@
|
||||
<File
|
||||
RelativePath="WCheck.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Winbart97.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="WinFont.h">
|
||||
</File>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
#ifndef _FMOD_ERRORS_H
|
||||
#define _FMOD_ERRORS_H
|
||||
|
||||
static char *FMOD_ErrorString(int errcode)
|
||||
{
|
||||
switch (errcode)
|
||||
{
|
||||
case FMOD_ERR_NONE: return "No errors";
|
||||
case FMOD_ERR_BUSY: return "Cannot call this command after FSOUND_Init. Call FSOUND_Close first.";
|
||||
case FMOD_ERR_UNINITIALIZED: return "This command failed because FSOUND_Init was not called";
|
||||
case FMOD_ERR_PLAY: return "Playing the sound failed.";
|
||||
case FMOD_ERR_INIT: return "Error initializing output device.";
|
||||
case FMOD_ERR_ALLOCATED: return "The output device is already in use and cannot be reused.";
|
||||
case FMOD_ERR_OUTPUT_FORMAT: return "Soundcard does not support the features needed for this soundsystem (16bit stereo output)";
|
||||
case FMOD_ERR_COOPERATIVELEVEL: return "Error setting cooperative level for hardware.";
|
||||
case FMOD_ERR_CREATEBUFFER: return "Error creating hardware sound buffer.";
|
||||
case FMOD_ERR_FILE_NOTFOUND: return "File not found";
|
||||
case FMOD_ERR_FILE_FORMAT: return "Unknown file format";
|
||||
case FMOD_ERR_FILE_BAD: return "Error loading file";
|
||||
case FMOD_ERR_MEMORY: return "Not enough memory ";
|
||||
case FMOD_ERR_VERSION: return "The version number of this file format is not supported";
|
||||
case FMOD_ERR_INVALID_PARAM: return "An invalid parameter was passed to this function";
|
||||
case FMOD_ERR_NO_EAX: return "Tried to use an EAX command on a non EAX enabled channel or output.";
|
||||
case FMOD_ERR_CHANNEL_ALLOC: return "Failed to allocate a new channel";
|
||||
case FMOD_ERR_RECORD: return "Recording not supported on this device";
|
||||
case FMOD_ERR_MEDIAPLAYER: return "Required Mediaplayer codec is not installed";
|
||||
|
||||
default : return "Unknown error";
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
+372
-1795
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,8 @@
|
||||
#define __SOUNDMAN_
|
||||
|
||||
#include "types.h"
|
||||
#include "mss.h"
|
||||
#include "fmod.h"
|
||||
#include "fmod_errors.h"
|
||||
|
||||
/*
|
||||
#ifdef __cplusplus
|
||||
@@ -10,13 +11,11 @@ extern "C" {
|
||||
#endif
|
||||
*/
|
||||
|
||||
// Sample status flags
|
||||
// Sample status flags
|
||||
#define SAMPLE_ALLOCATED 0x00000001
|
||||
#define SAMPLE_LOCKED 0x00000002
|
||||
#define SAMPLE_RANDOM 0x00000004
|
||||
#define SAMPLE_RANDOM_MANUAL 0x00000008
|
||||
#define SAMPLE_3D 0x00000010
|
||||
|
||||
|
||||
// Sound error values (they're all the same)
|
||||
#define NO_SAMPLE 0xffffffff
|
||||
@@ -26,75 +25,8 @@ extern "C" {
|
||||
#define PRIORITY_MAX 0xfffffffe
|
||||
#define PRIORITY_RANDOM PRIORITY_MAX-1
|
||||
|
||||
// Structure definition for 3D sound positional information used by
|
||||
// various other structs and functions
|
||||
typedef struct {
|
||||
FLOAT flX, flY, flZ;
|
||||
FLOAT flVelX, flVelY, flVelZ;
|
||||
FLOAT flFaceX, flFaceY, flFaceZ;
|
||||
FLOAT flUpX, flUpY, flUpZ;
|
||||
FLOAT flFalloffMin, flFalloffMax;
|
||||
UINT32 uiVolume;
|
||||
} SOUND3DPOS;
|
||||
|
||||
// Struct definition for sample slots in the cache
|
||||
// Holds the regular sample data, as well as the
|
||||
// data for the random samples
|
||||
|
||||
typedef struct {
|
||||
CHAR8 pName[128]; // Path to sample data
|
||||
UINT32 uiSize; // Size of sample data
|
||||
UINT32 uiSoundSize; // Playable sound size
|
||||
UINT32 uiFlags; // Status flags
|
||||
UINT32 uiSpeed; // Playback frequency
|
||||
BOOLEAN fStereo; // Stereo/Mono
|
||||
UINT8 ubBits; // 8/16 bits
|
||||
PTR pData; // pointer to sample data memory
|
||||
PTR pSoundStart; // pointer to start of sound data
|
||||
UINT32 uiCacheHits;
|
||||
|
||||
UINT32 uiTimeNext; // Random sound data
|
||||
UINT32 uiTimeMin, uiTimeMax;
|
||||
UINT32 uiSpeedMin, uiSpeedMax;
|
||||
UINT32 uiVolMin, uiVolMax;
|
||||
UINT32 uiPanMin, uiPanMax;
|
||||
UINT32 uiPriority;
|
||||
UINT32 uiInstances;
|
||||
UINT32 uiMaxInstances;
|
||||
|
||||
UINT32 uiAilWaveFormat; // AIL wave sample type
|
||||
UINT32 uiADPCMBlockSize; // Block size for compressed files
|
||||
|
||||
} SAMPLETAG;
|
||||
|
||||
// Structure definition for slots in the sound output
|
||||
// These are used for both the cached and double-buffered
|
||||
// streams
|
||||
typedef struct {
|
||||
SAMPLETAG *pSample;
|
||||
UINT32 uiSample;
|
||||
HSAMPLE hMSS;
|
||||
HSTREAM hMSSStream;
|
||||
H3DSAMPLE hM3D;
|
||||
UINT32 uiFlags;
|
||||
UINT32 uiSoundID;
|
||||
UINT32 uiPriority;
|
||||
void (*pCallback)(UINT8*, UINT32, UINT32, UINT32, void *);
|
||||
void *pData;
|
||||
void (*EOSCallback)(void *);
|
||||
void *pCallbackData;
|
||||
UINT32 uiTimeStamp;
|
||||
BOOLEAN fLooping;
|
||||
HWFILE hFile;
|
||||
BOOLEAN fMusic;
|
||||
BOOLEAN fStopAtZero;
|
||||
UINT32 uiFadeVolume;
|
||||
UINT32 uiFadeRate;
|
||||
UINT32 uiFadeTime;
|
||||
} SOUNDTAG;
|
||||
|
||||
// Structure definition for sound parameters being passed down to
|
||||
// the sample playing function
|
||||
// Structure definition for sound parameters being passed down to the sample playing function
|
||||
typedef struct {
|
||||
UINT32 uiSpeed;
|
||||
UINT32 uiPitchBend; // Random pitch bend range +/-
|
||||
@@ -106,23 +38,8 @@ typedef struct {
|
||||
void *pCallbackData;
|
||||
} SOUNDPARMS;
|
||||
|
||||
// Structure definition for 3D sound parameters being passed down to
|
||||
// the sample playing function
|
||||
typedef struct {
|
||||
UINT32 uiSpeed;
|
||||
UINT32 uiPitchBend; // Random pitch bend range +/-
|
||||
UINT32 uiVolume; // volume at distance zero
|
||||
UINT32 uiLoop;
|
||||
UINT32 uiPriority;
|
||||
void (*EOSCallback)(void *);
|
||||
void *pCallbackData;
|
||||
|
||||
SOUND3DPOS Pos; // NOT optional, MUST be set
|
||||
} SOUND3DPARMS;
|
||||
|
||||
|
||||
// Structure definition for parameters to the random sample playing
|
||||
// function
|
||||
// Structure definition for parameters to the random sample playing function
|
||||
typedef struct {
|
||||
UINT32 uiTimeMin, uiTimeMax;
|
||||
UINT32 uiSpeedMin, uiSpeedMax;
|
||||
@@ -132,34 +49,6 @@ typedef struct {
|
||||
UINT32 uiMaxInstances;
|
||||
} RANDOMPARMS;
|
||||
|
||||
// Structure definition for parameters to the random 3D sample playing
|
||||
// function
|
||||
typedef struct {
|
||||
UINT32 uiTimeMin, uiTimeMax;
|
||||
UINT32 uiSpeedMin, uiSpeedMax;
|
||||
UINT32 uiVolMin, uiVolMax;
|
||||
UINT32 uiPriority;
|
||||
UINT32 uiMaxInstances;
|
||||
|
||||
SOUND3DPOS Pos; // NOT optional, MUST be set
|
||||
} RANDOM3DPARMS;
|
||||
|
||||
|
||||
enum e_EAXRoomTypes
|
||||
{
|
||||
EAXROOMTYPE_NONE=0,
|
||||
EAXROOMTYPE_SMALL_CAVE,
|
||||
EAXROOMTYPE_MEDIUM_CAVE,
|
||||
EAXROOMTYPE_LARGE_CAVE,
|
||||
EAXROOMTYPE_SMALL_ROOM,
|
||||
EAXROOMTYPE_MEDIUM_ROOM,
|
||||
EAXROOMTYPE_LARGE_ROOM,
|
||||
EAXROOMTYPE_OUTDOORS_FLAT,
|
||||
EAXROOMTYPE_OUTDOORS_CANYON,
|
||||
EAXROOMTYPE_UNDERWATER,
|
||||
|
||||
EAXROOMTYPE_NUM_TYPES
|
||||
};
|
||||
|
||||
// Global startup/shutdown functions
|
||||
extern BOOLEAN InitializeSoundManager(void);
|
||||
@@ -168,92 +57,44 @@ extern void ShutdownSoundManager(void);
|
||||
// Configuration functions
|
||||
extern BOOLEAN SoundSetMemoryLimit(UINT32 uiLimit);
|
||||
extern BOOLEAN SoundSetCacheThreshhold(UINT32 uiThreshold);
|
||||
extern HDIGDRIVER SoundGetDriverHandle(void);
|
||||
extern void * SoundGetDriverHandle( void );
|
||||
|
||||
// Master volume control functions
|
||||
extern BOOLEAN SoundSetDigitalVolume(UINT32 uiVolume);
|
||||
extern UINT32 SoundGetDigitalVolume(UINT32 uiVolume);
|
||||
extern void SoundSetDefaultVolume(UINT32 uiVolume);
|
||||
extern UINT32 SoundGetDefaultVolume(void);
|
||||
|
||||
|
||||
// Cache control functions
|
||||
//extern UINT32 SoundLoadSample(STR pFilename);
|
||||
UINT32 SoundLoadSample(STR pFilename);
|
||||
|
||||
extern UINT32 SoundFreeSample(STR pFilename);
|
||||
extern UINT32 SoundLockSample(STR pFilename);
|
||||
extern UINT32 SoundUnlockSample(STR pFilename);
|
||||
extern BOOLEAN SoundEmptyCache(void);
|
||||
extern BOOLEAN SoundSampleIsInUse(UINT32 uiSample);
|
||||
|
||||
// Play/service sample functions
|
||||
extern UINT32 SoundPlay(STR pFilename, SOUNDPARMS *pParms);
|
||||
extern UINT32 SoundPlayStreamedFile( STR pFilename, SOUNDPARMS *pParms );
|
||||
|
||||
extern UINT32 SoundPlayRandom(STR pFilename, RANDOMPARMS *pParms);
|
||||
extern BOOLEAN SoundRandomShouldPlay(UINT32 uiSample);
|
||||
extern UINT32 SoundStartRandom(UINT32 uiSample);
|
||||
extern UINT32 SoundStreamCallback(STR pFilename, SOUNDPARMS *pParms, void (*pCallback)(UINT8 *, UINT32, UINT32, UINT32, void *), void *);
|
||||
extern BOOLEAN SoundServiceStreams(void);
|
||||
extern BOOLEAN SoundServiceRandom(void);
|
||||
extern void SoundSampleSetVolumeRange(UINT32 uiSample, UINT32 uiVolMin, UINT32 uiVolMax);
|
||||
extern void SoundSampleSetPanRange(UINT32 uiSample, UINT32 uiPanMin, UINT32 uiPanMax);
|
||||
|
||||
// Sound instance manipulation functions
|
||||
extern void SoundSetMusic(UINT32 uiSound);
|
||||
extern BOOLEAN SoundStopMusic(void);
|
||||
extern BOOLEAN SoundStopAll(void);
|
||||
extern BOOLEAN SoundStopAllRandom(void);
|
||||
extern BOOLEAN SoundStop(UINT32 uiSoundID);
|
||||
extern BOOLEAN SoundIsPlaying(UINT32 uiSoundID);
|
||||
extern BOOLEAN SoundFileIsPlaying(CHAR8 *pFilename);
|
||||
extern BOOLEAN SoundSetFadeVolume(UINT32 uiSoundID, UINT32 uiVolume, UINT32 uiRate, BOOLEAN fStopAtZero);
|
||||
extern BOOLEAN SoundSetVolume(UINT32 uiSoundID, UINT32 uiVolume);
|
||||
extern BOOLEAN SoundSetPan(UINT32 uiSoundID, UINT32 uiPan);
|
||||
extern BOOLEAN SoundSetFrequency(UINT32 uiSoundID, UINT32 uiFreq);
|
||||
extern BOOLEAN SoundSetLoop(UINT32 uiSoundID, UINT32 uiLoop);
|
||||
extern UINT32 SoundGetVolume(UINT32 uiSoundID);
|
||||
extern UINT32 SoundGetPan(UINT32 uiSoundID);
|
||||
extern UINT32 SoundGetFrequency(UINT32 uiSoundID);
|
||||
extern UINT32 SoundGetLoop(UINT32 uiSoundID);
|
||||
extern UINT32 SoundGetPosition(UINT32 uiSoundID);
|
||||
extern BOOLEAN SoundGetMilliSecondPosition(UINT32 uiSoundID, UINT32 *puiTotalMilliseconds, UINT32 *puiCurrentMilliseconds);
|
||||
|
||||
// Sound instance group functions
|
||||
extern BOOLEAN SoundStopGroup(UINT32 uiPriority);
|
||||
extern BOOLEAN SoundFreeGroup(UINT32 uiPriority);
|
||||
|
||||
extern void SoundSetSampleFlags( UINT32 uiSample, UINT32 uiFlags );
|
||||
extern void SoundRemoveSampleFlags( UINT32 uiSample, UINT32 uiFlags );
|
||||
|
||||
extern void SoundEnableSound(BOOLEAN fEnable);
|
||||
|
||||
|
||||
// New 3D sound priovider
|
||||
extern void Sound3DSetProvider(CHAR8 *pProviderName);
|
||||
extern BOOLEAN Sound3DInitProvider(CHAR8 *pProviderName);
|
||||
extern void Sound3DShutdownProvider(void);
|
||||
|
||||
// 3D sound control
|
||||
extern void Sound3DSetPosition(UINT32 uiSample, FLOAT flX, FLOAT flY, FLOAT flZ);
|
||||
extern void Sound3DSetVelocity(UINT32 uiSample, FLOAT flX, FLOAT flY, FLOAT flZ);
|
||||
extern void Sound3DSetListener(FLOAT flX, FLOAT flY, FLOAT flZ);
|
||||
extern void Sound3DSetFacing(FLOAT flXFace, FLOAT flYFace, FLOAT flZFace, FLOAT flXUp, FLOAT flYUp, FLOAT flZUp);
|
||||
extern void Sound3DSetDirection(UINT32 uiSample, FLOAT flXFace, FLOAT flYFace, FLOAT flZFace, FLOAT flXUp, FLOAT flYUp, FLOAT flZUp);
|
||||
extern void Sound3DSetFalloff(UINT32 uiSample, FLOAT flMax, FLOAT flMin);
|
||||
extern void Sound3DSetEnvironment(INT32 iEnvironment);
|
||||
extern UINT32 Sound3DPlay(STR pFilename, SOUND3DPARMS *pParms);
|
||||
extern UINT32 Sound3DStartSample(UINT32 uiSample, UINT32 uiChannel, SOUND3DPARMS *pParms);
|
||||
extern void Sound3DStopAll(void);
|
||||
extern UINT32 Sound3DPlayRandom(STR pFilename, RANDOM3DPARMS *pParms);
|
||||
extern UINT32 Sound3DStartRandom(UINT32 uiSample, SOUND3DPOS *Pos);
|
||||
extern void Sound3DSetRoomType(UINT32 uiRoomType);
|
||||
|
||||
// Status query functions
|
||||
extern UINT32 Sound3DChannelsInUse(void);
|
||||
extern UINT32 SoundStreamsInUse(void);
|
||||
extern UINT32 Sound2DChannelsInUse(void);
|
||||
extern UINT32 SoundTotalChannelsInUse(void);
|
||||
extern void SoundLog(CHAR8 *strMessage);
|
||||
|
||||
/*
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -3908,7 +3908,7 @@ void AttackTarget( SOLDIERCELL *pAttacker, SOLDIERCELL *pTarget )
|
||||
if( pAttacker->bWeaponSlot != HANDPOS )
|
||||
{ //switch items
|
||||
memcpy( &tempItem, &pAttacker->pSoldier->inv[ HANDPOS ], sizeof( OBJECTTYPE ) );
|
||||
memcpy( &pAttacker->pSoldier->inv[ HANDPOS ], &pAttacker->pSoldier->inv[ pAttacker->bWeaponSlot ], sizeof( OBJECTTYPE ) );
|
||||
memcpy( &pAttacker->pSoldier->inv[ HANDPOS ], &pAttacker->pSoldier->inv[ pAttacker->bWeaponSlot ], sizeof( OBJECTTYPE ) ); //CTD
|
||||
iImpact = HTHImpact( pAttacker->pSoldier, pTarget->pSoldier, ubAccuracy, (BOOLEAN)(fKnife | fClaw) );
|
||||
memcpy( &pAttacker->pSoldier->inv[ pAttacker->bWeaponSlot ], &pAttacker->pSoldier->inv[ HANDPOS ], sizeof( OBJECTTYPE ) );
|
||||
memcpy( &pAttacker->pSoldier->inv[ HANDPOS ], &tempItem, sizeof( OBJECTTYPE ) );
|
||||
|
||||
@@ -154,7 +154,7 @@ BOOLEAN ExecuteStrategicEvent( STRATEGICEVENT *pEvent )
|
||||
else
|
||||
{
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"ExecuteStrategicEvent: SetupNewAmbientSound");
|
||||
pEvent->uiParam = SetupNewAmbientSound( pEvent->uiParam );
|
||||
pEvent->uiParam = SetupNewAmbientSound( pEvent->uiParam ); //bug Nr14
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"ExecuteStrategicEvent: SetupNewAmbientSound done");
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1768,7 +1768,7 @@ INT8 *GetDialogueDataFilename( UINT8 ubCharacterNum, UINT16 usQuoteNum, BOOLEAN
|
||||
#ifdef RUSSIAN
|
||||
if( ubCharacterNum >= FIRST_RPC && ubCharacterNum < GASTON && gMercProfiles[ ubCharacterNum ].ubMiscFlags & PROFILE_MISC_FLAG_RECRUITED )
|
||||
{
|
||||
sprintf( zFileName,"SPEECH\\r_%03d_%03d.wav",ubCharacterNum,usQuoteNum );
|
||||
sprintf( (char *) zFileName,"SPEECH\\r_%03d_%03d.wav",ubCharacterNum,usQuoteNum );
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
||||
@@ -5767,10 +5767,6 @@
|
||||
RelativePath=".\XML.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe">
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
||||
@@ -227,6 +227,8 @@ UINT32 SetupNewAmbientSound( UINT32 uiAmbientID )
|
||||
{
|
||||
RANDOMPARMS rpParms;
|
||||
|
||||
//SoundLog((CHAR8 *)String(" SetupNewAmbientSound()1: uiAmbientID: '%d'", uiAmbientID ) );
|
||||
|
||||
memset(&rpParms, 0xff, sizeof(RANDOMPARMS));
|
||||
|
||||
rpParms.uiTimeMin = gAmbData[ uiAmbientID ].uiMinTime;
|
||||
@@ -235,7 +237,9 @@ UINT32 SetupNewAmbientSound( UINT32 uiAmbientID )
|
||||
rpParms.uiVolMax = CalculateSoundEffectsVolume( gAmbData[ uiAmbientID ].uiVol );
|
||||
rpParms.uiPriority = GROUP_AMBIENT;
|
||||
|
||||
return SoundPlayRandom( gAmbData[ uiAmbientID ].zFilename, &rpParms );
|
||||
//SoundLog((CHAR8 *)String(" SetupNewAmbientSound()2: gAmbData[ uiAmbientID ].zFilename: '%s', Params: '%s'", gAmbData[ uiAmbientID ].zFilename, &rpParms ) );
|
||||
|
||||
return SoundPlayRandom( gAmbData[ uiAmbientID ].zFilename, &rpParms ); //bug Nr14
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3097,10 +3097,6 @@
|
||||
RelativePath="worldman.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe">
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
// Stolen from Nemesis by Derek Beland.
|
||||
// Originally by Derek Beland and Bret Rowden.
|
||||
//
|
||||
// ChangeLog:
|
||||
// 10.12.2005 Lesh ripped everything that refers to MSS
|
||||
// 15.12.2005 Lesh enabled sound in video
|
||||
//----------------------------------------------------------------------------------
|
||||
//#include "LocalCodeAll.h"
|
||||
|
||||
@@ -23,7 +26,6 @@
|
||||
#include "FileMan.h"
|
||||
#include "smack.h"
|
||||
#include "ddraw.h"
|
||||
#include "mss.h"
|
||||
#include "DirectX Common.h"
|
||||
#include "DirectDraw Calls.h"
|
||||
#include "Cinematics.h"
|
||||
@@ -131,9 +133,10 @@ DDSURFACEDESC SurfaceDescription;
|
||||
return(fFlicStatus);
|
||||
}
|
||||
|
||||
// Lesh changed this function only -----------------------------
|
||||
void SmkInitialize(HWND hWindow, UINT32 uiWidth, UINT32 uiHeight)
|
||||
{
|
||||
HDIGDRIVER pSoundDriver = NULL;
|
||||
void *pSoundDriver = NULL;
|
||||
|
||||
// Wipe the flic list clean
|
||||
memset(SmkList, 0, sizeof(SMKFLIC)*SMK_NUM_FLICS);
|
||||
@@ -151,7 +154,7 @@ void SmkInitialize(HWND hWindow, UINT32 uiWidth, UINT32 uiHeight)
|
||||
|
||||
//if we got the sound handle, use sound during the intro
|
||||
if( pSoundDriver )
|
||||
SmackSoundUseMSS( pSoundDriver );
|
||||
SmackSoundUseDirectSound( pSoundDriver );
|
||||
}
|
||||
|
||||
void SmkShutdown(void)
|
||||
|
||||
@@ -109,6 +109,7 @@ SOUNDPARMS spParms;
|
||||
memset(&spParms, 0xff, sizeof(SOUNDPARMS));
|
||||
spParms.uiPriority=PRIORITY_MAX;
|
||||
spParms.uiVolume=0;
|
||||
spParms.uiLoop=1; // Lesh: only 1 line added
|
||||
|
||||
spParms.EOSCallback = MusicStopCallback;
|
||||
|
||||
|
||||
+22
-20
@@ -259,7 +259,7 @@ char szSoundEffects[MAX_SAMPLES][255];// =
|
||||
// "SOUNDS\\ARMPIT.WAV",
|
||||
// "SOUNDS\\CRACKING BACK.WAV",
|
||||
//
|
||||
// "SOUNDS\\WEAPONS\\Auto Resolve Composite 02 (8-22).wav", // The FF sound in autoresolve interface
|
||||
// "SOUNDS\\WEAPONS\\Auto Resolve Composite 02 (8-22).wav",// The FF sound in autoresolve interface
|
||||
//
|
||||
// "SOUNDS\\Email Alert 01.wav",
|
||||
// "SOUNDS\\Entering Text 02.wav",
|
||||
@@ -359,7 +359,7 @@ char szSoundEffects[MAX_SAMPLES][255];// =
|
||||
// "SOUNDS\\x ray activated.WAV",
|
||||
// "SOUNDS\\catch object.wav",
|
||||
// "SOUNDS\\fence open.wav",
|
||||
//
|
||||
|
||||
////MADD MARKER
|
||||
////New Guns
|
||||
// "SOUNDS\\WEAPONS\\50CAL.WAV",
|
||||
@@ -443,8 +443,9 @@ UINT32 PlayJA2Sample( UINT32 usNum, UINT32 usRate, UINT32 ubVolume, UINT32 ubLoo
|
||||
|
||||
spParms.uiSpeed = usRate;
|
||||
spParms.uiVolume = CalculateSoundEffectsVolume( ubVolume );
|
||||
spParms.uiVolume &= 0xFFL;
|
||||
spParms.uiLoop = ubLoops;
|
||||
spParms.uiPan = uiPan;
|
||||
spParms.uiPan = uiPan & 0xFFL;
|
||||
spParms.uiPriority=GROUP_PLAYER;
|
||||
|
||||
return(SoundPlay(szSoundEffects[usNum], &spParms));
|
||||
@@ -466,6 +467,7 @@ UINT32 PlayJA2StreamingSample( UINT32 usNum, UINT32 usRate, UINT32 ubVolume, UIN
|
||||
return(SoundPlayStreamedFile(szSoundEffects[usNum], &spParms));
|
||||
}
|
||||
|
||||
|
||||
UINT32 PlayJA2SampleFromFile( STR8 szFileName, UINT32 usRate, UINT32 ubVolume, UINT32 ubLoops, UINT32 uiPan )
|
||||
{
|
||||
|
||||
@@ -481,6 +483,7 @@ UINT32 PlayJA2SampleFromFile( STR8 szFileName, UINT32 usRate, UINT32 ubVolume, U
|
||||
spParms.uiPan = uiPan;
|
||||
spParms.uiPriority=GROUP_PLAYER;
|
||||
|
||||
//return(SoundPlay(szFileName, &spParms));
|
||||
return(SoundPlay((STR) szFileName, &spParms));
|
||||
}
|
||||
|
||||
@@ -507,7 +510,7 @@ UINT32 PlayJA2StreamingSampleFromFile( STR8 szFileName, UINT32 usRate, UINT32 ub
|
||||
|
||||
UINT32 PlayJA2Ambient( UINT32 usNum, UINT32 ubVolume, UINT32 ubLoops)
|
||||
{
|
||||
SOUNDPARMS spParms;
|
||||
SOUNDPARMS spParms;
|
||||
|
||||
memset(&spParms, 0xff, sizeof(SOUNDPARMS));
|
||||
|
||||
@@ -626,7 +629,8 @@ int x,dif,absDif;
|
||||
}
|
||||
#endif
|
||||
|
||||
INT8 SoundDir( INT16 sGridNo )
|
||||
// == Lesh slightly changed this function ============
|
||||
INT32 SoundDir( INT16 sGridNo )
|
||||
{
|
||||
INT16 sWorldX, sWorldY;
|
||||
INT16 sScreenX, sScreenY;
|
||||
@@ -652,20 +656,18 @@ INT8 SoundDir( INT16 sGridNo )
|
||||
if ( ( sAbsDif = abs( sDif ) ) > 64 )
|
||||
{
|
||||
// OK, NOT the middle.
|
||||
|
||||
// Is it outside the screen?
|
||||
if ( sAbsDif > ( ( gsBottomRightWorldX - gsTopLeftWorldX ) / 2 ) )
|
||||
{
|
||||
// yes, outside...
|
||||
if ( sDif > 0 )
|
||||
{
|
||||
//return( FARLEFT );
|
||||
return( 1 );
|
||||
return( FARLEFT );
|
||||
//return( 1 );
|
||||
}
|
||||
else
|
||||
//return( FARRIGHT );
|
||||
return( 126 );
|
||||
|
||||
return( FARRIGHT );
|
||||
//return( 126 );
|
||||
}
|
||||
else // inside screen
|
||||
{
|
||||
@@ -680,7 +682,7 @@ INT8 SoundDir( INT16 sGridNo )
|
||||
}
|
||||
|
||||
|
||||
INT8 SoundVolume( INT8 bInitialVolume, INT16 sGridNo )
|
||||
INT32 SoundVolume( INT8 bInitialVolume, INT16 sGridNo )
|
||||
{
|
||||
INT16 sWorldX, sWorldY;
|
||||
INT16 sScreenX, sScreenY;
|
||||
@@ -712,7 +714,6 @@ INT8 SoundVolume( INT8 bInitialVolume, INT16 sGridNo )
|
||||
if ( sAbsDifX > 64 || sAbsDifY > 64 )
|
||||
{
|
||||
// OK, NOT the middle.
|
||||
|
||||
// Is it outside the screen?
|
||||
if ( sAbsDifX > ( ( gsBottomRightWorldX - gsTopLeftWorldX ) / 2 ) ||
|
||||
sAbsDifY > ( ( gsBottomRightWorldY - gsTopLeftWorldY ) / 2 ) )
|
||||
@@ -720,7 +721,6 @@ INT8 SoundVolume( INT8 bInitialVolume, INT16 sGridNo )
|
||||
return( __max( LOWVOLUME, ( bInitialVolume - SOUND_FAR_VOLUME_MOD ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
return( bInitialVolume );
|
||||
}
|
||||
|
||||
@@ -940,7 +940,8 @@ void SetPositionSndsInActive( )
|
||||
}
|
||||
}
|
||||
|
||||
INT8 PositionSoundDir( INT16 sGridNo )
|
||||
// == Lesh slightly changed this function ============
|
||||
INT32 PositionSoundDir( INT16 sGridNo )
|
||||
{
|
||||
INT16 sWorldX, sWorldY;
|
||||
INT16 sScreenX, sScreenY;
|
||||
@@ -973,12 +974,12 @@ INT8 PositionSoundDir( INT16 sGridNo )
|
||||
// yes, outside...
|
||||
if ( sDif > 0 )
|
||||
{
|
||||
//return( FARLEFT );
|
||||
return( 1 );
|
||||
return( FARLEFT );
|
||||
//return( 1 );
|
||||
}
|
||||
else
|
||||
//return( FARRIGHT );
|
||||
return( 126 );
|
||||
return( FARRIGHT );
|
||||
//return( 126 );
|
||||
|
||||
}
|
||||
else // inside screen
|
||||
@@ -994,7 +995,7 @@ INT8 PositionSoundDir( INT16 sGridNo )
|
||||
}
|
||||
|
||||
|
||||
INT8 PositionSoundVolume( INT8 bInitialVolume, INT16 sGridNo )
|
||||
INT32 PositionSoundVolume( INT8 bInitialVolume, INT16 sGridNo )
|
||||
{
|
||||
INT16 sWorldX, sWorldY;
|
||||
INT16 sScreenX, sScreenY;
|
||||
@@ -1088,6 +1089,7 @@ void SetPositionSndsVolumeAndPanning( )
|
||||
bVolume = 5;
|
||||
}
|
||||
}
|
||||
|
||||
SoundSetVolume( pPositionSnd->iSoundSampleID, bVolume );
|
||||
|
||||
bPan = PositionSoundDir( pPositionSnd->sGridNo );
|
||||
|
||||
+17
-13
@@ -1,14 +1,18 @@
|
||||
/*
|
||||
* ChangeLog:
|
||||
* 11.12.2005 Lesh changed balance settings
|
||||
*/
|
||||
#ifndef SOUND_CONTROL_H
|
||||
#define SOUND_CONTROL_H
|
||||
|
||||
|
||||
// == Lesh modifications ======
|
||||
#define FARLEFT 0
|
||||
#define LEFTSIDE 48
|
||||
#define MIDDLE 64
|
||||
#define MIDDLEPAN 64
|
||||
#define RIGHTSIDE 80
|
||||
#define FARRIGHT 127
|
||||
|
||||
#define LEFTSIDE 96
|
||||
#define MIDDLE 128
|
||||
#define MIDDLEPAN 128
|
||||
#define RIGHTSIDE 160
|
||||
#define FARRIGHT 255
|
||||
// == Lesh modifications ends =
|
||||
|
||||
#define LOWVOLUME 25
|
||||
#define BTNVOLUME 40
|
||||
@@ -25,7 +29,8 @@
|
||||
#define GROUP_PLAYER 1000
|
||||
#define GROUP_AMBIENT 0
|
||||
|
||||
#define MAX_SAMPLES 10000
|
||||
|
||||
#define MAX_SAMPLES 5000
|
||||
|
||||
|
||||
// SOUNDS ENUMERATION
|
||||
@@ -372,11 +377,11 @@ enum SoundDefines
|
||||
//MADD MARKER
|
||||
S_BARRETT,
|
||||
S_VAL,
|
||||
// BREAK_LIGHT_IGNITING,
|
||||
//BREAK_LIGHT_IGNITING,
|
||||
|
||||
NUM_SAMPLES
|
||||
};
|
||||
|
||||
|
||||
enum AmbientDefines
|
||||
{
|
||||
LIGHTNING_1 = 0,
|
||||
@@ -411,7 +416,6 @@ UINT32 PlayJA2Sample( UINT32 usNum, UINT32 usRate, UINT32 ubVolume, UINT32 ubLoo
|
||||
UINT32 PlayJA2StreamingSample( UINT32 usNum, UINT32 usRate, UINT32 ubVolume, UINT32 ubLoops, UINT32 uiPan );
|
||||
|
||||
UINT32 PlayJA2SampleFromFile( STR8 szFileName, UINT32 usRate, UINT32 ubVolume, UINT32 ubLoops, UINT32 uiPan );
|
||||
|
||||
UINT32 PlayJA2StreamingSampleFromFile( STR8 szFileName, UINT32 usRate, UINT32 ubVolume, UINT32 ubLoops, UINT32 uiPan, SOUND_STOP_CALLBACK EndsCallback );
|
||||
|
||||
UINT32 PlayJA2Ambient( UINT32 usNum, UINT32 ubVolume, UINT32 ubLoops);
|
||||
@@ -435,8 +439,8 @@ UINT32 CalculateSpeechVolume( UINT32 uiVolume );
|
||||
//Calculates a volume based on the current Sound Effects Volume level
|
||||
UINT32 CalculateSoundEffectsVolume( UINT32 uiVolume );
|
||||
|
||||
INT8 SoundDir( INT16 sGridNo );
|
||||
INT8 SoundVolume( INT8 bInitialVolume, INT16 sGridNo );
|
||||
INT32 SoundDir( INT16 sGridNo );
|
||||
INT32 SoundVolume( INT8 bInitialVolume, INT16 sGridNo );
|
||||
|
||||
// ATE: Warning! Use this sparingly! NOT very robust - can
|
||||
// have only 1 delayed sound at a time, and uses the global custom
|
||||
|
||||
+6
-4
@@ -966,6 +966,9 @@
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\_Ja25RussianText.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="_PolishText.cpp">
|
||||
<FileConfiguration
|
||||
@@ -3085,6 +3088,9 @@
|
||||
<File
|
||||
RelativePath="_Ja25GermanText.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\_Ja25RussianText.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Animated ProgressBar.h">
|
||||
</File>
|
||||
@@ -3140,10 +3146,6 @@
|
||||
RelativePath="Utils All.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe">
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user