DirectSound

DirectSound is a deprecated software component of the Microsoft DirectX library for the Windows operating system, superseded by XAudio2. It provides a low-latency interface to sound card drivers written for Windows 95 through Windows XP and can handle the mixing and recording of multiple audio streams. DirectSound was originally written for Microsoft by John Miles.[1]

Besides providing the essential service of passing audio data to the sound card, DirectSound provides other essential capabilities such as recording and mixing sound, adding effects to sound (e.g., reverb, echo, or flange), using hardware accelerated buffers (if the sound card supports hardware audio acceleration) in Windows 95 through XP, and positioning sounds in 3D space. DirectSound also provides a means to capture sounds from a microphone or other input and controlling capture effects during audio capture.[2]

After many years of development, today DirectSound is a mature API, and supplies many other useful capabilities, such as the ability to play multichannel sounds at high resolution. While DirectSound was designed to be used by games, today it is used to play audio in many audio applications. DirectShow uses DirectSound's hardware audio acceleration capabilities if the sound card's hardware audio acceleration capabilities exist and are exposed by the audio driver.[3]

Features

DirectSound is a user mode API that provides an interface between applications and the sound card driver, enabling applications to produce sounds and play back music.

DirectSound was considered revolutionary when it was introduced in 1995, as it featured multiple simultaneous audio streams and allowed several applications to access the sound card simultaneously. Before that, the game developers were required to implement their own audio rendering engine in software.

DirectSound provides sample rate conversion and sound mixing (volume and pan) for an unlimited number of audio sources; however, the practical limits are the number of hardware audio sources and the performance of software mixers.

The DirectSound architecture features a concept of the "ring buffer" which would be continuously played in a cycle. The application programmer creates the sound buffer then continuously queries its state through the "read cursor" and updates it with the "write cursor". There are two types of buffers - a "streaming" buffer, which holds continuous sounds such as background music, and a "static" buffer which holds short sounds.

On supported sound cards, DirectSound would try to use "hardware accelerated" buffers, i.e. the ones which either can be placed in local sound card memory, or can be accessed by the sound card from the system memory. If hardware acceleration is not available, DirectSound would create audio buffers in the system memory and use purely software mixing.

Some late DOS-era "wavetable" sound cards such as Sound Blaster AWE32 and Gravis Ultrasound featured dedicated DSPs, which were borrowed from the digital music instruments. These cards featured local memory which could be used for buffering multiple audio streams and mixing them on board, thus offloading the CPU and greatly improving the sound quality. However, this was only possible in DOS by directly programming the hardware, and full-featured "hardware acceleration" from the local memory was never implemented on these cards, due to complexities of double buffering. Later cards such as Sound Blaster Live!, Audigy and X-Fi are capable of accessing the system memory buffers directly.

DirectSound3D

DirectSound3D (DS3D) is an extension to DirectSound introduced with DirectX 3 in 1996 with the intention to standardize 3D audio in Windows. DirectSound3D allows software developers to utilize audio by writing once for a single audio API instead of rewriting code numerous times to work for each audio card vendor.

In DirectX 5, DirectSound3D gained the support for sound cards that use third party 3D audio algorithms in order to accelerate DirectSound3D properly, through methods approved by Microsoft.

In DirectX 8, DirectSound and DirectSound3D (DS3D) were officially merged and given the name DirectX Audio, however the API is still commonly referred to as DirectSound.

EAX

EAX is an extension to DirectSound and DirectSound3D which provides sound effects processing to the hardware-accelerated buffers.

OS Support

Windows 95

In Windows 95, 98 and Me, the DirectSound mixer component and the sound card drivers were both implemented as a kernel-mode VxD driver (Dsound.vxd), allowing direct access to the primary buffer used by the audio hardware and thus, providing the lowest possible latency between the user-mode API and the underlying hardware, but in some cases causing instability and blue screen errors.

Windows 98 introduced WDM Audio and the Kernel Audio Mixer driver (KMixer), which enabled digital mixing, routing and processing of simultaneous audio streams with a higher quality sample rate conversion as well as kernel streaming. Under WDM, DirectSound sends data to the software-based KMixer. Windows 98 Second Edition improved WDM audio support by adding DirectSound hardware buffering, DirectSound3D hardware abstraction, KMixer sample-rate conversion (SRC) for capture streams, multichannel audio support and introduction of DirectMusic. If the audio hardware supports hardware mixing (also known as hardware buffering or DirectSound hardware acceleration), DirectSound buffers directly to the rendering device.[4] If DirectSound streams use hardware mixing, KMixer and its latency delay are bypassed.[5] On Windows 98 and Windows Me, WDM audio drivers were preferred but compatibility with VxD driver model was preserved.

