Difference between revisions of "Windows Audio APIs"

From Jeskola Buzz Wiki
Jump to: navigation, search
m (Comparison of sound APIs)
m (Comparison of sound APIs)
Line 3: Line 3:
 
== Comparison of sound APIs ==
 
== Comparison of sound APIs ==
 
{|  
 
{|  
| '''Name 1''' || '''Alt. name''' || '''Advantages''' || '''Disadvantages'''
+
| '''Name''' || '''Advantages''' || '''Disadvantages'''
 
|-  
 
|-  
| WaveOut, WaveIn || MME || Works everywhere, never looses a buffer || Very long latency
+
| WaveOut, WaveIn or "MME" || Works everywhere, never looses a buffer || Very long latency
 
|-  
 
|-  
| DirectSound ||  || Lower latency than MME, low CPU overhead || Degraded audio quality with some audio drivers
+
| DirectSound ||  Lower latency than MME, low CPU overhead || Degraded audio quality with some audio drivers
 
|-  
 
|-  
| ASIO ||  || Very low latency || Drops buffers if you strain the CPU, more prone to stuttering, unstable with some audio drivers when combined with MME or DirectSound usage
+
| ASIO || Very low latency || Drops buffers if you strain the CPU, more prone to stuttering, unstable with some audio drivers when combined with MME or DirectSound usage
 
|}
 
|}

Revision as of 18:17, 27 July 2009

Microsoft Windows has three audio APIs: MME, DirectSound and ASIO. MME is the oldest one. DirectSound is aimed for gaming purposes on and some soundcard it's played with a degraded internal resolution. ASIO is actually not a native part of Windows, but rather a hack invented by Steinberg in order to bring the latency down. This is achieved by using a very low buffer size and bypassing Windows' native APIs.

Comparison of sound APIs

Name Advantages Disadvantages
WaveOut, WaveIn or "MME" Works everywhere, never looses a buffer Very long latency
DirectSound Lower latency than MME, low CPU overhead Degraded audio quality with some audio drivers
ASIO Very low latency Drops buffers if you strain the CPU, more prone to stuttering, unstable with some audio drivers when combined with MME or DirectSound usage