Skip to content

USB mic not working after trying random settings #76

@K42F

Description

@K42F

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions