question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It's possible to support sample rate switch?

See original GitHub issue

https://github.com/sirWest/AudioSwitch/issues/149 The same issue another project.

48000 for movie or gaming, 44100 for CD music. Use a script to switch sample rate before a game launch or before the music player. WASAPI not a good option, or exclusive mode. I need program use audio device at the same time.

There isn’t useful search result in issues…

I plan to create one sample rate switcher via autohotkey, if your AudioDeviceCmdlets already implemented such feature or in future updates, then I don’t have to “Reinventing the wheel”… This is not a feature request and it’s just a confirm… Sorry to bother you

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jonjonssoncommented, Sep 2, 2022

OK, my use case is completely different. A common source of audio crackling when funneling audio through virtual audio device is that both the source device and virtual device are not both using the same sample rate/bit depth.

A function to get the sample rate and bit depth and set it would be wonderful.

Indeed, sometimes I use kernel streaming to forward my mic, if two audio devices set to different bit rate, the kernel streaming won’t throw exception, but just stream wrong audio signal.

Could you please reopen the issue?

FYI I opened a new issue https://github.com/frgnca/AudioDeviceCmdlets/issues/64

0reactions
ImportTastecommented, Sep 2, 2022

OK, my use case is completely different. A common source of audio crackling when funneling audio through virtual audio device is that both the source device and virtual device are not both using the same sample rate/bit depth. A function to get the sample rate and bit depth and set it would be wonderful.

Indeed, sometimes I use kernel streaming to forward my mic, if two audio devices set to different bit rate, the kernel streaming won’t throw exception, but just stream wrong audio signal.

Could you please reopen the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing sample rate is risky
Most interfaces can switch between samples rates automatically but this may not be possible if other software is using the interface. An ...
Read more >
General Question about sample rate switching on USB ...
Samplerate switching in UAC2 (which most modern USB DACs use) means sending a control message to the Sampling Frequency Control of the UAC2 ......
Read more >
How To Fix The Sample Rate of The Audio Input and Output ...
Here is how to fix the error "The Sample Rate of The Audio Input and Output Device Do Not Match. Audio can not...
Read more >
How to automatically switch/bypass sample rate?
Is it possible to have the sample rate automatically switched to that of the input signal? I am running Winamp on Windows 7...
Read more >
What You Need to Know about Sample-Rate Conversions
In both the recording and playback of music, it is often necessary or convenient to switch between sample rates. There are different types ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found