Git Product home page Git Product logo

Comments (2)

wb2osz avatar wb2osz commented on May 28, 2024

Actually, the ALSA "card" numbers are not predictable. If you add another audio device, or remove one, and then reboot, previously existing audio devices can have different "card" numbers. It is possible to assign a name, based on characteristics such as vendor, product, and serial number. For multiple identical devices, names can be assigned by physical USB port. See https://github.com/wb2osz/direwolf-doc/blob/main/Radio-Interface-Guide.pdf section 7.6.

As you pointed out, using a number on Windows is not the best approach because the numbers change. You can use a substring of the audio device name. For example, if you add a single USB audio adapter, simply use "ADEVICE USB". This is mentioned in the User Guide, in the section named "Audio Device Selection - Windows." Radio-Interface-Guide.pdf section 2.2 also mentions this. If you have multiple identical USB audio devices, Windows gives them unique names.

Suggestions are always welcome for improving the documentation. There is a lot. sometimes it's not easy to find the right section.

from direwolf.

iontodirel avatar iontodirel commented on May 28, 2024

@wb2osz FYI, I created this utility https://github.com/iontodirel/find_devices, itโ€™s only for Linux, but it reliably finds ALSA names based on names, description, serial numbers or hardware paths, when you have more than one sound card. It can also find reliably one of many Digirigs and their individual sound card / serial ports.

@wb2osz would you be open and support contributions to improve the Windows device referencing story? It seems like in Windows, a reliable way to do it is by device id, which is guaranteed to be unique https://learn.microsoft.com/en-us/windows/win32/coreaudio/endpoint-id-strings, but search by name or description or both would also be a good idea, this article documents the other properties and contains a small example: https://learn.microsoft.com/en-us/windows/win32/coreaudio/device-properties.

The problem with using numbers as Direwolf is doing today, is that there isnโ€™t a way to reproduce that behavior and get similar ids either with scripting or programmatically with an API, effectively meaning you have to manually do this every time or only support one sound device.

from direwolf.

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.