play wav sound
播放 WAV文件
            string s = @"D:\Administrator\安装文件\完美世界国际版\patcher\skin\sounds\click.wav";
            System.Media.SoundPlayer player = new System.Media.SoundPlayer(s);
            player.PlaySync();            player.Play();//简单播放一遍
            player.PlayLooping();//循环播放
            player.PlaySync();//另起线程播放播放 资源中的WAV文件
            System.IO.Stream s =  Properties.Resources.click;
            System.Media.SoundPlayer player = new System.Media.SoundPlayer(s);
            player.PlaySync();选中项目-属性-资源-添加WAV文件 这种方法添加 进来
直接右键添加进来是不行的


 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号