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:
2025-11-29 16:24:34 +09:00
commit e067522598
5135 changed files with 1745744 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
//------------------------------------------------------------------------------
// File: AudioCap.cpp
//
// Desc: DirectShow sample code - Main program file for DirectShow
// audio capture sample.
//
// Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
#include "stdafx.h"
#include "AudioCap.h"
#include "AudioCapDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAudioCapApp
BEGIN_MESSAGE_MAP(CAudioCapApp, CWinApp)
//{{AFX_MSG_MAP(CAudioCapApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAudioCapApp construction
CAudioCapApp::CAudioCapApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CAudioCapApp object
CAudioCapApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CAudioCapApp initialization
BOOL CAudioCapApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
// In MFC 5.0, Enable3dControls and Enable3dControlsStatic are obsolete because
// their functionality is incorporated into Microsoft's 32-bit operating systems.
#if (_MSC_VER <= 1200)
Enable3dControls(); // Call this when using MFC in a shared DLL
#endif
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CAudioCapDlg dlg;
m_pMainWnd = &dlg;
int nResponse = (int) dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}

View File

@@ -0,0 +1,165 @@
# Microsoft Developer Studio Project File - Name="AudioCap" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=AudioCap - 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 "AudioCap.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 "AudioCap.mak" CFG="AudioCap - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "AudioCap - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "AudioCap - 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)" == "AudioCap - Win32 Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# 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 /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\BaseClasses" /I "..\..\..\..\..\include" /I "..\..\common" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL" /d "WIN32"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
# ADD LINK32 ..\..\BaseClasses\Release\strmbase.lib winmm.lib dmoguids.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libcmt.lib" /OPT:NOREF /OPT:ICF /stack:0x200000,0x200000
# SUBTRACT LINK32 /pdb:none
!ELSEIF "$(CFG)" == "AudioCap - Win32 Debug"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# 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 /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\BaseClasses" /I "..\..\..\..\..\include" /I "..\..\common" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL" /d "WIN32"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 ..\..\BaseClasses\Debug\strmbasd.lib winmm.lib dmoguids.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /pdbtype:sept /stack:0x200000,0x200000
!ENDIF
# Begin Target
# Name "AudioCap - Win32 Release"
# Name "AudioCap - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\AudioCap.cpp
# End Source File
# Begin Source File
SOURCE=.\AudioCap.rc
# End Source File
# Begin Source File
SOURCE=.\AudioCapDlg.cpp
# End Source File
# Begin Source File
SOURCE=..\..\Common\dshowutil.cpp
# End Source File
# Begin Source File
SOURCE=..\..\Common\mfcutil.cpp
# End Source File
# Begin Source File
SOURCE=.\StdAfx.cpp
# ADD CPP /Yc"stdafx.h"
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\AudioCap.h
# End Source File
# Begin Source File
SOURCE=.\AudioCapDlg.h
# End Source File
# Begin Source File
SOURCE=..\..\Common\dshowutil.h
# End Source File
# Begin Source File
SOURCE=..\..\Common\mfcutil.h
# End Source File
# Begin Source File
SOURCE=.\Resource.h
# End Source File
# Begin Source File
SOURCE=.\StdAfx.h
# 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=.\res\AudioCap.ico
# End Source File
# Begin Source File
SOURCE=.\res\AudioCap.rc2
# End Source File
# Begin Source File
SOURCE=.\res\TOOLBAR.BMP
# End Source File
# End Group
# End Target
# End Project

View File

@@ -0,0 +1,29 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "AudioCap"=.\AudioCap.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################

View File

@@ -0,0 +1,55 @@
//------------------------------------------------------------------------------
// File: AudioCapDlg.cpp
//
// Desc: DirectShow sample code - main header file for the
// audio capture sample application
//
// Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
#if !defined(AFX_AUDIOCAP_H__EC6C2C49_154B_480D_B494_B3DF7F1748F0__INCLUDED_)
#define AFX_AUDIOCAP_H__EC6C2C49_154B_480D_B494_B3DF7F1748F0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CAudioCapApp:
// See AudioCap.cpp for the implementation of this class
//
class CAudioCapApp : public CWinApp
{
public:
CAudioCapApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAudioCapApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CAudioCapApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_AUDIOCAP_H__EC6C2C49_154B_480D_B494_B3DF7F1748F0__INCLUDED_)

