paint-brush
A Javascript Queue Structure for Buffered Databy@giwyni
584 reads
584 reads

A Javascript Queue Structure for Buffered Data

by [email protected]3mAugust 28th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Typed Arrays have made buffered data processing a breeze and fast (avoid slow for-loops and extra code) The problem scenario where I took advantage of these features is this: Receive a stream of Audio data sampled at 48000 Hz, down-sample and produce the data at 16000 Hz. The solution:Implement a queue for data buffers with each piece of data in the buffer having the same datatype (Float32 for web audio data). Allow for the size of the input data buffer to be different that the size. of the output buffer that is dequeued.

Company Mentioned

Mention Thumbnail
featured image - A Javascript Queue Structure for Buffered Data
vsvconsult@gmail.com HackerNoon profile picture

L O A D I N G
. . . comments & more!

About Author

vsvconsult@gmail.com HackerNoon profile picture
[email protected]@giwyni

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Tefter
Tefter
Coinerblog