Changeset 162
- Timestamp:
- Jan 12, 2013, 8:56:33 AM (10 years ago)
- Location:
- trunk/Utilities/LowLatencyWaveOutPlay
- Files:
-
- 7 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/LowLatencyWaveOutPlay/LowLatencyWaveOutPlay.cpp
r161 r162 32 32 for(SIZE_T nIndex = 0; nIndex < nDataCount; nIndex++) 33 33 pnData[nIndex] = (SHORT) (32000 * sin(1.0 * (g_nSampleIndex + nIndex) / g_WaveFormatEx.nSamplesPerSec * g_nFrequency * 2 * M_PI)); 34 g_nSampleIndex += nDataCount;34 g_nSampleIndex += (ULONG) nDataCount; 35 35 } 36 36 VOID CALLBACK waveOutProc(HWAVEOUT hWaveOut, UINT nMessage, DWORD_PTR nInstance, DWORD_PTR nParameter1, DWORD_PTR nParameter2) -
trunk/Utilities/LowLatencyWaveOutPlay/LowLatencyWaveOutPlay.sln
r161 r162 1 1 2 Microsoft Visual Studio Solution File, Format Version 1 1.003 # Visual Studio 201 02 Microsoft Visual Studio Solution File, Format Version 12.00 3 # Visual Studio 2012 4 4 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LowLatencyWaveOutPlay", "LowLatencyWaveOutPlay.vcxproj", "{999362AF-F625-4BD5-9EDF-5969C4801E35}" 5 5 EndProject … … 7 7 GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 8 Debug|Win32 = Debug|Win32 9 Debug|x64 = Debug|x64 9 10 Release|Win32 = Release|Win32 11 Release|x64 = Release|x64 10 12 EndGlobalSection 11 13 GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 14 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Debug|Win32.ActiveCfg = Debug|Win32 13 15 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Debug|Win32.Build.0 = Debug|Win32 16 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Debug|x64.ActiveCfg = Debug|x64 17 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Debug|x64.Build.0 = Debug|x64 14 18 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Release|Win32.ActiveCfg = Release|Win32 15 19 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Release|Win32.Build.0 = Release|Win32 20 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Release|x64.ActiveCfg = Release|x64 21 {999362AF-F625-4BD5-9EDF-5969C4801E35}.Release|x64.Build.0 = Release|x64 16 22 EndGlobalSection 17 23 GlobalSection(SolutionProperties) = preSolution -
trunk/Utilities/LowLatencyWaveOutPlay/LowLatencyWaveOutPlay.vcxproj
r161 r162 6 6 <Platform>Win32</Platform> 7 7 </ProjectConfiguration> 8 <ProjectConfiguration Include="Debug|x64"> 9 <Configuration>Debug</Configuration> 10 <Platform>x64</Platform> 11 </ProjectConfiguration> 8 12 <ProjectConfiguration Include="Release|Win32"> 9 13 <Configuration>Release</Configuration> 10 14 <Platform>Win32</Platform> 15 </ProjectConfiguration> 16 <ProjectConfiguration Include="Release|x64"> 17 <Configuration>Release</Configuration> 18 <Platform>x64</Platform> 11 19 </ProjectConfiguration> 12 20 </ItemGroup> … … 23 31 <UseOfAtl>Static</UseOfAtl> 24 32 </PropertyGroup> 33 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> 34 <ConfigurationType>Application</ConfigurationType> 35 <UseDebugLibraries>true</UseDebugLibraries> 36 <CharacterSet>Unicode</CharacterSet> 37 <UseOfAtl>Static</UseOfAtl> 38 </PropertyGroup> 25 39 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> 40 <ConfigurationType>Application</ConfigurationType> 41 <UseDebugLibraries>false</UseDebugLibraries> 42 <WholeProgramOptimization>true</WholeProgramOptimization> 43 <CharacterSet>Unicode</CharacterSet> 44 <UseOfAtl>Static</UseOfAtl> 45 </PropertyGroup> 46 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> 26 47 <ConfigurationType>Application</ConfigurationType> 27 48 <UseDebugLibraries>false</UseDebugLibraries> … … 36 57 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 37 58 </ImportGroup> 59 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> 60 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 61 </ImportGroup> 38 62 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 63 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 64 </ImportGroup> 65 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> 39 66 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 40 67 </ImportGroup> … … 42 69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 43 70 <LinkIncremental>true</LinkIncremental> 71 <OutDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\</OutDir> 72 <IntDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> 73 </PropertyGroup> 74 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> 75 <LinkIncremental>true</LinkIncremental> 76 <OutDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\</OutDir> 77 <IntDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> 44 78 </PropertyGroup> 45 79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 46 80 <LinkIncremental>false</LinkIncremental> 81 <OutDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\</OutDir> 82 <IntDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> 83 </PropertyGroup> 84 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> 85 <LinkIncremental>false</LinkIncremental> 86 <OutDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\</OutDir> 87 <IntDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> 47 88 </PropertyGroup> 48 89 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 90 <ClCompile> 91 <PrecompiledHeader>Use</PrecompiledHeader> 92 <WarningLevel>Level3</WarningLevel> 93 <Optimization>Disabled</Optimization> 94 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 95 </ClCompile> 96 <Link> 97 <SubSystem>Console</SubSystem> 98 <GenerateDebugInformation>true</GenerateDebugInformation> 99 </Link> 100 </ItemDefinitionGroup> 101 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> 49 102 <ClCompile> 50 103 <PrecompiledHeader>Use</PrecompiledHeader> … … 80 133 </Link> 81 134 </ItemDefinitionGroup> 135 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> 136 <ClCompile> 137 <WarningLevel>Level3</WarningLevel> 138 <PrecompiledHeader>Use</PrecompiledHeader> 139 <Optimization>Full</Optimization> 140 <FunctionLevelLinking>true</FunctionLevelLinking> 141 <IntrinsicFunctions>true</IntrinsicFunctions> 142 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 143 <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion> 144 <FavorSizeOrSpeed>Size</FavorSizeOrSpeed> 145 <OmitFramePointers>true</OmitFramePointers> 146 <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations> 147 <StringPooling>true</StringPooling> 148 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 149 </ClCompile> 150 <Link> 151 <SubSystem>Console</SubSystem> 152 <GenerateDebugInformation>true</GenerateDebugInformation> 153 <EnableCOMDATFolding>true</EnableCOMDATFolding> 154 <OptimizeReferences>true</OptimizeReferences> 155 </Link> 156 </ItemDefinitionGroup> 82 157 <ItemGroup> 83 158 <ClInclude Include="stdafx.h" /> … … 87 162 <ClCompile Include="stdafx.cpp"> 88 163 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader> 164 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader> 89 165 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader> 166 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader> 90 167 </ClCompile> 91 168 <ClCompile Include="LowLatencyWaveOutPlay.cpp" />
Note: See TracChangeset
for help on using the changeset viewer.