如何解决ubuntu中使用SDL_OpenAudio失败返回错误信息no such audio device
来源:互联网 发布:网络主播思瑞啪啪视频 编辑:程序博客网 时间:2024/05/21 13:53
If you built your own SDL, you probably didn't have development headers
for PulseAudio (or ALSA), so it's trying to use /dev/dsp, which doesn't
exist on many modern Linux systems (hence, SDL_Init(SDL_INIT_AUDIO)
succeeds, but no devices are found when you try to open one). "apt-get
install libasound2-dev libpulse-dev" and rebuild SDL...let the configure
script find the new headers so it includes PulseAudio and ALSA support.
If you didn't build your own SDL, maybe you can force it to use a
different audio path:
SDL_AUDIODRIVER=pulse ./mytestprogram
or
SDL_AUDIODRIVER=alsa ./mytestprogram
One of those two solutions will (probably) fix your problem.
for PulseAudio (or ALSA), so it's trying to use /dev/dsp, which doesn't
exist on many modern Linux systems (hence, SDL_Init(SDL_INIT_AUDIO)
succeeds, but no devices are found when you try to open one). "apt-get
install libasound2-dev libpulse-dev" and rebuild SDL...let the configure
script find the new headers so it includes PulseAudio and ALSA support.
If you didn't build your own SDL, maybe you can force it to use a
different audio path:
SDL_AUDIODRIVER=pulse ./mytestprogram
or
SDL_AUDIODRIVER=alsa ./mytestprogram
One of those two solutions will (probably) fix your problem.
--ryan.
转自http://forums.libsdl.org/viewtopic.php?t=7609
0 0
- 如何解决ubuntu中使用SDL_OpenAudio失败返回错误信息no such audio device
- Ubuntu No such device eth0
- Ubuntu 升级错误信息:mount: mounting none on /dev failed: no such device的解决办法
- 解决buildroot portmap: fork: No such device
- 解决nfs error: No such device
- VMWARE UBUNTU 虚拟机中 启动网络报“eth0 No such device”的解决方案
- setsockopt:no such device
- VMWare克隆后Ubuntu的"No such device eth0"错误
- ubuntu 提示no such device grub rescue> 的解决方法,简单
- VMWare克隆后Ubuntu的"No such device eth0"错误
- VMWare克隆后Ubuntu的"No such device eth0"错误
- VMWare克隆后Ubuntu的"No such device eth0"错误
- ubuntu和win7双系统引导,出现“no such device ”错误
- [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
- libpcap 使用 any interface的bug:SIOCGIFHWADDR: No such device
- Ubuntu中 iostream.h: No such file or directory 的解决
- Linux系列:解决Ubuntu或Fedora虚拟机重启网络时出现的“No such device eth0”或“Job failed”错误
- ld: /ubuntu/omnibook/sections.lds: No such file: No such file or directory解决
- 迷宫问题
- 音频简介
- 函数指针作为某个函数的参数
- HihoCoder第九周 状态压缩 二 与POJ2411总结
- 第一章:手工备份
- 如何解决ubuntu中使用SDL_OpenAudio失败返回错误信息no such audio device
- 我的IT学习笔记——SQL Server 2008
- django中url,静态文件,POST请求的配置
- mysql数据库备份
- CodeForces 546E - Soldier and Traveling(最大流+输出边流量)
- poj 3233(矩阵快速幂)
- 欢迎使用CSDN-markdown编辑器
- itms-services协议:跳转网页部署及PHP动态生成 iOS渠道包IPA一键安装之plist地址
- 学习STL过程中的一些零散记录1