Although Windows Driver Model (WDM) was available starting with Windows 98, few audio card manufacturers used it. Due to internal buffering, KMixer introduced significant processing latency (30 ms on then-current systems). Windows 98 also includes a WDM streaming class driver (Stream.sys) to address these real time multimedia data stream processing requirements. When the sound card uses a custom driver for use with the system supplied port class driver PortCls.sys or implements a mini-driver for use with the streaming class driver, applications can bypass the KMixer completely and use the kernel streaming interfaces instead to reduce latency.

Windows 2000/XP

In Windows 2000, Microsoft also implemented the same WDM-based audio stack on Windows NT by introducing the WDM audio drivers and the kernel mixer component (KMixer).[6] In Windows XP, Microsoft introduced another improved kernel streaming class driver, AVStream. Beginning with Windows XP, hardware acceleration was also added for DirectSound capture effects processing[7] such as Acoustic Echo Cancellation for USB microphones, noise suppression and array microphone support.

Windows Vista/Windows 7

Windows Vista features a completely re-written audio stack based on the Universal Audio Architecture. Because of the architectural changes in the redesigned audio stack, a direct path from DirectSound to the audio drivers does not exist.[8] DirectSound, DirectMusic and other APIs such as MME are emulated as WASAPI Session instances. DirectSound runs in emulation mode on the Microsoft software mixer. The emulator does not have hardware abstraction, so there is no hardware DirectSound acceleration, meaning hardware and software relying on DirectSound acceleration may have degraded performance. It's likely a supposed performance hit might not be noticeable, depending on the application and actual system hardware. In the case of hardware 3D audio effects played using DirectSound3D, they will not be playable; this also breaks compatibility with EAX extensions.[9]

Third-party APIs such as ASIO and OpenAL are not affected by these architectural changes in Windows Vista, as they use IOCtl to interface directly with the audio driver. A solution for applications that wish to take advantage of hardware accelerated high-quality 3D positional audio is to use OpenAL. However, this only works if the manufacturer provides an OpenAL driver for their hardware.[10]

Windows 8

WASAPI audio stack in Windows 8 introduces support for "hardware offloading" of multiple audio streams to the audio card for mixing and effect processing, in addition to the software processing introduced in Vista,[11][12] however the functionality is only exposed for Windows Runtime apps.[13] DirectSound's and DirectMusic's hardware interfaces to sound card drivers are not implemented.

Windows CE

Although DirectSound support was available in Windows CE versions up to 4.2, it was removed starting 5.0.[14] Windows CE 6.0 also does not support DirectSound, instead favoring that applications be rewritten to use the Waveform Audio API.

Replacement implementations

After the removal of DirectSound in Windows Vista, a few replacement implementations have appeared.

Sound Blaster's Creative ALchemy (2007) provides hardware acceleration of DirectSound3D and Audio Effects, such as EAX.[15] Creative ALchemy intercepts calls to DirectSound3D and translates them into OpenAL calls to be processed by supported hardware such as Sound Blaster X-Fi and Sound Blaster Audigy. For software-based Creative audio solutions, ALchemy utilizes its built-in 3D audio engine without using OpenAL at all.

Realtek, a manufacturer of integrated HD audio codecs, has a product similar to ALchemy called 3D SoundBack. C-Media, a manufacturer of PC sound card chipsets, also has a solution called Xear3D EX, although it works instead by intercepting DirectSound3D calls transparently in the background without any user intervention.

IndirectSound is a freeware library that emulates DirectSound 3D using XAudio2, without using hardware acceleration.[16]

DSOAL is an open source library that emulates DirectSound 3D and EAX using OpenAL. Either a hardware-accelerated OpenAL implementation or OpenAL Soft (which provides HRTF) can be used.[17]

See also

References

  1. ^ "The Evolution of DirectX". Maximum PC. 3 (9): B8. October 1998. Retrieved July 21, 2019.
  2. ^ DirectSound Capture Effects: MSDN
  3. ^ DirectShow FAQ
  4. ^ DirectSound Driver Models
  5. ^ Overview of DirectSound Hardware Acceleration
  6. ^ CakeWalk - Windows Pro Audio Roundtable
  7. ^ Exposing Hardware-Accelerated Capture Effects
  8. ^ "Techreport article on Vista-ready soundcards". 15 January 2008. Retrieved 2008-12-23.
  9. ^ Creative Technology - Support - Audio in Windows Vista
  10. ^ "OpenAL and Windows Vista". Archived from the original on 2008-01-02. Retrieved 2008-01-10.
  11. ^ Audio Offloading: Exposing Hardware-Offloaded Audio Processing in Windows
  12. ^ Windows Driver Kit - Windows Developer Preview - New for Audio Drivers
  13. ^ "Implementation Overview - Windows drivers | Microsoft Docs".
  14. ^ Windows CE 5.0 removed functionality
  15. ^ "Creative ALchemy website". Archived from the original on 2008-12-17. Retrieved 2008-12-23.
  16. ^ IndirectSound
  17. ^ "DSOAL: A DirectSound DLL replacer that enables surround sound, HRTF, and EAX support via OpenAL Soft". GitHub. 20 April 2023.

