Revised the redeem system, activated via channel point redeems. Added OBS transformation to redeems. Logs changed & writes to logs folder as well. Removed most use of IServiceProvider.
This commit is contained in:
@ -28,13 +28,11 @@ public class AudioPlaybackEngine : IDisposable
|
||||
throw new NullReferenceException(nameof(input));
|
||||
|
||||
if (input.WaveFormat.Channels == mixer.WaveFormat.Channels)
|
||||
{
|
||||
return input;
|
||||
}
|
||||
if (input.WaveFormat.Channels == 1 && mixer.WaveFormat.Channels == 2)
|
||||
{
|
||||
return new MonoToStereoSampleProvider(input);
|
||||
}
|
||||
if (input.WaveFormat.Channels == 2 && mixer.WaveFormat.Channels == 1)
|
||||
return new StereoToMonoSampleProvider(input);
|
||||
throw new NotImplementedException("Not yet implemented this channel count conversion");
|
||||
}
|
||||
|
||||
|
@ -2,10 +2,10 @@ using NAudio.Wave;
|
||||
|
||||
public class TTSPlayer
|
||||
{
|
||||
private PriorityQueue<TTSMessage, int> _messages; // ready to play
|
||||
private PriorityQueue<TTSMessage, int> _buffer;
|
||||
private Mutex _mutex;
|
||||
private Mutex _mutex2;
|
||||
private readonly PriorityQueue<TTSMessage, int> _messages; // ready to play
|
||||
private readonly PriorityQueue<TTSMessage, int> _buffer;
|
||||
private readonly Mutex _mutex;
|
||||
private readonly Mutex _mutex2;
|
||||
|
||||
public ISampleProvider? Playing { get; set; }
|
||||
|
||||
|
Reference in New Issue
Block a user