Add missing file in VS project, and fix minor compile warnings.

This commit is contained in:
Stephen Anthony 2018-07-01 21:43:22 -02:30
parent cb6c04815e
commit 4329eb5c37
3 changed files with 13 additions and 5 deletions

View File

@ -176,12 +176,12 @@ void EmulationTiming::recalculate()
switch (myConsoleTiming) {
case ConsoleTiming::ntsc:
myAudioSampleRate = round(mySpeedFactor * 262 * 76 * 60) / 38;
myAudioSampleRate = uInt32(round(mySpeedFactor * 262 * 76 * 60) / 38);
break;
case ConsoleTiming::pal:
case ConsoleTiming::secam:
myCyclesPerSecond = round(mySpeedFactor * 312 * 76 * 50) / 38;
myCyclesPerSecond = uInt32(round(mySpeedFactor * 312 * 76 * 50) / 38);
break;
default:
@ -191,9 +191,9 @@ void EmulationTiming::recalculate()
myCyclesPerSecond = myAudioSampleRate * 38;
myCyclesPerFrame = 76 * myLinesPerFrame;
myMaxCyclesPerTimeslice = round(mySpeedFactor * myCyclesPerFrame * 2);
myMinCyclesPerTimeslice = round(mySpeedFactor * myCyclesPerFrame / 2);
myAudioFragmentSize = round(mySpeedFactor * AUDIO_HALF_FRAMES_PER_FRAGMENT * myLinesPerFrame);
myMaxCyclesPerTimeslice = uInt32(round(mySpeedFactor * myCyclesPerFrame * 2));
myMinCyclesPerTimeslice = uInt32(round(mySpeedFactor * myCyclesPerFrame / 2));
myAudioFragmentSize = uInt32(round(mySpeedFactor * AUDIO_HALF_FRAMES_PER_FRAGMENT * myLinesPerFrame));
myPrebufferFragmentCount = discreteDivCeil(
myPlaybackPeriod * myAudioSampleRate,

View File

@ -229,6 +229,7 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\common\AudioQueue.cxx" />
<ClCompile Include="..\common\AudioSettings.cxx" />
<ClCompile Include="..\common\audio\ConvolutionBuffer.cxx" />
<ClCompile Include="..\common\audio\LanczosResampler.cxx" />
<ClCompile Include="..\common\audio\SimpleResampler.cxx" />
@ -520,6 +521,7 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\common\AudioQueue.hxx" />
<ClInclude Include="..\common\AudioSettings.hxx" />
<ClInclude Include="..\common\audio\ConvolutionBuffer.hxx" />
<ClInclude Include="..\common\audio\LanczosResampler.hxx" />
<ClInclude Include="..\common\audio\Resampler.hxx" />

View File

@ -930,6 +930,9 @@
<ClCompile Include="..\emucore\EmulationWorker.cxx">
<Filter>Source Files\emucore</Filter>
</ClCompile>
<ClCompile Include="..\common\AudioSettings.cxx">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\common\bspf.hxx">
@ -1901,6 +1904,9 @@
<ClInclude Include="..\emucore\EmulationWorker.hxx">
<Filter>Header Files\emucore</Filter>
</ClInclude>
<ClInclude Include="..\common\AudioSettings.hxx">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="stella.ico">