private void PlatformInitialize(byte[] buffer, int sampleRate, int channels) { var audioData = AudioUtil.FormatWavData(buffer, sampleRate, channels); _audioBuffer = new Sound(audioData); _soundPlayer = _audioBuffer.CreatePlayer(); }
private void PlatformInitialize(byte[] buffer, int sampleRate, AudioChannels channels) { Rate = (float)sampleRate; Size = (int)buffer.Length; _name = ""; _data = AudioUtil.FormatWavData(buffer, sampleRate, (int)channels); }
private void PlatformInitialize(byte[] buffer, int sampleRate, AudioChannels channels) { _name = ""; _audioBuffer = new Sound(AudioUtil.FormatWavData(buffer, sampleRate, (int)channels)); }