Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
audio-buffer-list
Advanced tools
Extension of BufferList for AudioBuffers. Handy and performant to deal with sequence of audio buffers − accumulate, read, stream, modify, delete etc. It provides interfaces both of AudioBuffer and BufferList, as well as bunch of other useful methods.
const AudioBufferList = require('audio-buffer-list')
const AudioBuffer = require('audio-buffer')
let abl = new AudioBufferList(new AudioBuffer(1, [0, .1, .2, .3]), new AudioBuffer(1, 100))
abl.append(new AudioBuffer(1, 100))
abl.length // 204
abl.slice() // <AudioBuffer 0, .1, .2, .3, 0...>
new AudioBufferList(source, options?)
source
can be AudioBuffer, AudioBuffer array, AudioBufferList, AudioBufferList array or callback.
options
may provide numberOfChannels
, context
for web audio API context and sampleRate
.
new
is not strictly required.
list.insert(buffer, offset=0)
Put new AudioBuffer, AudioBufferList or array of them at the offset.
list.delete(count, offset=0)
Delete number of samples starting at the offset. count
can possibly be negative, then items are deleted on the left side from the offset. offset
can also be negative, meaning to start from the end.
list.repeat(count)
Repeats contents of the list specified number of times. Modifies list in-place.
list.duration
Total duration of the audio list, i.e. sum of buffers durations.
list.numberOfChannels
Detected from the buffer with max number of channels in the list. Can be set by options.
list.sampleRate
Just for convenience with AudioBuffer interface
list.getChannelData(channel)
Return FloatArray with merged data for the channel.
list.copyFromChannel(destination, channel, startInChannel=0)
Put data from the channel to destination FloatArray. Optional startInChannel
defines offset in the channel to start from.
list.copyToChannel(source, channel, startInChannel=0)
Put data from the source
FloatArray into channel, optionally starting at startInChannel
offset.
list.length
Total length of list in samples, i.e. sum of inner buffer lengths.
list.append(buffer)
list.slice(start?, end?)
list.shallowSlice(start?, end?)
list.get(idx, channel)
list.duplicate()
list.copy(dest, destStart?, srcStart?, srcEnd?)
list.consume(length)
FAQs
Data structure for sequence of AudioBuffers
The npm package audio-buffer-list receives a total of 63 weekly downloads. As such, audio-buffer-list popularity was classified as not popular.
We found that audio-buffer-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.