You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the following code I cannot get the AudioMediaBuffer audio to write to the WAVE file without it just becoming static. Please advise.
using NAudio.MediaFoundation;
using NAudio.Wave;
using Newtonsoft.Json;
using NLog;
using Skyview.CrossPortPluginLib.Interfaces;
using StreamCoders;
using StreamCoders.Encoder;
using StreamCoders.Helpers;
using StreamCoders.Wave;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using the following code I cannot get the AudioMediaBuffer audio to write to the WAVE file without it just becoming static. Please advise.
using NAudio.MediaFoundation;
using NAudio.Wave;
using Newtonsoft.Json;
using NLog;
using Skyview.CrossPortPluginLib.Interfaces;
using StreamCoders;
using StreamCoders.Encoder;
using StreamCoders.Helpers;
using StreamCoders.Wave;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;
namespace FileHandler.FileRecorder
{
public class FileRecorder : IStreamServer
{
private static Logger _Logger = LogManager.GetCurrentClassLogger();
private WaveOutput _Output = null;
private WaveFileWriter _OutputFileWriter = null;
private WaveFileWriter _Writer;
private string _LogInfoName = "";
private int _desiredFileSize = 0;//file size in bytes
private int _currentFileSize = 0;
private string _FileName = null;
}
Beta Was this translation helpful? Give feedback.
All reactions