Last active
August 29, 2015 14:05
C#にてDirectXのAudioVideoPlaybackを利用した同時再生。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.DirectX.AudioVideoPlayback; | |
private void button1_Click(object sender, EventArgs e) { | |
Audio audio1 = new Audio(@"C:\Windows\Media\tada.wav"); | |
audio1.Play(); | |
} | |
private void button2_Click(object sender, EventArgs e) { | |
Audio audio2 = new Audio(@"C:\Windows\Media\chimes.wav"); | |
audio2.Play(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment