Skip to content

Commit

Permalink
Note about dataURI.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Apr 23, 2023
1 parent 256927a commit d4b7270
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ var buffer = sfxr.toBuffer(sound);
console.log(buffer);
```

Additionally you can get a dataURI for a wav file of the sound:

```
var a = sfxr.toWave(sound);
console.log(a.dataURI);
```

You can convert between the base58 short-url encoded format and JSON using `b58encode` and `b58decode`:

```
Expand Down

0 comments on commit d4b7270

Please sign in to comment.