Unstable v0.19.1.0
This commit is contained in:
@@ -6,7 +6,7 @@ using System.Xml.Linq;
|
||||
|
||||
namespace Barotrauma.Sounds
|
||||
{
|
||||
public class OggSound : Sound
|
||||
class OggSound : Sound
|
||||
{
|
||||
private VorbisReader reader;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Barotrauma.Sounds
|
||||
{
|
||||
if (!muffleFilters.TryGetValue(sampleRate, out BiQuad filter))
|
||||
{
|
||||
filter = new LowpassFilter(sampleRate, 800);
|
||||
filter = new LowpassFilter(sampleRate, 1600);
|
||||
muffleFilters.Add(sampleRate, filter);
|
||||
}
|
||||
filter.Process(buffer);
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Xml.Linq;
|
||||
|
||||
namespace Barotrauma.Sounds
|
||||
{
|
||||
public abstract class Sound : IDisposable
|
||||
abstract class Sound : IDisposable
|
||||
{
|
||||
protected bool disposed;
|
||||
public bool Disposed
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Text;
|
||||
|
||||
namespace Barotrauma.Sounds
|
||||
{
|
||||
public class SoundBuffers : IDisposable
|
||||
class SoundBuffers : IDisposable
|
||||
{
|
||||
private static readonly HashSet<uint> bufferPool = new HashSet<uint>();
|
||||
#if OSX
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||
|
||||
namespace Barotrauma.Sounds
|
||||
{
|
||||
public class SoundSourcePool : IDisposable
|
||||
class SoundSourcePool : IDisposable
|
||||
{
|
||||
public uint[] ALSources
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace Barotrauma.Sounds
|
||||
}
|
||||
}
|
||||
|
||||
public class SoundChannel : IDisposable
|
||||
class SoundChannel : IDisposable
|
||||
{
|
||||
private const int STREAM_BUFFER_SIZE = 8820;
|
||||
private short[] streamShortBuffer;
|
||||
|
||||
@@ -9,7 +9,7 @@ using Barotrauma.IO;
|
||||
|
||||
namespace Barotrauma.Sounds
|
||||
{
|
||||
public class SoundManager : IDisposable
|
||||
class SoundManager : IDisposable
|
||||
{
|
||||
public const int SOURCE_COUNT = 32;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ using Barotrauma.Media;
|
||||
|
||||
namespace Barotrauma.Sounds
|
||||
{
|
||||
public class VideoSound : Sound
|
||||
class VideoSound : Sound
|
||||
{
|
||||
private readonly object mutex;
|
||||
private Queue<short[]> sampleQueue;
|
||||
|
||||
@@ -8,7 +8,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Barotrauma.Sounds
|
||||
{
|
||||
public class VoipSound : Sound
|
||||
class VoipSound : Sound
|
||||
{
|
||||
public override SoundManager.SourcePoolIndex SourcePoolIndex
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user