Skip to content

Commit

Permalink
Removed all platform-specific code; the entire project is now solely …
Browse files Browse the repository at this point in the history
…dependent on FerrisLibs :)
  • Loading branch information
ferris committed May 18, 2013
1 parent b3af887 commit 5427888
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 240 deletions.
182 changes: 0 additions & 182 deletions DirectSoundAudioDriver.cpp

This file was deleted.

50 changes: 0 additions & 50 deletions DirectSoundAudioDriver.h

This file was deleted.

3 changes: 1 addition & 2 deletions Main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "Common.h"
#include "Chip8/Chip8.h"
#include "Config.h"
#include "DirectSoundAudioDriver.h"

int Main(const List<String>& arguments)
{
Expand All @@ -12,7 +11,7 @@ int Main(const List<String>& arguments)
auto videoDriver = VideoDriverFactory::CreateDefault();
chip8.SetVideoDriver(videoDriver);

auto audioDriver = new DirectSoundAudioDriver();
auto audioDriver = AudioDriverFactory::CreateDefault();
chip8.SetAudioDriver(audioDriver);

const int numLatencies = 8;
Expand Down
6 changes: 2 additions & 4 deletions Vip8.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>FslD.lib;FmlD.lib;FelD.lib;FglD.lib;dsound.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>FslD.lib;FmlD.lib;FelD.lib;FglD.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -74,15 +74,14 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>Fsl.lib;Fml.lib;Fel.lib;Fgl.lib;dsound.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>Fsl.lib;Fml.lib;Fel.lib;Fgl.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Chip8\Apu.cpp" />
<ClCompile Include="Chip8\Chip8.cpp" />
<ClCompile Include="Chip8\Gpu.cpp" />
<ClCompile Include="Config.cpp" />
<ClCompile Include="DirectSoundAudioDriver.cpp" />
<ClCompile Include="Main.cpp" />
</ItemGroup>
<ItemGroup>
Expand All @@ -91,7 +90,6 @@
<ClInclude Include="Chip8\Gpu.h" />
<ClInclude Include="Common.h" />
<ClInclude Include="Config.h" />
<ClInclude Include="DirectSoundAudioDriver.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
2 changes: 0 additions & 2 deletions Vip8.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<ClCompile Include="Chip8\Gpu.cpp">
<Filter>Chip8</Filter>
</ClCompile>
<ClCompile Include="DirectSoundAudioDriver.cpp" />
<ClCompile Include="Chip8\Apu.cpp">
<Filter>Chip8</Filter>
</ClCompile>
Expand All @@ -27,7 +26,6 @@
<ClInclude Include="Chip8\Gpu.h">
<Filter>Chip8</Filter>
</ClInclude>
<ClInclude Include="DirectSoundAudioDriver.h" />
<ClInclude Include="Chip8\Apu.h">
<Filter>Chip8</Filter>
</ClInclude>
Expand Down

0 comments on commit 5427888

Please sign in to comment.