XAudio2 - Play generated sine, when changing frequency clicking sound
问题 I want to develop an app to match your tinnitus frequency : A frequency is played and the user decrease or increase the freqency by pressing a plus or minus button. (see part of the codes, based on some coding from stackoverflow thx :-)) public static short[] BufferSamples = new short[44100 * 1 * 2]; private SourceVoice sourceVoice; private AudioBuffer buffer; private int Tfreq; public MatchTinn() { InitializeComponent(); Loaded += MatchTinn_Loaded; TFreq = 5000; } private void MatchTinn