첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using NAudio.Wave;
using NAudio.Wave.SampleProviders;

string sourceAudioFilePath1 = @"d:\source1.wav";
string sourceAudioFilePath2 = @"d:\source2.wav";
string targetAudioFilePath  = @"d:\target.wav";

using(AudioFileReader reader1 = new AudioFileReader(sourceAudioFilePath1))
{
    using(AudioFileReader reader2 = new AudioFileReader(sourceAudioFilePath2))
    {
        reader1.Volume = 0.75f;
        reader2.Volume = 0.75f;

        MixingSampleProvider provider = new MixingSampleProvider(new[] { reader1, reader2 });

        WaveFileWriter.CreateWaveFile16(targetAudioFilePath, provider);
    }
}
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요