Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Buffer specs for Sound.create() #3
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Yes, the buffer must be a PCM sound, 16 bits per sample (signed), stereo @ 44100 Hz (samples per second). If you look at the files test-multiwaves, test-sinewave, squarewave etc. you'll see how to synthesize a sound. I don't know much about audiolib, but if it can export a sound in PCM 16 bits stereo @ 44100 Hz it should work fine with node-sound. If it doesn't, you could try to save audiolib's sound to a file and let node-sound bufferify() it. Hope it helps.