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

Audio glitches during playback #26

Open
ZECTBynmo opened this issue Dec 27, 2013 · 2 comments
Open

Audio glitches during playback #26

ZECTBynmo opened this issue Dec 27, 2013 · 2 comments

Comments

@ZECTBynmo
Copy link
Member

This issue was reported by @Cactusbone inside of this issue #24

Reproduction steps:

Code reproducing issue

https://gist.github.com/Cactusbone/1aea1635f34869b13e30

Platform

Windows 7 64bit

Description

same twitchy sound in vista 64bit with an integrated sigmatel. i'll try using a real soundcard.

I've just noticed sound is far greater (not crystal clear but not too bad) when i set interleaved to true.

ok after more tests,
with inputChannels set to 1 and outputChannels set to 1, (interleaved true of false does not matter) the sound is crystal clear. with inputChannels to 2 and ouputChannels to 1, i get some glitches (but not many) interleaved = true slows down music (as expected), but whenever outputChannels is set to 2, i have load of glitches.

@luke-j
Copy link

luke-j commented Jan 6, 2016

I have this same issue on OSX. Simply returning the inputBuffer either results in screeching, glitching sounds, or in total silence, depending on the settings. See code below.

var engine = require("node-core-audio").createNewAudioEngine();

var options = {
    inputChannels: 1,
    outputChannels: 1
};

engine.setOptions(options);

engine.addAudioCallback(function (inputBuffer) {
    return inputBuffer;
});

Is there anyway at this point to simply capture audio clearly coming from the sound card?

@martinjms
Copy link

just doing this worked for me in OSX
var options = { outputChannels: 1 };

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

3 participants