git ssb

0+

kode54 / syntrax-c



Commit 2028d2a150fa4f36dc30c822702779c7e6d94fd5

Added MSVC project file, sped up unmixed playback, and fixed a bug with one song that wraps the entire pattern list.

Christopher Snowhill authored on 3/14/2016, 5:46:00 AM
Christopher Snowhill committed on 6/13/2018, 12:10:58 AM
Parent: a55afe6b30b1ab7842f30d79736858939c92f6a9

Files changed

src/syntrax/syntrax.cchanged
src/syntrax/syntrax.hchanged
prj/syntrax-c/.gitignoreadded
prj/syntrax-c/syntrax-c.vcxprojadded
prj/syntrax-c/syntrax-c.vcxproj.filtersadded
src/syntrax/syntrax.cView
@@ -1805,9 +1805,9 @@
18051805 tc->freq = 10;
18061806
18071807 v->gain = (tc->volume + 10000) / 39;
18081808 v->delta = (tc->freq << 8) / p->SAMPLEFREQUENCY;
1809- if (v->delta != v->last_delta)
1809+ if (v->delta != v->last_delta && outBuff )
18101810 {
18111811 double fdelta = (double)v->delta * (1.0 / (double)0x100);
18121812 v->last_delta = v->delta;
18131813 resampler_set_rate(v->resampler[0], fdelta);
src/syntrax/syntrax.hView
@@ -92,9 +92,9 @@
9292 int volume;
9393 int ACKCWV;
9494 int sampPos;
9595 int insNum;
96- int EQMIWERPIF;
96+ uint8_t EQMIWERPIF;
9797 int freq;
9898 int HFRLJCG;
9999 int VNVJPDIWAJQ;
100100 int hasLoop;
@@ -193,10 +193,10 @@
193193 } Row;
194194
195195 typedef struct
196196 {
197- int16_t patIndex; //0 means empty
198- int16_t patLen;
197+ uint16_t patIndex; //0 means empty
198+ uint16_t patLen;
199199 } Order;
200200
201201 typedef struct
202202 {
@@ -306,9 +306,9 @@
306306 int WDTECTE;
307307 int PQV;
308308 int AMVM;
309309 int DONGS;
310- int posCoarse;
310+ uint8_t posCoarse;
311311 int AMYGPFQCHSW;
312312 int posFine;
313313 int8_t mutedChans[SE_MAXCHANS];
314314
prj/syntrax-c/.gitignoreView
@@ -1,0 +1,3 @@
1+*.user
2+Debug
3+Release
prj/syntrax-c/syntrax-c.vcxprojView
@@ -1,0 +1,87 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+ <ItemGroup Label="ProjectConfigurations">
4+ <ProjectConfiguration Include="Debug|Win32">
5+ <Configuration>Debug</Configuration>
6+ <Platform>Win32</Platform>
7+ </ProjectConfiguration>
8+ <ProjectConfiguration Include="Release|Win32">
9+ <Configuration>Release</Configuration>
10+ <Platform>Win32</Platform>
11+ </ProjectConfiguration>
12+ </ItemGroup>
13+ <ItemGroup>
14+ <ClCompile Include="..\..\src\syntrax\file.c" />
15+ <ClCompile Include="..\..\src\syntrax\resampler.c" />
16+ <ClCompile Include="..\..\src\syntrax\syntrax.c" />
17+ </ItemGroup>
18+ <ItemGroup>
19+ <ClInclude Include="..\..\src\syntrax\file.h" />
20+ <ClInclude Include="..\..\src\syntrax\resampler.h" />
21+ <ClInclude Include="..\..\src\syntrax\syntrax.h" />
22+ </ItemGroup>
23+ <PropertyGroup Label="Globals">
24+ <ProjectGuid>{F66764E0-B136-4EDB-8F6A-8D2C4E984CBC}</ProjectGuid>
25+ <Keyword>Win32Proj</Keyword>
26+ <RootNamespace>syntraxc</RootNamespace>
27+ </PropertyGroup>
28+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30+ <ConfigurationType>StaticLibrary</ConfigurationType>
31+ <UseDebugLibraries>true</UseDebugLibraries>
32+ <CharacterSet>Unicode</CharacterSet>
33+ </PropertyGroup>
34+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35+ <ConfigurationType>StaticLibrary</ConfigurationType>
36+ <UseDebugLibraries>false</UseDebugLibraries>
37+ <WholeProgramOptimization>true</WholeProgramOptimization>
38+ <CharacterSet>Unicode</CharacterSet>
39+ </PropertyGroup>
40+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
41+ <ImportGroup Label="ExtensionSettings">
42+ </ImportGroup>
43+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
44+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
45+ </ImportGroup>
46+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
47+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
48+ </ImportGroup>
49+ <PropertyGroup Label="UserMacros" />
50+ <PropertyGroup />
51+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
52+ <ClCompile>
53+ <PrecompiledHeader>
54+ </PrecompiledHeader>
55+ <WarningLevel>Level3</WarningLevel>
56+ <Optimization>Disabled</Optimization>
57+ <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
58+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
59+ </ClCompile>
60+ <Link>
61+ <SubSystem>Windows</SubSystem>
62+ <GenerateDebugInformation>true</GenerateDebugInformation>
63+ </Link>
64+ </ItemDefinitionGroup>
65+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
66+ <ClCompile>
67+ <WarningLevel>Level3</WarningLevel>
68+ <PrecompiledHeader>
69+ </PrecompiledHeader>
70+ <Optimization>MaxSpeed</Optimization>
71+ <FunctionLevelLinking>true</FunctionLevelLinking>
72+ <IntrinsicFunctions>true</IntrinsicFunctions>
73+ <PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
74+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
75+ <FloatingPointModel>Fast</FloatingPointModel>
76+ </ClCompile>
77+ <Link>
78+ <SubSystem>Windows</SubSystem>
79+ <GenerateDebugInformation>true</GenerateDebugInformation>
80+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
81+ <OptimizeReferences>true</OptimizeReferences>
82+ </Link>
83+ </ItemDefinitionGroup>
84+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
85+ <ImportGroup Label="ExtensionTargets">
86+ </ImportGroup>
87+</Project>
prj/syntrax-c/syntrax-c.vcxproj.filtersView
@@ -1,0 +1,35 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+ <ItemGroup>
4+ <Filter Include="Source Files">
5+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+ </Filter>
8+ <Filter Include="Header Files">
9+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+ <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+ </Filter>
12+ </ItemGroup>
13+ <ItemGroup>
14+ <ClCompile Include="..\..\src\syntrax\file.c">
15+ <Filter>Source Files</Filter>
16+ </ClCompile>
17+ <ClCompile Include="..\..\src\syntrax\resampler.c">
18+ <Filter>Source Files</Filter>
19+ </ClCompile>
20+ <ClCompile Include="..\..\src\syntrax\syntrax.c">
21+ <Filter>Source Files</Filter>
22+ </ClCompile>
23+ </ItemGroup>
24+ <ItemGroup>
25+ <ClInclude Include="..\..\src\syntrax\file.h">
26+ <Filter>Header Files</Filter>
27+ </ClInclude>
28+ <ClInclude Include="..\..\src\syntrax\resampler.h">
29+ <Filter>Header Files</Filter>
30+ </ClInclude>
31+ <ClInclude Include="..\..\src\syntrax\syntrax.h">
32+ <Filter>Header Files</Filter>
33+ </ClInclude>
34+ </ItemGroup>
35+</Project>

Built with git-ssb-web