Read other articles:

Agama dominan di Filipina, Kristen (ungu) dan Islam (hijau). Bagian dari seri tentangBudaya Filipina Sejarah Tradisi Mitologi dan cerita rakyat Mitologi Cerita rakyat Hidangan Hari raya Agama Sastra Musik dan seni pertunjukan Seni pertunjukan Media Televisi Radio Olahraga basket voli sepak bola seni bela diri rugbi Situs bersejarah Properti kebudayaan Tempat bersejarah selengkapnya Simbol Bendera Lambang Motto Lagu kebangsaan Bahasa Bunga Pohon Burung Batu akik Olahraga  Portal Filip...

 

 

Kimberley adalah wilayah paling utara dari sembilan wilayah di Australia Barat. Di barat berbatasan dengan Samudera Hindia, di utara dengan Laut Timor, di selatan dengan Gurun Pasir Besar dan Tanami di wilayah Pilbara, dan di timur dengan Northern Territory. Wilayah ini dinamai pada tahun 1879 oleh surveyor pemerintah Alexander Forrest setelah Menteri Negara Koloni John Wodehouse, Earl of Kimberley ke-1. [1][2] Lihat pula Australia Barat Australia Samudra Hindia Laut Timor Ref...

 

 

Turma do Pagode Informação geral Origem São Paulo, SP Gênero(s) pagode Instrumento(s) vocal violão cavaquinho pandeiro tantã banjo percussão surdo[1] Período em atividade 2001–presente Gravadora(s) Radar Records (2003)Atração Fonográfica (2010–11)Sony Music (2012–presente) Integrantes Leiz Thiagão Caramelo Rubinho Fabiano Neni Leandro Filé Marcelinho TDP Página oficial grupoturmadopagode.com.br Turma do Pagode é um grupo brasileiro de samba formado em 1994 no bairro de P...

This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Rowland L. Johnston – news · newspapers · books · scholar · JSTOR (February 2024)This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help improve this...

 

 

Voce principale: Promozione 1988-1989. Promozione Trentino-Alto Adige 1988-1989 Competizione Promozione Sport Calcio Edizione 15ª Organizzatore FIGC - LNDComitato Regionale Trentino-Alto Adige Luogo  ItaliaTrentino-Alto Adige Partecipanti 16 Cronologia della competizione 1987-1988 1989-1990 Manuale Nella stagione 1988-1989 la Promozione era sesto livello del calcio italiano (il massimo livello regionale). Qui vi sono le statistiche relative al campionato in Trentino-Alto Adige. Il camp...

 

 

