C# SoundPlayer soundPlayer = new SoundPlayerResourcesenemy2_down 播放声音 显示 参数无法从byte 转换为string
尝试使用以下代码:
byte[] soundData = Resources.enemy2_down; MemoryStream stream = new MemoryStream(soundData); SoundPlayer soundPlayer = new SoundPlayer(stream); soundPlayer.Play();
原文地址: https://www.cveoy.top/t/topic/fQL1 著作权归作者所有。请勿转载和采集!