A Javascript Queue Structure for Buffered Data

Written by giwyni | Published 2019/08/28
Tech Story Tags: javascript-typed-array | javascript-queue | structure-for-buffered-data | data | javascript-data | javascript-queue-structure | software-development | javascript

TLDR 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.via the TL;DR App

no story

Written by giwyni | Get it when you need it (GIWYNI) is my handle. Knowledge can clog your creativity..
Published by HackerNoon on 2019/08/28