How to use RtAudio with Direct Sound on windows

The documentation for RtAudio says.

Windows (DirectSound):

The configuration script provides support for the MinGW compiler. DirectSound support is indicated with the --with-ds flag.

To compile RtAudio under Windows for the DirectSound API, you must have the header and source files for DirectSound version 5.0 or higher. To my knowledge, there is no DirectSoundCapture support for Windows NT. Sound delay with DirectSound can be quite good, especially with RtAudio version 3.0.2. Input audio latency still tends to be bad, but better since version 3.0.2. RtAudio was originally developed with Visual C ++ version 6.0, but was tested with .NET.

The DirectSound version of RtAudio can be compiled with or without a UNICODE preprocessor definition.

It says that I must have a header and source files for DirectSound. So I need to write these headers and source files in C ++, or I can keep them somewhere.

+3
source share
1 answer

You can get DirectSound headers and libraries as part of Microsoft's DirectX SDK. I went to the Microsoft Download Center , searched for the "DirectX SDK", sorted by release date, and then downloaded the latest one. Here is a direct link to it: DirectX SDK - (June 2010) .

+2
source

Source: https://habr.com/ru/post/1733058/


All Articles