40°43′12″N 74°00′32″W / 40.72000°N 74.00889°W / 40.72000; -74.00889 Street in Manhattan, New York North Moore Street is a moderately trafficked street in TriBeCa, a neighborhood in the New York City borough of Manhattan. It runs roughly east–west between West Broadway and West Street. Automotive traffic is westbound only. Naming On street signs and maps, the street is usually written as N. Moore Street. The street was named in 1790 for Benjamin Moore (174...

Radio station in Waycross, GeorgiaWYNRWaycross, GeorgiaBroadcast areaSouth East Georgia & North East FloridaFrequency102.5 MHzBrandingWYNR 102.5ProgrammingFormatCountryAffiliationsPremiere NetworksOwnershipOwneriHeartMedia, Inc.(iHM Licenses, LLC)Sister stationsWBGA, WGIG, WHFX, WQGAHistoryFormer call signsWQCW (1983–1986)WAYX-FM (1986–1987)WBGA (1987–2002)Technical informationFacility ID57785ClassC1ERP97,000 wattsHAAT303 meters (994 ft)Transmitter coordinates31°9′22.00″N ...

 

 

Halaman ini berisi artikel tentang merek mobil. Untuk penggunaan lain, lihat Infiniti (disambiguasi). Artikel ini bukan mengenai ɛ̃fini atau Infinity. InfinitiJenisDivisiIndustriOtomotifDidirikan8 November 1989; 34 tahun lalu (8 November 1989)KantorpusatYokohama, JepangWilayah operasiAmerika UtaraTiongkok (kecuali Hong Kong dan Makau)Timur TengahRusiaUkrainaChileRepublik DominikaPanamaIndonesiaTokohkunciPeyman Kargar (Chairman) ProdukKendaraan bermotorMerekIPLIndukNissanSitus webwww.in...

 

 

Series of primaries, caucuses and state conventions 2020 Green Party presidential primaries ← 2016 February 29 to July 10, 2020 2024 → 358 delegates to the Green National Convention[1]180 delegates votes needed to win   Candidate Howie Hawkins Dario Hunter Uncommitted Home state New York California n/a Delegate count 205 98.5 17.5[b] Contests won 35 11 3[c][d] Popular vote 5,182[a] 3,087[a] 1,662 ...

Questa voce o sezione sull'argomento edizioni di competizioni calcistiche non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Serie D 1979-1980 Competizione Serie D Sport Calcio Edizione 21ª Organizzatore Lega Semiprofessionisti Luogo  Italia Partecipanti 108 Formula 6 gironi all'italiana Risultati Prom...

 

 

Village in West Yorkshire, England This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article possibly contains original research. Please improve it by verifying the claims made and adding inline citations. Statements consisting only of original research should be removed. (January 2021) (Learn how and when to remove this message) This article needs additional citations for verification...

 

 

Cette cathédrale n’est pas la seule cathédrale Saint-Michel. CathédraleSaint-Michel de Carcassonne Présentation Culte Catholique Dédicataire Saint Michel Type Cathédrale Rattachement Diocèse de Carcassonne et Narbonne Début de la construction 1247 Style dominant Gothique Protection  Classée MH (1886, 1926) Site web Sainte Marie Reine en Pays de Carcassonne – paroisse de Carcassonne Géographie Pays France Région Occitanie Département Aude Ville Carcassonne Coordonné...

Questa voce sull'argomento centri abitati dell'Oregon è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Ashlandcity(EN) City of Ashland, Oregon Ashland – Veduta LocalizzazioneStato Stati Uniti Stato federato Oregon ConteaJackson TerritorioCoordinate42°11′29″N 122°42′03″W / 42.191389°N 122.700833°W42.191389; -122.700833 (Ashland)Coordinate: 42°11′29″N 122°42′03″W / 42.191389°N 122.70083...

 

 

PalasaKecamatanNegara IndonesiaProvinsiSulawesi TengahKabupatenParigi MoutongPopulasi • Total- jiwaKode Kemendagri72.08.18 Kode BPS7208052 Luas- km²Desa/kelurahan11 desa Untuk tempat lain yang bernama sama, lihat Palasa. Kantor Camat Palasa Palasa adalah sebuah kecamatan di Kabupaten Parigi Moutong, Sulawesi Tengah, Indonesia. Geografi Keadaan tanah di Palasa terdiri atas daratan, perbukitan, dan pegunungan dengan ketinggian 1–500 m dpl. Perbatasan Utara Teluk Palasa dan T...

 

 

此條目可参照英語維基百科相應條目来扩充。 (2017年8月)若您熟悉来源语言和主题,请协助参考外语维基百科扩充条目。请勿直接提交机械翻译,也不要翻译不可靠、低品质内容。依版权协议,译文需在编辑摘要注明来源,或于讨论页顶部标记{{Translated page}}标签。 密西西比州 美國联邦州State of Mississippi 州旗州徽綽號:木蘭之州地图中高亮部分为密西西比州坐标:30°13'N�...

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府...

 

 

This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Eli Lilly & Co. v. Medtronic, Inc. – news · newspapers · books · scholar · JSTOR (December 2019) (Learn how and when to remove this message) 1990 United States Supreme Court caseEli Lilly & Co. v. Medtronic, Inc.Supreme Court of the United StatesArgued February 26, 1990Decided June 18, 1990Full ca...

 

 

جاك ألبرتسون (بالإنجليزية: Jack Albertson)‏  معلومات شخصية الميلاد 16 يونيو 1907(1907-06-16)ماساتشوستس، الولايات المتحدة الوفاة 25 نوفمبر 1981 (74 سنة)هوليوود، كاليفورنيا، الولايات المتحدة سبب الوفاة سرطان القولون الجنسية الولايات المتحدة الأمريكية الطول 180 سنتيمتر  عدد الأولاد 1   ...

31°03′59″N 35°41′56″E / 31.066282°N 35.698979°E / 31.066282; 35.698979 مقام وضريح الصحابي عَبدُ الله بن رَوَاحَة تقديم البلد  الأردن مدينة بلدة المزار في محافظة الكرك إحداثيات 31°03′59″N 35°41′56″E / 31.066282°N 35.698979°E / 31.066282; 35.698979   نوع مقام وضريح تصنيف ديني الموقع الجغرافي ت...

 

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Union of Fascist Little Ones – news · newspapers · books · scholar · JSTOR (May 2019) (Learn how and when to remove this message) Front page of the Fascist Little Ones newspaper - Kroshka The Union of Fascist Little Ones (Russian: Союз фашистских ...