GithubHelp home page GithubHelp logo

Support Exclusive Mode about cpal HOT 5 OPEN

rustaudio avatar rustaudio commented on June 25, 2024
Support Exclusive Mode

from cpal.

Comments (5)

mitchmindtree avatar mitchmindtree commented on June 25, 2024

I'm guessing this is referring to the windows backend as I remember briefly seeing some documentation on this when working on the wasapi backend. Could you elaborate on how exclusive mode behaves differently from shared mode? Do you see a path towards supporting this for all backends?

from cpal.

tomaka avatar tomaka commented on June 25, 2024

When in exclusive mode you can write (or read, I guess) directly to (from) the hardware. It is therefore faster than shared mode, but no other application can access the device in the meanwhile, and we cannot access it if another application already uses it in shared mode.

from cpal.

mitchmindtree avatar mitchmindtree commented on June 25, 2024

Ah, thanks for the explanation. I guess this might be useful for some pro-audio software like DAWs and live performance applications. That said, I don't remember seeing anything like this in the coreaudio or alsa backends.

I guess if this were to be implemented, it would be an addition of a whole new wasapi_exclusive backend, perhaps enabled by a feature?

Alternatively, we could introduce something similar to PortAudio's Host API? I've opened up #204 for discussion.

from cpal.

blueneogeo avatar blueneogeo commented on June 25, 2024

CoreAudio also has a hog mode property: kAudioDevicePropertyHogMode

Hog mode is important if you go for the best audio quality. For example, streaming software clients such as Spotify and Tidal have hog mode support. Spotify turns this on by default.

from cpal.

blueneogeo avatar blueneogeo commented on June 25, 2024

Any update on this? Or is it already implemented in one of the other closed tickets?

from cpal.

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.