Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB mic not working after trying random settings #76

Open
K42F opened this issue Feb 16, 2022 · 0 comments
Open

USB mic not working after trying random settings #76

K42F opened this issue Feb 16, 2022 · 0 comments

Comments

@K42F
Copy link

K42F commented Feb 16, 2022

My (off-brand) USB mic was rooted through a VB virtual audio cable (windows 10).
After playing around with some commands in node command line, my mic stopped working and is not recognized anymore on any computer.

First, I ran the following in command line:

var portAudio = require('naudiodon');
var ai = new portAudio.AudioIO({
    inOptions: {
        channelCount: 2,
        sampleFormat: portAudio.SampleFormat16Bit,
        sampleRate: 44100,
        deviceId: -1,
        closeOnError: true
    }
});
ai.on('data', x => console.log(Math.max(...x)))
ai.start()
//ai.quit()

It worked fine and displayed various byte values.
My goal is to visualize audio volume in real-time. I thought I could try to lower some settings (to save on perfs) and see how it works:

var portAudio = require('naudiodon');
var ai = new portAudio.AudioIO({
    inOptions: {
        channelCount: 2,
        sampleFormat: portAudio.SampleFormat8Bit,
        sampleRate: 1000,
        deviceId: -1,
        closeOnError: true
    }
});
ai.on('data', x => console.log(Math.max(...x)))
ai.start()
//ai.quit()

After running those lines, the mic immediately stopped working. I tried to reconnect it with 3 different usb cables on 3 computers but none recognize it anymore.

I'll goo for an RMA but is there any reason why this happened?
Is there any risk trying random samplerates/sampleformat?

What happens when I start the portAudio.AudioIO ? does the mic's internal interface receives a 1000hz/8bit request?

@K42F K42F changed the title I Broke my USB mic USB mic not working after trying random settings Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant