Skip to content

Commit c3a1789

Browse files
committed
No sfx play fix
1 parent ff2cfab commit c3a1789

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

SoundCenSe GTK/Misc/Misc.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputType>Library</OutputType>
88
<RootNamespace>Misc</RootNamespace>
99
<AssemblyName>Misc</AssemblyName>
10-
<ReleaseVersion>1.4.1</ReleaseVersion>
10+
<ReleaseVersion>1.4.2</ReleaseVersion>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1313
<DebugSymbols>true</DebugSymbols>

SoundCenSe GTK/SoundCenSeGTK.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ Global
182182
$0.VersionControlPolicy = $28
183183
$28.inheritsSet = Mono
184184
description = SoundCenSe, a audio engine for Dwarf Fortress, based on ZweiStein's SoundSense
185-
version = 1.4.1
185+
version = 1.4.2
186186
EndGlobalSection
187187
EndGlobal

SoundCenSe GTK/SoundCenSeGTK/Output/fmodPlayer.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,14 @@ public void PlaySound(SoundSoundFile sf, string channel, float volume = 1.0f, bo
151151
FMOD.Sound newSound;
152152
if (sf.Sound.loop == Loop.Stop_Looping)
153153
{
154-
fmodChannelSound chan = FmodChannelPool.Instance.GetSingleChannel(channel.ToLower());
155-
if (chan != null)
154+
if (!string.IsNullOrEmpty(channel))
156155
{
157-
chan.SoundSoundFile = sf;
158-
chan.StopLooping();
156+
fmodChannelSound chan = FmodChannelPool.Instance.GetSingleChannel(channel.ToLower());
157+
if (chan != null)
158+
{
159+
chan.SoundSoundFile = sf;
160+
chan.StopLooping();
161+
}
159162
}
160163
}
161164

SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
1818
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
1919

20-
[assembly: AssemblyVersion ("1.4.1.*")]
20+
[assembly: AssemblyVersion ("1.4.2.*")]
2121

2222
// The following attributes are used to specify the signing key for the assembly,
2323
// if desired. See the Mono documentation for more information about signing.

SoundCenSe GTK/SoundCenSeGTK/SoundCenSeGTK.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputType>WinExe</OutputType>
88
<RootNamespace>SoundCenSeGTK</RootNamespace>
99
<AssemblyName>SoundCenSeGTK</AssemblyName>
10-
<ReleaseVersion>1.4.1</ReleaseVersion>
10+
<ReleaseVersion>1.4.2</ReleaseVersion>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
1313
<DebugSymbols>true</DebugSymbols>

SoundCenSe GTK/SoundCenSeGUI/SoundCenSeGUI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputType>Library</OutputType>
88
<RootNamespace>SoundCenSeGUI</RootNamespace>
99
<AssemblyName>SoundCenSeGUI</AssemblyName>
10-
<ReleaseVersion>1.4.1</ReleaseVersion>
10+
<ReleaseVersion>1.4.2</ReleaseVersion>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1313
<DebugSymbols>true</DebugSymbols>

0 commit comments

Comments
 (0)