在我的应用程序中,我需要记录一些wav文件并将它们设置为特定的音量和音高。现在我可以使用winmm.dll录制和播放.wav文件,但我不知道如何修改它们。 private void Record()
{
mciSendString("open new Type waveaudio Alias recsound", "", 0, 0);
mciSendString(
我想编码音频流到IMA ADPCM,这是我的代码。 public Byte[] EncodeDVI(Byte[] source)
{
var resampleStream = new AcmStream(new WaveFormat(11025, 16, 1), new ImaAdpcmWaveFormat(11025, 16, 1));
Buffer.Bl
我想使用以下代码将wav文件转换为mp3。 using (var wavRdr = new WaveFileReader(item))
using (var mp3Writer = new LameMP3FileWriter(outputPath.Replace(".wav", ".mp3"), wavRdr.WaveFormat, _bitRate, tag))
我的c#代码如下,它没有提供任何错误,但没有声音输出。我使用来自COM14端口的putty和受监控的数据流很好。这是我第一次在NAudio中,所以不知道那我做错了什么。 WaveInEvent waveSource;
WaveOut waveOut = new WaveOut();
WaveFormat format = new WaveFormat(8000, 16, 1);