View File

@@ -0,0 +1,310 @@
# Microsoft Developer Studio Generated NMAKE File, Based on AudioCap.dsp
!IF "$(CFG)" == ""
CFG=AudioCap - Win32 Debug
!MESSAGE No configuration specified. Defaulting to AudioCap - Win32 Debug.
!ENDIF
!IF "$(CFG)" != "AudioCap - Win32 Release" && "$(CFG)" != "AudioCap - 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 "AudioCap.mak" CFG="AudioCap - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "AudioCap - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "AudioCap - 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)" == "AudioCap - Win32 Release"
OUTDIR=.\Release
INTDIR=.\Release
# Begin Custom Macros
OutDir=.\Release
# End Custom Macros
!IF "$(RECURSE)" == "0"
ALL : "$(OUTDIR)\AudioCap.exe"
!ELSE
ALL : "BaseClasses - Win32 Release" "$(OUTDIR)\AudioCap.exe"
!ENDIF
!IF "$(RECURSE)" == "1"
CLEAN :"BaseClasses - Win32 ReleaseCLEAN"
!ELSE
CLEAN :
!ENDIF
-@erase "$(INTDIR)\AudioCap.obj"
-@erase "$(INTDIR)\AudioCap.pch"
-@erase "$(INTDIR)\AudioCap.res"
-@erase "$(INTDIR)\AudioCapDlg.obj"
-@erase "$(INTDIR)\dshowutil.obj"
-@erase "$(INTDIR)\mfcutil.obj"
-@erase "$(INTDIR)\StdAfx.obj"
-@erase "$(INTDIR)\vc60.idb"
-@erase "$(OUTDIR)\AudioCap.exe"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP=cl.exe
CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\..\BaseClasses" /I "..\..\..\..\..\include" /I "..\..\common" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"$(INTDIR)\AudioCap.pch" /Yu"stdafx.h" /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)\AudioCap.res" /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
BSC32_FLAGS=/nologo /o"$(OUTDIR)\AudioCap.bsc"
BSC32_SBRS= \
LINK32=link.exe
LINK32_FLAGS=..\..\BaseClasses\Release\strmbase.lib winmm.lib dmoguids.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\AudioCap.pdb" /machine:I386 /nodefaultlib:"libcmt.lib" /out:"$(OUTDIR)\AudioCap.exe" /OPT:NOREF /OPT:ICF /stack:0x200000,0x200000
LINK32_OBJS= \
"$(INTDIR)\AudioCap.obj" \
"$(INTDIR)\AudioCapDlg.obj" \
"$(INTDIR)\dshowutil.obj" \
"$(INTDIR)\mfcutil.obj" \
"$(INTDIR)\StdAfx.obj" \
"$(INTDIR)\AudioCap.res" \
"..\BaseClasses\Release\STRMBASE.lib"
"$(OUTDIR)\AudioCap.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ELSEIF "$(CFG)" == "AudioCap - Win32 Debug"
OUTDIR=.\Debug
INTDIR=.\Debug
# Begin Custom Macros
OutDir=.\Debug
# End Custom Macros
!IF "$(RECURSE)" == "0"
ALL : "$(OUTDIR)\AudioCap.exe"
!ELSE
ALL : "BaseClasses - Win32 Debug" "$(OUTDIR)\AudioCap.exe"
!ENDIF
!IF "$(RECURSE)" == "1"
CLEAN :"BaseClasses - Win32 DebugCLEAN"
!ELSE
CLEAN :
!ENDIF
-@erase "$(INTDIR)\AudioCap.obj"
-@erase "$(INTDIR)\AudioCap.pch"
-@erase "$(INTDIR)\AudioCap.res"
-@erase "$(INTDIR)\AudioCapDlg.obj"
-@erase "$(INTDIR)\dshowutil.obj"
-@erase "$(INTDIR)\mfcutil.obj"
-@erase "$(INTDIR)\StdAfx.obj"
-@erase "$(INTDIR)\vc60.idb"
-@erase "$(INTDIR)\vc60.pdb"
-@erase "$(OUTDIR)\AudioCap.exe"
-@erase "$(OUTDIR)\AudioCap.ilk"
-@erase "$(OUTDIR)\AudioCap.pdb"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP=cl.exe
CPP_PROJ=/nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\BaseClasses" /I "..\..\..\..\..\include" /I "..\..\common" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"$(INTDIR)\AudioCap.pch" /Yu"stdafx.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /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)\AudioCap.res" /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
BSC32_FLAGS=/nologo /o"$(OUTDIR)\AudioCap.bsc"
BSC32_SBRS= \
LINK32=link.exe
LINK32_FLAGS=..\..\BaseClasses\Debug\strmbasd.lib winmm.lib dmoguids.lib /nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\AudioCap.pdb" /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /out:"$(OUTDIR)\AudioCap.exe" /pdbtype:sept /stack:0x200000,0x200000
LINK32_OBJS= \
"$(INTDIR)\AudioCap.obj" \
"$(INTDIR)\AudioCapDlg.obj" \
"$(INTDIR)\dshowutil.obj" \
"$(INTDIR)\mfcutil.obj" \
"$(INTDIR)\StdAfx.obj" \
"$(INTDIR)\AudioCap.res" \
"..\BaseClasses\debug\strmbasd.lib"
"$(OUTDIR)\AudioCap.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ENDIF
!IF "$(NO_EXTERNAL_DEPS)" != "1"
!IF EXISTS("AudioCap.dep")
!INCLUDE "AudioCap.dep"
!ELSE
!MESSAGE Warning: cannot find "AudioCap.dep"
!ENDIF
!ENDIF
!IF "$(CFG)" == "AudioCap - Win32 Release" || "$(CFG)" == "AudioCap - Win32 Debug"
SOURCE=.\AudioCap.cpp
"$(INTDIR)\AudioCap.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\AudioCap.pch"
SOURCE=.\AudioCap.rc
"$(INTDIR)\AudioCap.res" : $(SOURCE) "$(INTDIR)"
$(RSC) $(RSC_PROJ) $(SOURCE)
SOURCE=.\AudioCapDlg.cpp
"$(INTDIR)\AudioCapDlg.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\AudioCap.pch"
SOURCE=..\..\Common\dshowutil.cpp
"$(INTDIR)\dshowutil.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\AudioCap.pch"
$(CPP) $(CPP_PROJ) $(SOURCE)
SOURCE=..\..\Common\mfcutil.cpp
"$(INTDIR)\mfcutil.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\AudioCap.pch"
$(CPP) $(CPP_PROJ) $(SOURCE)
SOURCE=.\StdAfx.cpp
!IF "$(CFG)" == "AudioCap - Win32 Release"
CPP_SWITCHES=/nologo /MD /W3 /GX /O2 /I "..\..\BaseClasses" /I "..\..\..\..\..\include" /I "..\..\common" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"$(INTDIR)\AudioCap.pch" /Yc"stdafx.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
"$(INTDIR)\StdAfx.obj" "$(INTDIR)\AudioCap.pch" : $(SOURCE) "$(INTDIR)"
$(CPP) @<<
$(CPP_SWITCHES) $(SOURCE)
<<
!ELSEIF "$(CFG)" == "AudioCap - Win32 Debug"
CPP_SWITCHES=/nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\BaseClasses" /I "..\..\..\..\..\include" /I "..\..\common" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"$(INTDIR)\AudioCap.pch" /Yc"stdafx.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
"$(INTDIR)\StdAfx.obj" "$(INTDIR)\AudioCap.pch" : $(SOURCE) "$(INTDIR)"
$(CPP) @<<
$(CPP_SWITCHES) $(SOURCE)
<<
!ENDIF
!IF "$(CFG)" == "AudioCap - Win32 Release"
"BaseClasses - Win32 Release" :
cd "\ntdev\multimedia\DirectX\dxsdk\samples\multimedia\dshow\BaseClasses"
$(MAKE) /$(MAKEFLAGS) /F .\baseclasses.mak CFG="BaseClasses - Win32 Release"
cd "..\audiocap"
"BaseClasses - Win32 ReleaseCLEAN" :
cd "\ntdev\multimedia\DirectX\dxsdk\samples\multimedia\dshow\BaseClasses"
$(MAKE) /$(MAKEFLAGS) /F .\baseclasses.mak CFG="BaseClasses - Win32 Release" RECURSE=1 CLEAN
cd "..\audiocap"
!ELSEIF "$(CFG)" == "AudioCap - Win32 Debug"
"BaseClasses - Win32 Debug" :
cd "\ntdev\multimedia\DirectX\dxsdk\samples\multimedia\dshow\BaseClasses"
$(MAKE) /$(MAKEFLAGS) /F .\baseclasses.mak CFG="BaseClasses - Win32 Debug"
cd "..\audiocap"
"BaseClasses - Win32 DebugCLEAN" :
cd "\ntdev\multimedia\DirectX\dxsdk\samples\multimedia\dshow\BaseClasses"
$(MAKE) /$(MAKEFLAGS) /F .\baseclasses.mak CFG="BaseClasses - Win32 Debug" RECURSE=1 CLEAN
cd "..\audiocap"
!ENDIF
!ENDIF

