本文介绍了C ++中的声音(波形)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Visual Studio 2010 for C ++
我需要使用SoundPlayer为我的C ++程序播放音效.声音效果称为Help.wav.这是一个资源文件.该文件位于资源文件中名为"sounds"的文件夹中.
我已经输入了:
I am using Visual Studio 2010 for C++
I need to play a soundeffect for my C++ program with SoundPlayer. The sound effect is called Help.wav. It is a RESOURCE FILE. The file is in a folder called ''sounds'' within the resource files.
I have already typed:
using namespace System::Media;
SoundPlayer^ player = gcnew SoundPlayer();
player->SoundLocation =;
player->Load();
player->Play();
我在查找"player-> SoundLocation =;"的输入时遇到麻烦线.
任何帮助将不胜感激.
I am having trouble finding out what to type for the "player->SoundLocation =;" Line.
Any help would be appreciated.
推荐答案
这篇关于C ++中的声音(波形)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!