在我的應用程序中,我需要記錄一些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);