録画してると音源ループしたときに無音が生じてしまう(DirectSoundが重いため)ので若干の音源編集とプログラム改変
これで録画の分の音は確保できました~
※ちなみにいつもプレイしているときに使っている「ASIO」という再生デバイスとかWASAPIではちゃんと切れ目なしにループします!今後の生放送にご期待ください!

Search
録画してると音源ループしたときに無音が生じてしまう(DirectSoundが重いため)ので若干の音源編集とプログラム改変
これで録画の分の音は確保できました~
※ちなみにいつもプレイしているときに使っている「ASIO」という再生デバイスとかWASAPIではちゃんと切れ目なしにループします!今後の生放送にご期待ください!
Description of the new feature/enhancement Apparently DirectSound is kind of poorly supported since Windows Vista. ... <看更多>
音頻輸出對聲音影響有兩方面,一是重採樣,二是干擾。實際上電腦只要選擇默認的音頻數據輸出(WaveOut或DirectSound),就會與其它應用程式同時傳輸音頻信號,而這裡就 ...
#2. WASAPI vs ASIO vs Directsound : r/headphones - Reddit
WASAPI will mute all other sounds that are played while playing music, called exclusive mode. Directsound is pretty different than the other technologies, ...
#3. WASAPI與Waveout 與Directsound的區別 - 台部落
WASAPI 的全稱是Windows Audio Session API(Windows音頻會話API),是從Windows Vista之後引入的UAA(Universal Audio Architecture)音頻架構所屬的API。
#4. 网易云的directsound和waveout 和wasapi的区别 - 简书
用外接的扬声器体验更好,相同外接扬声器下,directSound效果好于wasapi(网上传言的wasapi好,但我的实际体验却很差,声音比较毛糙),waveout是个很 ...
#5. WASAPI与Waveout 与Directsound的区别_流浪者之路的博客
WASAPI 的全称是Windows Audio Session API(Windows音频会话API),是从Windows Vista之后引入的UAA(Universal Audio Architecture)音频架构所属的API。
#6. ASIO, WASAPI, Direct Sound... is there any difference in ...
Some people say that ASIO gives the best sound, some WASAPI, some say Direct Sound is as good as it can get. What's the truth? I'm on Windows 10 ...
#7. 取得串流路由的裝置端點- Win32 apps - Microsoft Learn
... 例如媒體基礎、DirectSound 和Wave API,藉由處理從現有裝置切換至新的 ... 直接使用核心音訊API 的媒體應用程式, (WASAPI 用戶端) 可以提供任何 ...
#8. DirectSound - 维基百科,自由的百科全书
DirectSound 是微軟所開發DirectX的組件之一,可以在Windows操作系統上錄音,並且記錄波形音效(waveform sound)。目前DirectSound是一個成熟的API,提供許多有用的 ...
#9. Replace DirectSound with WASAPI · Issue #14023 - GitHub
Description of the new feature/enhancement Apparently DirectSound is kind of poorly supported since Windows Vista.
#10. 现在觉得能听出ASIO,WASAPI,DirectSound区别的都是神
我觉得ASIO动听的DirectSound也好听,至于总体音质水平感觉完全是设备决定的 ... 不光ASIO,WASAPI,DIRECTSOUND有区别,不同版本的ASIO都有差异。
#11. Re: [心得] 播放軟體的強度- 精華區Audiophile - 批踢踢實業坊
DirectSound 的輸出也是到核心的mixer, 使用這種方法的程式會載 ... WASAPI: 在Windows Vista/7下面, 由於微軟認為有DirectSound跟WaveOut兩個API很 ...
#12. Windows API 对声音的影响 - 知乎专栏
上一篇讲如何使用ASIO驱动配合异步传输,能够提高USB的音质和降低线材的影响。因为重点放在ASIO,没有解释清楚Wasipa和Direct Sound。按最晚面世时间排ASIO>DS>Wasapi ...
#13. should you use DirectSound(default), WASAPI or ASIO - Xylio
WASAPI - this is a lot better than DirectSound as it provides less latency (usually between 10ms and 30ms) so it's more suitable to real-time ...
#14. 不同音频API有什么区别?DirecSound/WaveOut/Wasapi我该 ...
DirecSound/WaveOut/Wasapi我该怎么选? ... 的DOS上编写游戏,于是1995年9年微软推出了革命性的DirectX API,其中包含目前主流的DirectSound(DS)。
#15. MME, Windows DirectSound or Wasapi - audio - Super User
Between DirectSound and WASAPI there is not a big difference, as DirectSound is basically just a DirectX-related Interface to the Windows Audio ...
#16. Directsound vs WASAPI vs ASIO - HydrogenAudio
WASAPI has an advantage of grabbing audio from the Windows mixer when recording (skipping the digital to analog and analog to digital stuff) at ...
#17. Is DirectSound and WinMM based on WASAPI? - Stack Overflow
With a couple of highly specialized exceptions (directks, ASIO, openal), all audio rendering in Windows goes through WASAPI. This includes audio rendering ...
#18. MME, Windows DirectSound or Wasapi (3 Solutions!!)
MME, Windows DirectSound or WasapiHelpful? Please support me on Patreon: https://www.patreon.com/roelvandepaarWith thanks & praise to God, ...
#19. Options and Settings - Audio Driver - DirectSound/WASAPI
Note that these settings apply to both DirectSound and WASAPI (although with WASAPI SCS always uses the BASS mixer). BASS Audio Library Settings. Do NOT use ...
#20. WASAPI - 中文百科知識
WASAPI 是從Windows Vista之後引入的UAA(Universal Audio Architecture)音頻架構 ... 出來的MME以及DirectSound API便不再直接起作用,取而代之是以WASAPI(Windows ...
#21. Que es ASIO, Wasapi y Direct sound? - PC - Foro 3DJuegos
Mientras que el DirectSound de Microsoft es usado normalmente como intermediario para el audio por usuarios no profesionales, ASIO permite a los músicos y ...
#22. DirectSound - Wikiwand
而配合UAA架構,微軟在Windows Vista開始重寫其音效框架,並且增加一套全新的音頻API,Windows Audio Session API(WASAPI)給軟件開發者。 此API完全改寫以往舊版Windows ...
#23. NME Directsound WASAPI WDM-KS - MuseScore
NME Directsound WASAPI WDM-KS ASIO It seems BETA 3.5 Windows 10 you can only use NME the others showed greyed out, but you cant apply it.
#24. Audacity Recordings with MME (or DirectSound) vs. WASAPI
Audacity Recordings with MME (or DirectSound) vs. WASAPI at Different Sample Rates. The "sound card" is the DA2USB, the Signal source is very special and ...
#25. System Audio Wasapi or Directsound? - Kodi Forums
WASAPI : HDMI Bose LS-34 (Nvidia high definition) So should i use Directsound or WASAPI for Audio Decoder and Audio Passthrough or a ...
#26. DirectSound/DS、WaveOut、Kernel Streaming/KS - 未名Q
WASAPI :是Vista之后的,较佳选择输出方式。 再来详细看:. ASIO、WDM都是指音频通道,就是音频数据走的路。 ASIO指的是ASIO音频 ...
#27. Tutorial - Selecting Your Recording Device - Audacity Manual
Audio Host · Windows DirectSound may by default have only slightly lower latency than MME. · Selecting Windows DirectSound or Windows WASAPI and ...
#28. When to use what - ASIO/DirectSound/WASAPI
On Windows there's now a new WASAPI audio driver mode in Renoise's audio prefs, which allows, compared to DirectSound, lower latencies and ...
#29. Kernel Streaming、WASAPI和ASIO工作原理归纳- 台式耳机 ...
Waveout、DirectSound、Kernel Streaming、WASAPI和ASIO工作原理归纳, ... 作为系统中独立的音频通道可以避开DirectSound或其他通道,使得ASIO下的 ...
#30. wasapi安裝2023-精選在Instagram/IG照片/Dcard上的焦點新聞 ...
輸出支援:DirectSound / ASIO / WASAPI · 18-band 均衡器及內建音效· 32-bit 音訊處理· 使用多個播放列表· 強大的功能及友善的界面· 建立 .
#31. Components Repository - WASAPI output support - foobar2000
WASAPI output support. By: Peter. Adds Windows Audio Session API exclusive mode output support, allowing bit-exact output and muting all other sounds.
#32. Music playback in Audacity is not smooth and noises are audible
... audio host is set to MME or Windows DirectSound, music can be played properly. However, noises are audible when the audio host is set to Windows WASAPI.
#33. PC-HiFi坎坷之路的心得 - iFuun
比如比較常見的DirectSound、Waveout,以及相對少見的WASAPI、ASIO、Kernel等。 他們在不同系統中的名字也不一樣,如果用蘋果的iTunes作為播放器,你 ...
#34. What are ASIO and WASAPI - NuPrime Audio
Whereas Microsoft's DirectSound is commonly used as an intermediary signal path for non-professional users, ASIO allows musicians and sound engineers to access ...
#35. 网易云下DirecSound/WaveOut/Wasapi输出有什么区别?
WaveOut、DirectSound(简称DS)就好比最一般的公用车道,大家可以并行走(程序可以一起发声),但要受到一些旁车的影响。 WASAPI好比在这条操作系统音频之路上划出一条 ...
#36. ASIO vs WASAPI vs DirectSound | diyAudio
ASIO vs WASAPI vs DirectSound ... This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
#37. Audio Preferences - Audiokinetic
... then WASAPI, and finally DirectSound. WASAPI - The Windows Audio Session API, also used on Mac. Refer to MSDN for more information about WASAPI.
#38. System Properties - GoldWave Manual
Core Audio/WASAPI is selected by default, but DirectSound may be used instead if playback or recording probles occur. DirectSound was discontinued in Windows ...
#39. G-Audio by Dataflow_G - Toolkit for LabVIEW Download - VIPM
Playback and capture using selectable backends (WASAPI, DirectSound, Core Audio, PulseAudio, ALSA, etc) * Multi-channel audio mixer
#40. DirectSound - NiNa.Az
而配合UAA架構,微軟在Windows Vista開始重寫其音效框架,並且增加一套全新的音訊API,Windows Audio Session API(WASAPI)給軟件開發者。 此API完全改寫以往舊版Windows ...
#41. WASAPI、DirectSound/DS、WaveOut、Kernel ... - 程序员宅基地
WASAPI 、DirectSound/DS、WaveOut、Kernel Streaming/KS_weixin_30565327的博客-程序员宅基地. 先放结论:. ASIO:硬件支持+对应驱动程序; DS:兼容性最好 ...
#42. Is MME and DirectSound on Windows Performing better than ...
Is MME and DirectSound on Windows Performing better than WASAPI and Linux ALSA/JACK?? Post by dfira » Sat Dec 05, 2020 3:51 pm. I do not have a listening ...
#43. VX820e Multichannel PCM Sound Card - Digigram
... with software applications based on standard driver interfaces such as WDM Kernel streaming, DirectSound, Wasapi, and ASIO for Windows:.
#44. Windows audio APIs - Official Kodi Wiki
... Windows XP and earlier versions (DirectSound, XAudio2, et al.) exist since then only as emulated session instances atop WASAPI, ...
#45. WASAPI, DirectSound or Waveout - MediaMonkey forum
WASAPI in non-exclusive mode is essentially the same as DirectSound (main difference being that WASAPI will not work on Windows XP, while ...
#46. 17321 (Unhandled exception in DirectSound) - VirtualBox
It is good to have an option to select device from DirectSound or WASAPI. Audio output available when switch to WASAPI in some applications.
#47. DirectSound vs WASAPI vs ASIO - Engineer Tips
DirectSound – this is the standard audio mode on Windows. · WASAPI – this is a lot better than DirectSound as it provides less latency (usually ...
#48. Le guide du son USB « bit‐à‐bit » pour audiophiles
DirectSound. Voir le guide de configuration WASAPI pour Windows 7. ‐ ASIO (Audio Stream Input/Output) est une autre méthode de transport audio supérieure à.
#49. How can I use the WASAPI device - Windows - JUCE Forum
Audio Device driver (with exclusive and low latency versions) and DirectSound. It is not a problem with my system since in Audacity, in addition ...
#50. 6 方法| 解決Audacity 不錄製電腦聲音或麥克風音訊- EaseUS
該設定按鈕在主介面左側,有MME、Windows DirectSound、WASAPI三個選項。 MME 設定. 方法3. 啟用Windows 麥克風設定. 您可以通過從Windows 控制面板設定聲音來應用此方法。
#51. DirectSound - Translation into Russian - examples English
Translations in context of "DirectSound" in English-Russian from Reverso Context: ... Support various audio outputs, including DirectSound, WASAPI and ASIO.
#52. Wave Out, WDM, WASAPI .... whats the best one ... - KVR Audio
So I am stuck with the choice between WaveOut, WDM, DirectSound, Dummy Audio and WASAPI. I know I'm going to get some latency here, ...
#53. WASAPI vs Directsound(compatibility mode) latency (test ...
Forums » osu! » Development » WASAPI vs Directsound(compatibility mode) latency (test results)
#54. How to play music using a "direct" driver? - Studio - Audirvana
Hi, Some people say that ASIO gives the best sound, some WASAPI, some say Direct Sound is as good as it can get. What's the truth?
#55. 不同音频API 有什么区别?DirecSound/WaveOut/Wasapi 我该 ...
也不支持硬件加速,只能软解吃CPU,如果CPU 吃不消就会爆音断音。 · DirectSound. 由于1994 年的Win95 老API 的多媒体函数响应太慢,很多程序员都偏向于 ...
#56. pa-wavplay for 32-bit and 64-bit - File Exchange - MathWorks
Play and record multi-channel audio using ASIO, WASPI, DirectSound, ... contains four 32-bit and four 64-bit MEX files for playing audio using ASIO, WASAPI, ...
#57. ASIO/WASAPI output modes in Reference 4 Systemwide [WIN]
... with DAW - you will still need to run DAW (or any other advanced audio software) in Wasapi or DirectSound to be able to use Systemwide as DAW output.
#58. Initialise DirectSound, WASAPI and ASIO from the same app
NET to initialise DirectSound, WASAPI and ASIO for input and output in the same application? I'd like to stream to a multiple servers ...
#59. Wasapi, ASIO, Direct Sound, Oh My! - Software
I've noticed when using Wasapi (both in Jriver and Roon) I can sometimes ... really noticed the issue when playing music via 'Direct Sound'.
#60. wasapi delphi free download - SourceForge
MfPack covers the Delphi Api of: - Core Audio API's: * Windows Audio Session API (WASAPI, successor of DirectSound) * DeviceTopology API ...
#61. What's up with WASAPI? - Mark Heath
This includes WASAPI (Windows Audio Session API), a brand new API for ... DirectSound - has its uses, particularly for game development, ...
#62. The advantages of WASAPI over Direct Sound
Audio output devices don't all work the same with respect to WASAPI exclusive mode. A bit of configuration is sometimes needed. DirectSound ...
#63. Bug on default audio device selection on WASAPI?
Basically it seems the WASAPI driver doesn't honor the windows default audio device. M… ... I am now gonna try directsound:
#64. Glossary - Virtual Audio Cable - user manual
WASAPI, DirectSound and MME interfaces can be considered "high-level" only in comparison to Kernel Streaming because they are built on top of KS.
#65. VZX Artiste | Features
Dual Core CPU; 1 GB free RAM; Discrete GPU with OpenGL 4.6 support (AMD or Nvidia); 200MB free disk space; Sound Card supporting WASAPI, DirectSound or ASIO.
#66. WASAPI or DirectSound | Overclockers UK Forums
I did not see any difference with WASAPI , providing I had disabled the (DIRECTSOUND) windows sound effects/processing and given exclusive ...
#67. The Difference Between the ASIO, WDM and MME Drivers
MME, WASAPI, and WDM are Windows OS-specific audio drivers. With these drivers, audio is streamed through the OS, which is then sent to an ...
#68. bda-1 usb and ASIO/WASAPI/Directsound - AudioCircle
All works well but as this is my first time using USB audio in any form, do I have to care about ASIO/WASAPI/Directsound "stuff" when using ...
#69. Advice Using WASAPI - MusicBee
Advice Using WASAPI. ... I have this recurring problem using WASAPI. ... Use DirectSound which actually uses WASAPI in shared mode on ...
#70. Win7以下看影片應該設定Directsound還是Waveout?
用過Reclock之類的軟體讓播放影片能使用WASAPI... 但效果不是很好... 請問看影片WIN7應該用怎麼樣的輸出介面呢? 麻煩懂更深的人可以 ...
#71. Does WASAPI support 24/192? - Head-Fi
Foobar is "playing" the songs, but outputting no sound. I tried setting the output of foobar to DirectSound, and everything seems to work there, ...
#72. DirectSound - AIMP
When i change Wasapi then i can't change Stereo or 5.1 Surround. You can change this in Windows. Logged ...
#73. Windows DJ Software Tips | Using WASAPI As An Alternative ...
... built-in audio output device (sound card) you should try using the Microsoft WASAPI driver option as an alternative to Direct Sound.
#74. 实测:ASIO 的音质更好? - 叉烧网
在Foobar 的下拉菜单中你起码能看到MME、WDM、KX、ASIO、DirectSound、WASAPI...幸好对于专业音乐人来说,他们只需选择 ASIO 驱动。
#75. AV: Sound Latency - Windows Vista / Windows 7 (and beyond ...
Under Windows XP, the DirectSound API provides a thin layer between ... or later and using either the ASIO or Core Audio/WASAPI API options ...
#76. ad_status driver help. Windows 7 - MaxMSP Forum - Cycling '74
The default is "ad_direct sound," but I have to select "ad_portaudio WINDOWS directsound" or "ad_portaudio WASAPI directsound" in order for ...
#77. Win7以下看影片應該設定Directsound還是Waveout? - Mobile01
所以現在就算是用Directsound也是模擬出來的... 這樣說的話... Waveout會比較有更好的表現嗎? 用過Reclock之類的軟體讓播放影片能使用WASAPI.
#78. KKBOX Windows 版開放Bit-Perfect 模式無損音質聆聽 - Cool3c
先不管上面的描述是甚麼,總之先找到目前音效輸出裝置的WASAPI 或是ASIO 模式,若選擇WASAPI 模式則要選擇( Exclusive )模式,如此一來就能完成此次 ...
#79. Day 19 - Audio Latency - Handmade Hero
cpp code from day 19 to use Core Audio/WASAPI, not DirectSound. On my machine DirectSound works only with FramesOfAudioLatency = 3 frames. Core ...
#80. DTXMania_Sound_Settings_e - DTXMania Wiki - OSDN
WASAPI (Exclusive), WASAPI(Shared), ASIO and DSound. ... WASAPI(Exclusive). Feature: ... DSound (To be exact, DirectSound). Feature: OS Standard feature.
#81. 632: How to fix stuttering during playback - Sibelius
(WASAPI): Windows Audio Session API: This too will give low latency but will be using your computer resources to do so (DS): Direct Sound: This is the ...
#82. Immer Ärger mit Soundaufnahmen bei Windows - Clickomania
Jedenfalls gibt es drei Einstellungsmöglichkeiten: MME, Windows DirectSound und Windows WASAPI. MME ist ein echt antikes Teil: Das Kürzel steht ...
#83. Is the "Exclusive mode" mixer using the ASIO driver?
On Windows Vista/7, the "Presentation mixer" uses the Windows audio subsystem introduced with Vista (called Wasapi.) DirectSound, the older ...
#84. Áudio no Windows, Direct sound, ASIO, WASAPI, baixa ...
Áudio no Windows, Direct sound, ASIO, WASAPI, baixa latência e ASIO + Youtube em placas onboard. Como funciona o som no Windows? Truques e dicas para ...
#85. Audio GD Compass 2, ASIO, WASAPI, DIRECTSOUND ...
Autor Tema: Audio GD Compass 2, ASIO, WASAPI, DIRECTSOUND, problemas. (Leído 1508 veces). ostrata. Junior ...
#86. Reaper ONLY working with ASIO...? - Vi-Control
I.e. Directsound, Waveout, WASAPI, etc all have no sound in Reaper. Since I'm not recording anything through a midi controller at the moment ...
#87. Windows錄音環境優化 - 台灣高空
我們強烈建議你將ASIO驅動程式選用我們的產品,而不是其他Windows音頻驅動程式,如WASAPI或DirectSound。 我的電腦能做什麼?
#88. 擁抱PC Hi-Fi:音頻數據輸出ASIO、WASAPI兩難之選 - 每日頭條
音頻輸出對聲音影響有兩方面,一是重採樣,二是干擾。實際上電腦只要選擇默認的音頻數據輸出(WaveOut或DirectSound),就會與其它應用程式同時傳輸音頻 ...
#89. Building PortAudio for Windows using Microsoft Visual Studio
The resulting dll file may contain all five current win32 PortAudio APIs: MME, DirectSound, WASAPI, WDM/KS and ASIO, depending on the preprocessor ...
#90. 實測:ASIO 的音質更好? - 壹讀
但Windows 平台很容易讓你患上選擇恐懼症....在Foobar 的下拉菜單中你起碼能看到MME、WDM、KX、ASIO、DirectSound、WASAPI...幸好對於專業音樂人 ...
#91. wasapi - The Well-Tempered Computer
WASAPI is a low latency driver. ... When used in exclusive mode WASAPI bypasses the Win audio engine. ... This is equivalent to DS (Direct Sound).
#92. ASIO WASAPI MME サウンド - ぐうたらずのーと
Direct Sound. MMEはWindows標準で音がなるようにした画期的な機能でしたが、動作速度があまり速くないのが ...
#93. Realtek DCH Modded Audio Driver for Windows 10/11
Direct sound is dead anything using Directsound uses emulation which means the ... "WASAPI, DirectSound and MME interfaces can be considered ...
#94. Yamaha Syncroom介紹(20) 使用手冊篇-7
B. 選擇「WASAPI共享模式(WASAPI共有モード)」或「WASAPI排他模式(WASAPI排他モード)」時. 選擇WASAPI模式時,由於還是會比DirectSound的延遲時間 ...
#95. 音频数据输出ASIO、WASAPI两难之选 - 搜狐
音频输出对声音影响有两方面,一是重采样,二是干扰。实际上电脑只要选择默认的音频数据输出(WaveOut或DirectSound),就会与其它应用程序同时传输音频 ...
#96. DirectSoundとWASAPIの違い
WASAPI とはWikiにもありますがWindows Audio Session APIの略で、要はWindows Vista SP1から使える新しいサウンド用のAPIです。 これまでは主にWaveOutや ...
#97. 外置声卡、一体设备的正确打开方法(科普向)_专业音频 - 社区
百科)一下,目前主流播放软件(网易云音乐,foobar)支持的输出方式,可以看到有Wasapi,DirectSound,Waveout和ASIO,由于Waveout是一个十分老旧的 ...
#98. ASIO vs WASAPI vs Whatever - Cockos Incorporated Forums
If you now see MME, DirectSound etc options in softwares like Reaper, they are actually using WASAPI now. ASIO still bypasses all that, it's a ...
#99. • A sound card, including standard DirectSound® , WASAPI, or ...
A sound card, including standard DirectSound® , WASAPI, or ASIO™, is required for playing VST sounds in Windows thru Finale.
wasapi directsound 在 Re: [心得] 播放軟體的強度- 精華區Audiophile - 批踢踢實業坊 的推薦與評價
看完這篇討論串, 我也很好奇為什麼會有這樣子的差距, 所以決定
對播放軟體做一點研究, 另外也對Sound Forge Pro 10.0的程式
做一些分析.
本篇對於非電資主修的朋友可能不是那麼容易理解, 所以建議從結論
那邊開始看.
由於在作業系統裡面, 所有的應用程式都跑在使用者模式(Usermode,
a.k.a Ring 3 on x86), 基於安全考量, 及確保系統安定, 使用者
模式內不能跟硬體溝通. 而跟可以跟硬體溝通的程式, 也就是驅動程式
都在核心模式(Kernelmode, a.k.a Ring 0 on x86)下面運行. 因此,
所有播放聲音的動作都需要透過核心模式的驅動程式.
在Windows作業系統下面, 由於時常有不同的程式會需要輸出聲音,
作業系統就內建有mixer, 他會將不同程式丟出來的聲音混合起來,
並且在需要的時候(硬體不支援時), 執行Sample Rate Conversion,
或是Bitrate Conversion.
當然, 剛剛提到Kernelmode跟Usermode的概念, 也就是說SoundForge,
Foobar2000之類的軟體不能之接跟硬體溝通, 他們需要透過一些方法
跟核心的驅動程式溝通, 才能夠播放聲音. 常見的方法有:
- WaveOut:
這種方式是最常見的, 一般來說沒有特別需求的程式都使用種方式.
WaveOut的輸出會到核心裡面的mixer, 做混音的動作. 使用這種方法
的程式會載入winmm.dll, 並且呼叫裡面的函數.
- DirectSound:
比起WaveOut, 這種方式題供較多的功能, 但他在舊版的Windows上面
(Windows NT, 98, 95... etc)的支援比較差. DirectSound是DirectX
的一部分, 他原本的設計是用於遊戲上面. DirectSound的輸出也是
到核心的mixer, 使用這種方法的程式會載入dsound.dll, 並呼叫裡面
的函數.
- WASAPI:
在Windows Vista/7下面, 由於微軟認為有DirectSound跟WaveOut兩個
API很麻煩, 所以微軟開發了WASAPI. WASAPI只被Vista/7支援, 而且
Vista/7下面, DirectSound/WaveOut都是透過WASAPI來運作的. WASAPI
的輸出也是到核心的mixer.
- ASIO:
前面三種方法都有一個共同的問題, 就是他們透過系統的mixer. 系統的
mixer可能會改變音訊資料, 而且也會延長程式送資料到硬體收到資料的
時間(latency). ASIO解決了這個問題, 他直接將軟體的資料, 沒有處理的丟給
硬體. 這樣延遲就會減少, 而且音訊資料不會被更改.
再來我們研究Sound Forge的主程式, forge100.exe. 首先我們檢查程式的
PE Header, 發現這支程式是Microsoft Visual C++ 2008寫的, 而且沒有加殼.
另外我們查看他們Import Address Table, 裡面有導入WinMM.dll的函數,
但是沒有發現dsound.dll.
此時我們再用OllyDbg載入主程式forge100.exe. 在CreateFileA()/
CreateFileW()上面下Log斷點, 這樣可以看這支程式存取了哪些東西. 一般
來說, 如果程式有自己的驅動程式, 他會先存取那個.sys, 並且將那個
.sys載入系統, 然後CreateFile()那個.sys的Device Name. 我們在
CreateFile()上面下斷點的用意就是要確認這個程式是否有自己的
驅動程式. 經過檢查, forge100.exe並沒有自己的驅動程式, 所以他應該
是透過上述的四種方法來播放音訊. 當然過程中我們也發現一些有趣的
事情, 例如說forge100.exe有存取一個叫做lsarpc的pipe, 這個pipe是
用來存取系統帳號密碼管理程式的, 當然forge100.exe要存取他來幹麻
就不知道了.
再來, 由於我們之前檢查IAT發現沒有dsound.dll, 但是, 這個DLL模組
仍然可能在程式執行的時候載入, 因此我們斷點在LoadLibraryA()/
LoadLibraryW()上面. 執行後發現, dsound.dll在sfdsound.dll載入之後
就被載入了. 因此Sound Forge有可能是使用Direct Sound. 為了確定,
我們斷點在DirectSoundCreate()跟waveOutOpen()上面, 執行之後,
都沒有break, 但是當我們開啟檔案並且播放時, 發現waveOutOpen()
被執行了, 此時我們Log斷點在waveOutWrite()上面, 在播放的過程中,
waveOutWrite()被重複的呼叫, 直到播放暫停為止. 因此我們可以確定
Sound Forge 也是使用waveOut API.
當然, Sound Forge的資料匣內有看到一個資料匣叫做"Audio Hardware Drivers"
裡面有兩個檔案sfasio.dll跟sfdsound.dll, 他們的功用到目前無法
被確認, 或許在經過設定之後這兩個檔案就會被使用了.
----------------------------- 結論 ---------------------------------
經研究發現, Sound Forge使用waveOut系列的API來播放音訊,
這種方法很普遍, 一般的應用程式都是使用他, 而其他播放程式
也有不少有支援waveOut, 或是預設使用waveOut.
所以, Sound Forge在輸出音訊方面並無過人之處.
對於那些聽到差別的, 我認為有下列解釋:
- 軟體設定:
大多播放軟體都有插件的功能, 甚至有一些內建有預設就啟用的插件,
這些插件會造成聲音的差別. 另外音量也是很重要的, 一般來說較大的
音量會比較好聽.
- Mixer設定:
Mixer對於不同的輸入有不同的音量控制, 所以當設定不一制時, 會造成
音量的差距. Sound Forge預設waveOut, foobar2000預設Direct Sound, 因此
有可能會有這樣的問題.
- SRC ( Sample Rate Conversion ):
這個晚一點解釋.
- 心理作用:
這個時常發生, 因此我建議使用ABX盲測來確認. 實際方法在兩頁之後.
接下來我要講有關Sample Rate Conversion, 但在這之前, 我要建議非
電資主修的朋友們先看一下我上一篇文. Sample Rate Conversion 就是
將音訊從一個採樣率轉換成另一個採樣率, 也就是說, 我們音訊裡面
原本是每秒有n個資料, 我們把他變成每秒有m個資料, 而且之前跟之後的
資料在轉換成類比訊號之後應該要相同. 當然, 這是理想狀況下面,
有許多寫的不好, 或是不想要使用太多CPU的SRC程式在轉換之後, 會讓之前
跟之後的類比訊號有差別. 一般來說, 一個SRC程式在撰寫的時候,
會於到一個抉擇, 就是你要輸出品質好(跟原本的訊號差異小), 還是
執行速度快. 一般驅動程式跟核心Mixer裡面的SRC都是選擇後者,
因為如果一個驅動程式就佔你90%的CPU, 一般的使用者當然會不爽.
再來, 為什麼我們需要SRC? 其實, 大多時候我們不需要. 當我們的
DAC可以接受原始音訊的採樣率時, 我們可以直接將音訊交給DAC,
不需要轉換. 但是當我們的DAC不支援這個採樣率的時候, 我們就
需要做SRC, 這樣DAC才能接受這些音訊資料.
所以對於SRC, 重點在於, 如果可以不用, 那就盡量不用, 但是如果需要,
就要做到好.
--------------------------------- ABX 盲測 -------------------------------
ABX盲測其實就是在當你聽過A跟B之後, 隨便從A跟B之中選一個(X), 然後在
你不知道的情況下給你聽, 要你判定是A還是B. 一般這種測試會重複幾次
(通常來說12~20), 然後用統計學的方法計算出你用猜的可能性.
由於我目前沒有看到可以ABX兩套軟體的程式, 所以我就順手寫了一個小程式,
載點如下: ( 原始碼+執行檔, 直接執行ABXClick.exe即可 )
https://stashbox.org/796583/ABXClick.zip
這支程式會幫你亂數選軟體A或是軟體B, 然後幫你按下"播放"鍵. 使用步驟:
1. 先將兩個程式(Sound Forge, Foobar2000)開啟, 然後開啟ABXClick.exe
2. 在兩個程式中開啟待測的音樂.
3. 將Sound Forge跟Foobar2000的視窗縮小並且同時放在螢幕上面,
確保兩個程式的撥放按鈕都可以被看的到. 如圖一.
圖一: https://stashbox.org/796596/ss1.JPG
4. 回到ABXClick視窗, 但是將滑鼠移到Foobar2000的播放按鈕上面,
並且按下F1, 此時, A Position欄位中會出現Foobar2000播放按鈕的螢幕座標,
5. 將滑鼠移到Sound Forge的播放按鈕, 按下F2. B Position欄位中
會出現Sound Forge播放按鈕的座標.
6. 關閉你的螢幕.
7. 此時按下F3, 程式會隨機將滑鼠移到A或是B的位置, 然後按下去,
因此音樂會開始播放.
8. 判定是Sound Forge還是Foobar2000, 並將他寫下.
9. 打開螢幕, 看哪一個程式正在播音樂.
10. 停止播放音樂, 並且回到ABXClick視窗.
11. 重複第六步數次. (建議: 16次)
12. 統計總共幾次測驗中, 有多少次是正確的.
另外你可以從以下Excel檔案中查出你在猜測的可能性:
(縱軸是測試數目, 橫軸是正確數目)
https://www.kikeg.arrakis.es/winabx/bino_dist.zip
一般來說, 猜測可能性在1%(0.01)以內就是真的聽的出來. 當然,
那些很明顯的差異, 幾乎都會導致全對. 我之前有ABX過一個
MP3 320 cbr vs. FLAC, 由於那MP3有Transient Smearing的
問題, 所以ABX出來就25/25全對. 不過我自己測試Foobar2000
vs. Sound Forge是16/11, 猜測可能性為10.5%, 這代表說我
聽不出來. (大概是太木耳)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.68.68
用不同的輸出選項, 然後同上述方法做ABX.
但是這兩個DLL並沒有被程式使用, 我當時也沒有發現有什麼方法可以使用
這兩個DLL. 如果你知道如何設定Sound Forge使他使用不同的輸出方法,
我希望你可以跟大家分享, 因為我也很想知道.
那我建議用Sound Forge的SRC, 然後重新存檔. 之後再用你覺得方便的播放程式
來播放, 這樣就可以得到方便性跟音質.
WASAPI有兩種運作模式:
- Shared Mode:
這種模式是一般程式使用的, 會透過Mixer, 所以可以讓很多程式同時
播放聲音, 也可以做音量控制.
- Exclusive Mode:
這種模式類似ASIO, 他直接跳過Mixer, 以降低Latency, 他也不會
對你的音訊做任何處理, 因此無法透過一般的方法調整音量,
而且同時也只能有一個程式使用Exclusive Mode.
Kernel Streaming是微軟開發的. 基本上來說他們解決的問題是一樣的,
他們都穿越mixer, 而且有低Latency.
寫的很詳細. 當然如果只是要多了解API, 那去MSDN上面找一找即可.
... <看更多>