Git Product home page Git Product logo

Comments (8)

mgeier avatar mgeier commented on July 28, 2024

One possible feature would be the "exclusive mode" of WASAPI, see http://stackoverflow.com/questions/31306010/how-to-enable-wasapi-exclusive-mode-in-pyaudio

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

PaAlsa_EnableRealtimeScheduling might be interesting for ALSA: http://portaudio.com/docs/v19-doxydocs-dev/pa__linux__alsa_8h.html#accc41e7fd89dc0a6163d54a4f25fb242

from python-sounddevice.

raecke avatar raecke commented on July 28, 2024

It would be interesting to be able to select arbitrary channels for input and output. On Windows this is needed with ASIO. If you currently want to send data to output channels 9 and 10, you have to send data to all channels below 11. This means that sharing the soundcard with other applications becomes impossible.

The hostapis WDM-KS, MME, Directsound, normally only present 2 channels so it is not a problem there.

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

@raecke I created an experimental implementation in #34. Can you please check if it works for you and leave a comment there?

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

There is also PaAlsa_SetNumPeriods, which is by default set to 4, which seems random:

By default the number of periods is 4, this is the lowest number of periods that works well on the author's soundcard.

http://portaudio.com/docs/v19-doxydocs-dev/pa__linux__alsa_8h.html#a76f60d6f1ba6a298c038a9f3a6dccc53

It looks like this has to be called before opening a stream.

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

OK, I'm trying to make an exhaustive list of the current host-API-specific settings, let's see if that works:

hostApiSpecificStreamInfo to be specified separately for the input and output device when creating a stream:

Functions that are called with a stream pointer:

Global functions:

from python-sounddevice.

philipmountifield avatar philipmountifield commented on July 28, 2024

Would love to be able to fetch PaAsio_GetInputChannelName and PaAsio_GetOutputChannelName though it looks like there hasn't been much movement on this feature?

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

@philipmountifield Can you please create a new issue with your request, including a suggestion how the new API should look like?

from python-sounddevice.

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.