[C#]SoundPlayerクラスを使用して、1行でwav再生を行う。
下記の1行で、wavファイルの再生が可能。 ( new System.Media.SoundPlayer( "test.wav" ) ).Play();( new System.Media.SoundPlayer( "test.wav" ) ).Play(); 非同期再生の場合は、PlaySync()を使います。 ちなみに、SoundPlayerではmp3の再生や再生音量の調整は出来ません。
続きを読む
下記の1行で、wavファイルの再生が可能。 ( new System.Media.SoundPlayer( "test.wav" ) ).Play();( new System.Media.SoundPlayer( "test.wav" ) ).Play(); 非同期再生の場合は、PlaySync()を使います。 ちなみに、SoundPlayerではmp3の再生や再生音量の調整は出来ません。