Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1454
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.cpp
Normal file
1454
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.cpp
Normal file
File diff suppressed because it is too large
Load Diff
147
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.dsp
Normal file
147
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.dsp
Normal file
@@ -0,0 +1,147 @@
|
||||
# Microsoft Developer Studio Project File - Name="audiofx" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||
|
||||
CFG=audiofx - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "audiofx.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "audiofx.mak" CFG="audiofx - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "audiofx - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "audiofx - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "audiofx - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "..\..\common\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib dxguid.lib dxerr8.lib comctl32.lib winmm.lib dsound.lib /nologo /subsystem:windows /machine:I386 /stack:0x200000,0x200000
|
||||
|
||||
!ELSEIF "$(CFG)" == "audiofx - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\..\common\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib dxguid.lib dxerr8.lib comctl32.lib winmm.lib dsound.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /stack:0x200000,0x200000
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "audiofx - Win32 Release"
|
||||
# Name "audiofx - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\audiofx.cpp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\audiofx.rc
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\directx.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\resource.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Common"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\common\src\dmutil.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\common\include\dmutil.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\common\src\dsutil.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\common\include\dsutil.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\common\src\dxutil.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\common\include\dxutil.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\readme.txt
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "audiofx"=.\audiofx.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
231
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.mak
Normal file
231
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.mak
Normal file
@@ -0,0 +1,231 @@
|
||||
# Microsoft Developer Studio Generated NMAKE File, Based on audiofx.dsp
|
||||
!IF "$(CFG)" == ""
|
||||
CFG=audiofx - Win32 Debug
|
||||
!MESSAGE No configuration specified. Defaulting to audiofx - Win32 Debug.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" != "audiofx - Win32 Release" && "$(CFG)" != "audiofx - Win32 Debug"
|
||||
!MESSAGE Invalid configuration "$(CFG)" specified.
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "audiofx.mak" CFG="audiofx - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "audiofx - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "audiofx - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
!ERROR An invalid configuration is specified.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(OS)" == "Windows_NT"
|
||||
NULL=
|
||||
!ELSE
|
||||
NULL=nul
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" == "audiofx - Win32 Release"
|
||||
|
||||
OUTDIR=.\Release
|
||||
INTDIR=.\Release
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Release
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\audiofx.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\audiofx.obj"
|
||||
-@erase "$(INTDIR)\audiofx.res"
|
||||
-@erase "$(INTDIR)\dmutil.obj"
|
||||
-@erase "$(INTDIR)\dsutil.obj"
|
||||
-@erase "$(INTDIR)\dxutil.obj"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(OUTDIR)\audiofx.exe"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /ML /W3 /GX /O2 /I "..\..\common\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"$(INTDIR)\audiofx.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\audiofx.res" /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\audiofx.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib dxguid.lib dxerr8.lib comctl32.lib winmm.lib dsound.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\audiofx.pdb" /machine:I386 /out:"$(OUTDIR)\audiofx.exe" /stack:0x200000,0x200000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\audiofx.obj" \
|
||||
"$(INTDIR)\dmutil.obj" \
|
||||
"$(INTDIR)\dsutil.obj" \
|
||||
"$(INTDIR)\dxutil.obj" \
|
||||
"$(INTDIR)\audiofx.res"
|
||||
|
||||
"$(OUTDIR)\audiofx.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ELSEIF "$(CFG)" == "audiofx - Win32 Debug"
|
||||
|
||||
OUTDIR=.\Debug
|
||||
INTDIR=.\Debug
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Debug
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\audiofx.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\audiofx.obj"
|
||||
-@erase "$(INTDIR)\audiofx.res"
|
||||
-@erase "$(INTDIR)\dmutil.obj"
|
||||
-@erase "$(INTDIR)\dsutil.obj"
|
||||
-@erase "$(INTDIR)\dxutil.obj"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(INTDIR)\vc60.pdb"
|
||||
-@erase "$(OUTDIR)\audiofx.exe"
|
||||
-@erase "$(OUTDIR)\audiofx.ilk"
|
||||
-@erase "$(OUTDIR)\audiofx.pdb"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /MLd /W3 /Gm /GX /Zi /Od /I "..\..\common\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"$(INTDIR)\audiofx.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\audiofx.res" /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\audiofx.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib dxguid.lib dxerr8.lib comctl32.lib winmm.lib dsound.lib /nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\audiofx.pdb" /debug /machine:I386 /out:"$(OUTDIR)\audiofx.exe" /pdbtype:sept /stack:0x200000,0x200000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\audiofx.obj" \
|
||||
"$(INTDIR)\dmutil.obj" \
|
||||
"$(INTDIR)\dsutil.obj" \
|
||||
"$(INTDIR)\dxutil.obj" \
|
||||
"$(INTDIR)\audiofx.res"
|
||||
|
||||
"$(OUTDIR)\audiofx.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
||||
!IF "$(NO_EXTERNAL_DEPS)" != "1"
|
||||
!IF EXISTS("audiofx.dep")
|
||||
!INCLUDE "audiofx.dep"
|
||||
!ELSE
|
||||
!MESSAGE Warning: cannot find "audiofx.dep"
|
||||
!ENDIF
|
||||
!ENDIF
|
||||
|
||||
|
||||
!IF "$(CFG)" == "audiofx - Win32 Release" || "$(CFG)" == "audiofx - Win32 Debug"
|
||||
SOURCE=.\audiofx.cpp
|
||||
|
||||
"$(INTDIR)\audiofx.obj" : $(SOURCE) "$(INTDIR)"
|
||||
|
||||
|
||||
SOURCE=.\audiofx.rc
|
||||
|
||||
"$(INTDIR)\audiofx.res" : $(SOURCE) "$(INTDIR)"
|
||||
$(RSC) $(RSC_PROJ) $(SOURCE)
|
||||
|
||||
|
||||
SOURCE=..\..\common\src\dmutil.cpp
|
||||
|
||||
"$(INTDIR)\dmutil.obj" : $(SOURCE) "$(INTDIR)"
|
||||
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||
|
||||
|
||||
SOURCE=..\..\common\src\dsutil.cpp
|
||||
|
||||
"$(INTDIR)\dsutil.obj" : $(SOURCE) "$(INTDIR)"
|
||||
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||
|
||||
|
||||
SOURCE=..\..\common\src\dxutil.cpp
|
||||
|
||||
"$(INTDIR)\dxutil.obj" : $(SOURCE) "$(INTDIR)"
|
||||
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
218
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.rc
Normal file
218
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/audiofx.rc
Normal file
@@ -0,0 +1,218 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#define IDC_STATIC -1
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#define IDC_STATIC -1\r\n"
|
||||
"#include <windows.h>\r\n"
|
||||
"\r\n"
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_MAIN DIALOGEX 100, 100, 467, 266
|
||||
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "AudioFX - Sound effects applied to IDirectMusicSegment8"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "E&xit",IDOK,30,245,45,14
|
||||
GROUPBOX "Parameters",IDC_FRAME,110,48,350,212
|
||||
RTEXT "Param 1 name",IDC_PARAM_NAME1,113,83,78,8
|
||||
CTEXT "Value",IDC_PARAM_VALUE1,196,82,45,10,0,WS_EX_STATICEDGE
|
||||
CONTROL "Slider1",IDC_SLIDER1,"msctls_trackbar32",TBS_BOTH |
|
||||
TBS_NOTICKS | WS_TABSTOP,284,79,130,15
|
||||
CTEXT "min",IDC_PARAM_MIN1,244,82,40,10
|
||||
CTEXT "max",IDC_PARAM_MAX1,418,82,35,8
|
||||
RTEXT "Param 1 name",IDC_PARAM_NAME2,113,105,78,8
|
||||
CTEXT "Value",IDC_PARAM_VALUE2,196,105,45,10,0,
|
||||
WS_EX_STATICEDGE
|
||||
CONTROL "Slider1",IDC_SLIDER2,"msctls_trackbar32",TBS_BOTH |
|
||||
TBS_NOTICKS | WS_TABSTOP,284,102,130,15
|
||||
CTEXT "min",IDC_PARAM_MIN2,244,105,40,10
|
||||
CTEXT "max",IDC_PARAM_MAX2,418,105,35,8
|
||||
RTEXT "Param 1 name",IDC_PARAM_NAME3,113,127,78,8
|
||||
CTEXT "Value",IDC_PARAM_VALUE3,196,126,45,10,0,
|
||||
WS_EX_STATICEDGE
|
||||
CONTROL "Slider1",IDC_SLIDER3,"msctls_trackbar32",TBS_BOTH |
|
||||
TBS_NOTICKS | WS_TABSTOP,284,123,130,15
|
||||
CTEXT "min",IDC_PARAM_MIN3,244,126,40,10
|
||||
CTEXT "max",IDC_PARAM_MAX3,418,126,35,8
|
||||
RTEXT "Param 1 name",IDC_PARAM_NAME4,113,148,78,8
|
||||
CTEXT "Value",IDC_PARAM_VALUE4,196,148,45,10,0,
|
||||
WS_EX_STATICEDGE
|
||||
CONTROL "Slider1",IDC_SLIDER4,"msctls_trackbar32",TBS_BOTH |
|
||||
TBS_NOTICKS | WS_TABSTOP,284,145,130,15
|
||||
CTEXT "min",IDC_PARAM_MIN4,244,148,40,10
|
||||
CTEXT "max",IDC_PARAM_MAX4,418,148,35,8
|
||||
RTEXT "Param 1 name",IDC_PARAM_NAME5,113,170,78,8
|
||||
CTEXT "Value",IDC_PARAM_VALUE5,196,169,45,10,0,
|
||||
WS_EX_STATICEDGE
|
||||
CONTROL "Slider1",IDC_SLIDER5,"msctls_trackbar32",TBS_BOTH |
|
||||
TBS_NOTICKS | WS_TABSTOP,284,166,130,15
|
||||
CTEXT "min",IDC_PARAM_MIN5,244,169,40,10
|
||||
CTEXT "max",IDC_PARAM_MAX5,418,169,35,8
|
||||
RTEXT "Param 1 name",IDC_PARAM_NAME6,113,192,78,8
|
||||
CTEXT "Value",IDC_PARAM_VALUE6,196,192,45,10,0,
|
||||
WS_EX_STATICEDGE
|
||||
CONTROL "Slider1",IDC_SLIDER6,"msctls_trackbar32",TBS_BOTH |
|
||||
TBS_NOTICKS | WS_TABSTOP,284,189,130,15
|
||||
CTEXT "min",IDC_PARAM_MIN6,244,192,40,10
|
||||
CTEXT "max",IDC_PARAM_MAX6,418,192,35,8
|
||||
CONTROL "Triangle",IDC_RADIO_TRIANGLE,"Button",
|
||||
BS_AUTORADIOBUTTON,130,231,41,10
|
||||
CONTROL "Square",IDC_RADIO_SQUARE,"Button",BS_AUTORADIOBUTTON,
|
||||
180,231,39,10
|
||||
CONTROL "Sine",IDC_RADIO_SINE,"Button",BS_AUTORADIOBUTTON,230,
|
||||
231,30,10
|
||||
GROUPBOX "Waveform",IDC_FRAME_WAVEFORM,120,220,150,25
|
||||
GROUPBOX "FX",IDC_STATIC,8,48,95,155
|
||||
CONTROL "",IDC_CHECK_CHORUS,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,80,16,8
|
||||
CONTROL "",IDC_CHECK_COMPRESSOR,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,94,16,8
|
||||
CONTROL "",IDC_CHECK_DISTORTION,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,109,16,8
|
||||
CONTROL "",IDC_CHECK_ECHO,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
|
||||
28,124,16,8
|
||||
CONTROL "",IDC_CHECK_FLANGER,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,139,16,8
|
||||
CONTROL "",IDC_CHECK_GARGLE,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,154,16,8
|
||||
CONTROL "",IDC_CHECK_PARAMEQ,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,168,16,8
|
||||
CONTROL "",IDC_CHECK_REVERB,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,183,16,8
|
||||
CTEXT "Enable",IDC_STATIC,18,63,25,10,0,WS_EX_STATICEDGE
|
||||
CTEXT "Adjust",IDC_STATIC,48,63,25,10,0,WS_EX_STATICEDGE
|
||||
PUSHBUTTON "&Open File",IDC_BUTTON_OPEN,8,8,50,14
|
||||
LTEXT "Filename",IDC_TEXT_FILENAME,63,9,397,12,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
CTEXT "Status",IDC_STATIC,13,28,45,10,SS_CENTERIMAGE
|
||||
LTEXT "Status",IDC_TEXT_STATUS,63,28,397,12,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
CONTROL "&Loop Sound",IDC_CHECK_LOOP,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,28,210,55,10
|
||||
PUSHBUTTON "&Play",IDC_BUTTON_PLAY,5,225,45,14
|
||||
PUSHBUTTON "&Stop",IDC_BUTTON_STOP,55,225,45,14
|
||||
CONTROL "&Chorus",IDC_RADIO_CHORUS,"Button",BS_AUTORADIOBUTTON,
|
||||
48,80,38,10
|
||||
CONTROL "Co&mpressor",IDC_RADIO_COMPRESSOR,"Button",
|
||||
BS_AUTORADIOBUTTON,48,94,53,10
|
||||
CONTROL "&Distortion",IDC_RADIO_DISTORTION,"Button",
|
||||
BS_AUTORADIOBUTTON,48,109,45,10
|
||||
CONTROL "&Echo",IDC_RADIO_ECHO,"Button",BS_AUTORADIOBUTTON,48,
|
||||
124,33,10
|
||||
CONTROL "&Flanger",IDC_RADIO_FLANGER,"Button",BS_AUTORADIOBUTTON,
|
||||
48,139,39,10
|
||||
CONTROL "&Gargle",IDC_RADIO_GARGLE,"Button",BS_AUTORADIOBUTTON,
|
||||
48,154,37,10
|
||||
CONTROL "P&aramEq",IDC_RADIO_PARAMEQ,"Button",BS_AUTORADIOBUTTON,
|
||||
48,168,45,10
|
||||
CONTROL "&Reverb",IDC_RADIO_REVERB,"Button",BS_AUTORADIOBUTTON,
|
||||
48,183,39,10
|
||||
CTEXT "Min",IDC_STATIC,248,63,35,10,0,WS_EX_STATICEDGE
|
||||
GROUPBOX "Phase (Degrees)",IDC_FRAME_PHASE,280,220,165,25
|
||||
CTEXT "Max",IDC_STATIC,418,63,35,10,0,WS_EX_STATICEDGE
|
||||
CONTROL "-180",IDC_RADIO_NEG_180,"Button",BS_AUTORADIOBUTTON,286,
|
||||
231,30,10
|
||||
CONTROL "-90",IDC_RADIO_NEG_90,"Button",BS_AUTORADIOBUTTON,322,
|
||||
231,26,10
|
||||
CONTROL "0",IDC_RADIO_ZERO,"Button",BS_AUTORADIOBUTTON,352,231,
|
||||
20,10
|
||||
CONTROL "90",IDC_RADIO_90,"Button",BS_AUTORADIOBUTTON,382,231,24,
|
||||
10
|
||||
CONTROL "180",IDC_RADIO_180,"Button",BS_AUTORADIOBUTTON,412,231,
|
||||
28,10
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_MAIN, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 460
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 259
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_ICON ICON DISCARDABLE "directx.ico"
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
BIN
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/directx.ico
Normal file
BIN
Library/dxx8/samples/Multimedia/DirectMusic/AudioFX/directx.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,55 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Sample Name: AudioFx Sample
|
||||
//
|
||||
// Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// GM/GS<47> Sound Set Copyright <20>1996, Roland Corporation U.S.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Description
|
||||
===========
|
||||
The sample demonstrates:
|
||||
|
||||
(1) how to use standard effects (FX) with DirectMusic
|
||||
(2) how to manipulate FX parameters - and what the results sounds like
|
||||
|
||||
|
||||
Path
|
||||
====
|
||||
Source: DXSDK\Samples\Multimedia\DirectMusic\AudioFx
|
||||
|
||||
Executable: DXSDK\Samples\Multimedia\DirectMusic\Bin
|
||||
|
||||
|
||||
User's Guide
|
||||
============
|
||||
- make sure a sound file is loaded (can be WAV, MID, or RMI), a default
|
||||
sound file should be loaded for you.
|
||||
|
||||
- by default, no FX are enabled. try playing the sound to see what it
|
||||
orginally sounds like.
|
||||
|
||||
- enable one or more FXs by checking the checkboxes on the left, under
|
||||
the column "Enable".
|
||||
|
||||
- Hit play to hear the FX applied.
|
||||
|
||||
- you can adjust parameters for any FX by using the frame on the right.
|
||||
(choose which FX to adjust by choosing an option under the "Adjust"
|
||||
column on the left. If you are adjusting parametesr for an active
|
||||
FX while sound is playing, you will hearing the difference immediately.
|
||||
|
||||
|
||||
Programming Notes
|
||||
=================
|
||||
To Enable a stand effect, ultimately, you need to obtain a LPDIRECTSOUNDBUFFER8
|
||||
interface pointer. Fill one or more DSEFFECTDESC structs, and pass them into
|
||||
IDirectSoundBuffer8::SetFX( ). This functionality is encapsulated by the sample
|
||||
in the CSoundFXManager.
|
||||
|
||||
Much of the code is for manipulating the UI, and is loosely coupled with
|
||||
the FX code.
|
||||
@@ -0,0 +1,80 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by audiofx.rc
|
||||
//
|
||||
#define IDD_MAIN 101
|
||||
#define IDI_ICON 103
|
||||
#define IDC_PARAM_NAME1 1000
|
||||
#define IDC_PARAM_VALUE1 1001
|
||||
#define IDC_SLIDER1 1002
|
||||
#define IDC_PARAM_MIN1 1003
|
||||
#define IDC_PARAM_MAX1 1004
|
||||
#define IDC_PARAM_NAME2 1005
|
||||
#define IDC_PARAM_VALUE2 1006
|
||||
#define IDC_SLIDER2 1007
|
||||
#define IDC_PARAM_MIN2 1008
|
||||
#define IDC_PARAM_MAX2 1009
|
||||
#define IDC_PARAM_NAME3 1010
|
||||
#define IDC_PARAM_VALUE3 1011
|
||||
#define IDC_SLIDER3 1012
|
||||
#define IDC_PARAM_MIN3 1013
|
||||
#define IDC_PARAM_MAX3 1014
|
||||
#define IDC_PARAM_NAME4 1015
|
||||
#define IDC_PARAM_VALUE4 1016
|
||||
#define IDC_SLIDER4 1017
|
||||
#define IDC_PARAM_MIN4 1018
|
||||
#define IDC_PARAM_MAX4 1019
|
||||
#define IDC_PARAM_NAME5 1020
|
||||
#define IDC_PARAM_VALUE5 1021
|
||||
#define IDC_SLIDER5 1022
|
||||
#define IDC_PARAM_MIN5 1023
|
||||
#define IDC_PARAM_MAX5 1024
|
||||
#define IDC_PARAM_NAME6 1025
|
||||
#define IDC_PARAM_VALUE6 1026
|
||||
#define IDC_SLIDER6 1027
|
||||
#define IDC_PARAM_MIN6 1028
|
||||
#define IDC_PARAM_MAX6 1029
|
||||
#define IDC_RADIO_TRIANGLE 1101
|
||||
#define IDC_RADIO_SQUARE 1102
|
||||
#define IDC_RADIO_SINE 1103
|
||||
#define IDC_RADIO_CHORUS 1201
|
||||
#define IDC_RADIO_COMPRESSOR 1202
|
||||
#define IDC_RADIO_DISTORTION 1203
|
||||
#define IDC_RADIO_ECHO 1204
|
||||
#define IDC_RADIO_FLANGER 1205
|
||||
#define IDC_RADIO_GARGLE 1206
|
||||
#define IDC_RADIO_PARAMEQ 1207
|
||||
#define IDC_RADIO_REVERB 1208
|
||||
#define IDC_CHECK_CHORUS 1211
|
||||
#define IDC_CHECK_COMPRESSOR 1212
|
||||
#define IDC_CHECK_DISTORTION 1213
|
||||
#define IDC_CHECK_ECHO 1214
|
||||
#define IDC_CHECK_FLANGER 1215
|
||||
#define IDC_CHECK_GARGLE 1216
|
||||
#define IDC_CHECK_PARAMEQ 1217
|
||||
#define IDC_CHECK_REVERB 1218
|
||||
#define IDC_BUTTON_OPEN 1301
|
||||
#define IDC_TEXT_STATUS 1302
|
||||
#define IDC_TEXT_FILENAME 1303
|
||||
#define IDC_CHECK_LOOP 1304
|
||||
#define IDC_BUTTON_PLAY 1305
|
||||
#define IDC_BUTTON_STOP 1306
|
||||
#define IDC_FRAME 1307
|
||||
#define IDC_FRAME_WAVEFORM 1309
|
||||
#define IDC_RADIO_NEG_180 1310
|
||||
#define IDC_RADIO_NEG_90 1311
|
||||
#define IDC_RADIO_ZERO 1312
|
||||
#define IDC_RADIO_90 1313
|
||||
#define IDC_RADIO_180 1314
|
||||
#define IDC_FRAME_PHASE 1315
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 104
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1316
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user