Giter Site home page Giter Site logo

linking WASAPI mingw about rtaudio HOT 3 CLOSED

thestk avatar thestk commented on June 3, 2024
linking WASAPI mingw

from rtaudio.

Comments (3)

garyscavone avatar garyscavone commented on June 3, 2024

Hi Victor,

I have WASAPI compiling with MinGW using the configure script. I don’t use CMake so perhaps you can figure out what needs to be added to CMakeFiles.txt? You need to include the file “FunctionDiscoveryKeys_devpkey.h” from the include/ directory and then link with -luuid and -lksuser.

You also need to include ksmedia.h but that is available in my version of mingw.

—gary

On Apr 23, 2014, at 2:14 PM, Victor Bombi [email protected] wrote:

building with mingw and wasapi support says:

CMakeFiles\RtAudio.dir/objects.a(RtAudio.cpp.obj):RtAudio.cpp:(.text+0xb532): undefined reference to KSDATAFORMAT_SUBTYPE_IE
EE_FLOAT'
CMakeFiles\RtAudio.dir/objects.a(RtAudio.cpp.obj):RtAudio.cpp:(.text+0xb551): undefined reference toKSDATAFORMAT_SUBTYPE_PC
M'


Reply to this email directly or view it on GitHub.

from rtaudio.

sonoro1234 avatar sonoro1234 commented on June 3, 2024

Thankyou.
uuid and ksuser did the linking work
they should be added to CMakeFiles.txt:94

from rtaudio.

garyscavone avatar garyscavone commented on June 3, 2024

Hi Victor,

I found I had to add an explicit cast of (LPCTSRT) on line 4626 when compiling with UNICODE defined, as:

HMODULE AvrtDll = LoadLibrary( (LPCTSTR) "AVRT.dll" );

I have two programs created with Qt and RtAudio that I tested with the new WASAPI support. One only uses audio output and that works fine. The other only uses audio input and it doesn’t behave well. My tests of the WASAPI code using command-line programs worked fine but if you experience any problems, let me know.

Regards,

—gary

On Apr 23, 2014, at 3:19 PM, Victor Bombi [email protected] wrote:

Thankyou.
uuid and ksuser did the linking work
they should be added to CMakeFiles.txt:94


Reply to this email directly or view it on GitHub.

from rtaudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.