Comments (12)
I chose the device index for cli because it is easier to type, without considering the possibility of the index changing as you plug in or remove devices...
I suppose I will have to add the possibility of specifying a name (perhaps a unique substring of the name would do?).
from swyh-rs.
it only happened to me because i wrote a simple batch script that starts swyh-rs-cli and changes my default audio device to some unplugged SPDIF port so that the sound only gets played via my Volumio Server.
Since it's only ever written once i guess using the full device name as it is displayed under the "sound_source" variable in the config_cli.toml as well as the program log under "name"
16:17:00 [INFO] tb_log: Found Audio Source: index = 4, name = MeteorStereo (High Definition Audio Device)
wouldnt be to much of a hassle.
Parsing the string and selecting a matching device via grep (or some similar function) would certainly be possible but could always result in some weird behavior with two similar named devices.
from swyh-rs.
Parsing the string and selecting a matching device via grep (or some similar function) would certainly be possible but could always result in some weird behavior with two similar named devices.
That's why I wrote "a unique substring". There's also the problem of two identically named cards (it does happen!) to tackle. That's why a sound source index exists in the config as well as the name..
from swyh-rs.
That's why I wrote "a unique substring". There's also the problem of two identically named cards (it does happen!) to tackle. That's why a sound source index exists in the config as well as the name..
sorry, i misunderstood what you ment by "unique substring", since i thought the device name windows uses would for sure be unique.
I just tested it because i havent thought it would allow two identically named devices.. but it does.
from swyh-rs.
Some more testing.
Since the "given" name of a specific audio device can easily be changed in the Windows sound settings and is reflected in the config of swyh-rs a name collision could easily be circumvented.
But, to be honest, i have no idea how a change like this would affect other Operating systems.
from swyh-rs.
I think I will allow to append a :n to the name string (where n is the zero-based position of the duplicate card name).
from swyh-rs.
It all works here, if you're prepared to test I can make a pre-release.
You just specify -s some-unique-substring-of-the-name, or if they are not unique, append a :n to the substring.
The old way of specifying an index works as before.
from swyh-rs.
Sure, i can test it whenever youre ready
from swyh-rs.
You can try the new prerelease.
Any comments welcome.
from swyh-rs.
Hello, sorry for replying so late, work got the better of me in the last few days.
I tried some different combinations, changing audio card names and devices.
As far as i can tell everything works exactly as expected and i can address all of my cards via their respective name. For the Windows side of things i couldn't find any Problems.
Big Thanks, this change spared me of some Headache when changing devices.
from swyh-rs.
Glad that it works. I expect to release 1.10.0 soon.
from swyh-rs.
As 1.10.0 is released I'll close this now.
from swyh-rs.
Related Issues (20)
- Volume Setting Question - Sonos Protocol HOT 10
- Reducing sync delay by throwing away samples HOT 13
- WAV Duration Limit & RF64 Delay HOT 4
- [QUESTION] How can I achieve best possible lag freee / 0 latency when streaming audio from PC to Wifi Speaker HOT 2
- very high latency streaming to WiiM HOT 5
- Comparison against foo_out_upnp HOT 21
- Text of button overflows outside the button HOT 4
- Source Device is not muted once streaming is started which causing to hear source + Wireless speaker HOT 2
- Sonos no sound HOT 9
- Autoreconnect does not work with multiple Sonos Devices HOT 22
- just a tips for windows proxy user with lagging and stuter problem on sonos HOT 3
- Volume control on Windows HOT 5
- How to configure firewall to run swyh-rs HOT 2
- audio stutters after several minutes of streaming HOT 3
- Distorted and interrupted sound with 24/94 HOT 6
- Streams tops if input delivers no more data HOT 25
- SWYH-SSDP Maximum Interval Question HOT 6
- Missing VCRUNTIME140.ddl HOT 3
- Changing audio output when connecting external monitor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swyh-rs.