View File

@@ -0,0 +1,254 @@
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.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
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#endif //_WIN32\r\n"
"#include ""res\\AudioCap.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON DISCARDABLE "res\\AudioCap.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 73
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About DirectShow AudioCap Sample"
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
LTEXT "AudioCap Version 8.1",IDC_STATIC,40,10,119,8,
SS_NOPREFIX
LTEXT "Copyright (c) 2000-2001 Microsoft Corporation",IDC_STATIC,40,
25,135,8
DEFPUSHBUTTON "OK",IDOK,178,7,50,14,WS_GROUP
LTEXT "This sample demonstrates how to capture audio data in selectable PCM formats, using any installed audio capture hardware and input pins.",
IDC_STATIC,40,40,165,24
END
IDD_AUDIOCAP_DIALOG DIALOGEX 0, 0, 351, 146
STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION |
WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "DirectShow AudioCapture Sample"
FONT 8, "MS Shell Dlg"
BEGIN
LISTBOX IDC_LIST_INPUT_DEVICES,7,40,89,51,LBS_SORT |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
LISTBOX IDC_LIST_INPUT_PINS,107,40,89,52,LBS_SORT |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
CONTROL "&Audition audio input?",IDC_CHECK_AUDITION,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,7,95,83,10
CONTROL "&Write audio output to file?",IDC_CHECK_WRITE,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,7,106,97,10
EDITTEXT IDC_EDIT_FILENAME,49,120,147,14,ES_AUTOHSCROLL
LISTBOX IDC_LIST_FILTERS,207,77,70,62,LBS_SORT |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
CONTROL "Mono",IDC_RADIO_MONO,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,211,30,35,10
CONTROL "Stereo",IDC_RADIO_STEREO,"Button",BS_AUTORADIOBUTTON,
256,30,45,10
CONTROL "8-bit",IDC_RADIO_8BIT,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,211,41,37,10
CONTROL "16-bit",IDC_RADIO_16BIT,"Button",BS_AUTORADIOBUTTON,256,
41,45,10
CONTROL "11 kHz",IDC_RADIO_11KHZ,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,211,52,40,10
CONTROL "22 kHz",IDC_RADIO_22KHZ,"Button",BS_AUTORADIOBUTTON,256,
52,40,10
CONTROL "44 kHz",IDC_RADIO_44KHZ,"Button",BS_AUTORADIOBUTTON,303,
52,38,10
PUSHBUTTON "&Record",IDC_BUTTON_RECORD,7,7,40,14
PUSHBUTTON "P&ause",IDC_BUTTON_PAUSE,51,7,40,14
PUSHBUTTON "&Stop",IDC_BUTTON_STOP,95,7,40,14
PUSHBUTTON "&Play",IDC_BUTTON_PLAY,139,7,40,14
CTEXT "Select an Input Device",-1,7,31,89,8
CTEXT "Select an Input Pin",-1,107,31,89,8
CTEXT "Graph Filters",-1,207,68,70,8
GROUPBOX "Audio Properties",-1,207,18,137,47
PUSHBUTTON "&Device Properties",IDC_BUTTON_PROPERTIES,132,97,64,14,
WS_DISABLED
CTEXT "Input Pins",-1,282,68,62,8
LISTBOX IDC_LIST_FILTER_INPUTS,282,77,62,26,LBS_SORT |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
CTEXT "Output Pins",-1,282,105,62,8
LISTBOX IDC_LIST_FILTER_OUTPUTS,282,113,62,26,LBS_SORT |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
RTEXT "Status :",-1,207,6,29,8
LTEXT "Ready",IDC_STATIC_STATUS,240,6,97,8
CTEXT "Capture To:",-1,7,123,38,8
END
#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 8,1,0,0
PRODUCTVERSION 8,1,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "DirectShow Sample\0"
VALUE "CompanyName", "Microsoft\0"
VALUE "FileDescription", "AudioCap MFC Application\0"
VALUE "FileVersion", "8.10\0"
VALUE "InternalName", "AudioCap\0"
VALUE "LegalCopyright", "Copyright (c) 2000-2001 Microsoft Corporation\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "AudioCap.EXE\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "DirectX 8 SDK\0"
VALUE "ProductVersion", "8.1\0"
VALUE "SpecialBuild", "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
#endif // !_MAC
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 228
TOPMARGIN, 7
BOTTOMMARGIN, 66
END
IDD_AUDIOCAP_DIALOG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 344
TOPMARGIN, 7
BOTTOMMARGIN, 139
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_ABOUTBOX "&About AudioCap..."
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\AudioCap.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,131 @@
//------------------------------------------------------------------------------
// File: AudioCapDlg.h
//
// Desc: DirectShow sample code - Main header for CAudioCapDlg class
//
// Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
#if !defined(AFX_AUDIOCAPDLG_H__CC9BF075_154D_430A_9E58_7311EC641C61__INCLUDED_)
#define AFX_AUDIOCAPDLG_H__CC9BF075_154D_430A_9E58_7311EC641C61__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <dshow.h>
//
// Constants
//
#define DEFAULT_BUFFER_TIME ((float) 0.05) /* 50 milliseconds*/
#define DEFAULT_FILENAME TEXT("c:\\test.wav\0")
#define RECORD_EVENT 0
#define PLAYBACK_EVENT 1
static const GUID CLSID_WavDest =
{ 0x3c78b8e2, 0x6c4d, 0x11d1, { 0xad, 0xe2, 0x0, 0x0, 0xf8, 0x75, 0x4b, 0x99 } };
/////////////////////////////////////////////////////////////////////////////
// CAudioCapDlg dialog
class CAudioCapDlg : public CDialog
{
// Construction
public:
CAudioCapDlg(CWnd* pParent = NULL); // standard constructor
HRESULT FillLists(void);
void ClearLists(void);
void SetDefaults(void);
void EnableButtons(BOOL bEnable);
void EnableRadioButtons(BOOL bEnable);
HRESULT InitializeCapture(void);
HRESULT GetInterfaces(void);
HRESULT GetPlaybackInterfaces();
void FreeInterfaces(void);
void FreePlaybackInterfaces(void);
void ReleaseCapture(void);
void ResetCapture(void);
void UpdateFilterLists(IGraphBuilder *pGB);
HRESULT HandleGraphEvent(void);
HRESULT HandlePlaybackGraphEvent(void);
HRESULT SetInputPinProperties(IAMAudioInputMixer *pPinMixer);
HRESULT SetAudioProperties();
HRESULT ActivateSelectedInputPin(void);
HRESULT RenderPreviewStream(void);
HRESULT RenderCaptureStream(void);
HRESULT DestroyPreviewStream(void);
HRESULT DestroyCaptureStream(void);
void ClearAllocatedLists(void);
void Say(TCHAR *szMsg);
// Dialog Data
//{{AFX_DATA(CAudioCapDlg)
enum { IDD = IDD_AUDIOCAP_DIALOG };
CStatic m_strStatus;
CButton m_btnMono;
CButton m_btn8BIT;
CButton m_btn11KHZ;
CButton m_btnPause;
CButton m_btnStop;
CButton m_btnPlay;
CListBox m_ListFilterOutputs;
CListBox m_ListFilterInputs;
CButton m_btnRecord;
CButton m_btnProperties;
CListBox m_ListInputs;
CListBox m_ListInputPins;
CListBox m_ListFilters;
CEdit m_StrFilename;
CButton m_CheckWriteFile;
CButton m_CheckAudition;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAudioCapDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
BOOL m_bPausedRecording;
IGraphBuilder *m_pGB, *m_pGBPlayback;
IMediaControl *m_pMC, *m_pMCPlayback;
IMediaEventEx *m_pME, *m_pMEPlayback;
ICaptureGraphBuilder2 *m_pCapture;
IBaseFilter *m_pInputDevice, *m_pRenderer, *m_pFileWriter,
*m_pSplitter, *m_pWAVDest;
// Generated message map functions
//{{AFX_MSG(CAudioCapDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
afx_msg void OnButtonFile();
afx_msg void OnSelchangeListInputDevices();
afx_msg void OnSelchangeListFilters();
afx_msg void OnButtonClear();
afx_msg void OnSelchangeListInputPins();
afx_msg void OnButtonProperties();
afx_msg void OnButtonPlay();
afx_msg void OnButtonPause();
afx_msg void OnButtonStop();
afx_msg void OnButtonRecord();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_AUDIOCAPDLG_H__CC9BF075_154D_430A_9E58_7311EC641C61__INCLUDED_)

