DirectSound8在插入的Windows 7与Windows 10 WRT耳机上具有不同的行为

在Windows 10上,没有插入耳机:

directsoundCreate8 returns S_OK
IdirectsoundBuffer8::Play returns 0x8889000F (potentially AUDCLNT_E_ENDPOINT_CREATE_FAILED) 

这是第一个返回任何错误的调用。

在Windows 7上,没有插入耳机:

directsoundCreate8 returns DSERR_NODRIVER;

问题是,如果Play()调用是第一个返回任何错误的调用,则我必须已经加载并解码了声音(昂贵),只是想弄清楚我无法播放声音...

这看起来很疯狂,所以我一定做错了。

iCMS 回答:DirectSound8在插入的Windows 7与Windows 10 WRT耳机上具有不同的行为

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1852917.html

大家都在问