ogg to wav
This commit is contained in:
@@ -115,7 +115,7 @@ public sealed class TTSSystem : EntitySystem
|
|||||||
private bool TryCreateAudioSource(byte[] data, [NotNullWhen(true)] out IAudioSource? source)
|
private bool TryCreateAudioSource(byte[] data, [NotNullWhen(true)] out IAudioSource? source)
|
||||||
{
|
{
|
||||||
var dataStream = new MemoryStream(data) { Position = 0 };
|
var dataStream = new MemoryStream(data) { Position = 0 };
|
||||||
var audioStream = _audioSystem.LoadAudioOggVorbis(dataStream);
|
var audioStream = _audioSystem.LoadAudioWav(dataStream);
|
||||||
source = _audioSystem.CreateAudioSource(audioStream);
|
source = _audioSystem.CreateAudioSource(audioStream);
|
||||||
if (source == null)
|
if (source == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user