Skip to content

Commit 3198766

Browse files
committed
Update readme.md
1 parent 58425dc commit 3198766

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

readme.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ Handy and performant to deal with (possibly long) sequence of audio buffers −
99

1010
```js
1111
import AudioBufferList from 'audio-buffer-list'
12-
import AudioBuffer from 'audio-buffer'
13-
import util from 'audio-buffer-utils'
1412

15-
let abl = new AudioBufferList(util.create([0, .1, .2, .3]), util.create(100))
13+
let abl = new AudioBufferList([
14+
new AudioBuffer({length: 4, sampleRate: 44100 }),
15+
new AudioBuffer({length: 100, sampleRate: 44100 })
16+
])
1617

17-
abl.append(util.create(100))
18+
abl.append(
19+
new AudioBuffer({length: 100})
20+
)
1821

1922
abl.length // 204
20-
abl.slice() // <AudioBuffer 0, .1, .2, .3, 0...>
23+
abl.slice() // <AudioBuffer 0, ...>
2124
```
2225

2326
## API
@@ -135,7 +138,5 @@ Clean up list.
135138

136139
## See also
137140

138-
* [audio](https://github.com/audiojs/audio) — high-level class for audio manipulations.
139-
* [audio-buffer](https://github.com/audiojs/audio-buffer) — audio buffer class for nodejs and browser.
140141
* [audio-buffer-utils](https://github.com/audio-buffer-utils) — toolset for audio buffers.
141142
* [buffer-list](https://npmjs.org/package/bl) — canonical BufferList implementation.

0 commit comments

Comments
 (0)