View File

@@ -0,0 +1,13 @@
//
// AUDIOCAP.RC2 - resources Microsoft Visual C++ does not edit directly
//
#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...
/////////////////////////////////////////////////////////////////////////////

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// AudioCap.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"

View File

@@ -0,0 +1,27 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__4A7583C1_A5C1_4E31_A705_AFE7F8661E11__INCLUDED_)
#define AFX_STDAFX_H__4A7583C1_A5C1_4E31_A705_AFE7F8661E11__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__4A7583C1_A5C1_4E31_A705_AFE7F8661E11__INCLUDED_)

View File

@@ -0,0 +1,16 @@
DirectShow Sample -- AudioCap
-----------------------------
This sample application demonstrates PCM audio capture using DirectShow and allows
the user to audition the audio input while recording. AudioCap enables the user to
perform the following tasks:
- Capture audio to a file
- Select the audio capture device and its corresponding input pin
- View properties on the audio capture device
- Select the sample rate and number of channels (stereo or mono)
NOTE: In order to write .WAV files to your disk, you must first build and register
the WavDest filter in the Samples\Multimedia\DirectShow\Filters\WAVDest directory.
Without this filter, you may audition audio input, but you will not be able to
write it to your disk.

View File

@@ -0,0 +1,42 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by AudioCap.rc
//
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_AUDIOCAP_DIALOG 102
#define IDR_MAINFRAME 103
#define IDC_BUTTON_PLAY 1001
#define IDC_BUTTON_PAUSE 1002
#define IDC_BUTTON_STOP 1003
#define IDC_BUTTON_RECORD 1004
#define IDC_CHECK_AUDITION 1005
#define IDC_CHECK_WRITE 1006
#define IDC_EDIT_FILENAME 1008
#define IDC_LIST_INPUT_DEVICES 1009
#define IDC_LIST_OUTPUT_PINS 1010
#define IDC_LIST_INPUT_PINS 1011
#define IDC_LIST_FILTERS 1012
#define IDC_BUTTON_PROPERTIES 1025
#define IDC_RADIO_MONO 1026
#define IDC_RADIO_STEREO 1027
#define IDC_RADIO_8BIT 1028
#define IDC_RADIO_16BIT 1029
#define IDC_RADIO_11KHZ 1030
#define IDC_LIST_FILTER_INPUTS 1031
#define IDC_RADIO_22KHZ 1032
#define IDC_RADIO_44KHZ 1033
#define IDC_LIST_FILTER_OUTPUTS 1034
#define IDC_STATIC_STATUS 1035
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 131
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1036
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif