简单的C ++赢得控制台程序音频输出? [英] Simple c++ win console program for audio output?

查看:204
本文介绍了简单的C ++赢得控制台程序音频输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1 - 我只是想简单地用C播放.wav音频文件++程序。我不想让复杂的东西与音频文件......像录音或其他什么东西...只是玩。是否有可能不使用细节音频库?例如,Windows.h.Does它用简单的功能或不工作??

1 - I just want to simply play a .wav audio file in c++ program. I do NOT want make complex things with audio file...like recording or something else...just play it. Is it possible without using specifics audio libraries?? For example, Windows.h.Does it work with simple function or not??

2 - 是否有可能在控制台中播放音频文件

2 - Is it possible to play audio files in console?

推荐答案

您可以使用的 PlaySound 播放语音文件为:

You can use PlaySound to play a voice file as:

PlaySound(pathToFile, NULL, SND_FILENAME);

这篇关于简单的C ++赢得控制台程序音频输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