在音頻編程時,常常需要知道本機聲卡支持的采樣位數及采樣頻率,在編程時用什么函式獲得?就像WINDOWS系統中小喇叭屬性中高級所羅列的引數一樣。
uj5u.com熱心網友回復:
spatialaudioclient.h 查到用ispatialaudioclient介面https://docs.microsoft.com/zh-cn/windows/desktop/api/spatialaudioclient/
但沒找到delphi怎么宣告
uj5u.com熱心網友回復:
ISpatialAudioClient::GetSupportedAudioObjectFormatEnumerator Gets an IAudioFormatEnumerator that contains all supported audio formats for spatial audio objects, the first item in the list represents the most preferable format.uj5u.com熱心網友回復:
waveInGetDevCaps、waveOutGetDevCapsuj5u.com熱心網友回復:
上面的是xp下的吧,win7下不行uj5u.com熱心網友回復:
怎么不行,win10都可以。uj5u.com熱心網友回復:
當前的能得到了,但支持的還沒解決轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/39574.html
