Skip to content

Commit

Permalink
Add audio preview generator.
Browse files Browse the repository at this point in the history
Thread here: https://2dimensions.slack.com/archives/CLLCU09T6/p1707353939433169

The executable will return a non zero code with an error printed on stderr if there's a problem. If the exit code is 0 (success) the output will be JSON like this:

```
{"channels":2,"duration":192.49632263183594,"format":"mp3","sampleRate":44100,"size":8095932}
```

or:

```
{"channels":2,"duration":3.9996354579925537,"format":"wav","sampleRate":96000,"size":2303834}
```

Sample invocation:

```
rive_audio_preview_generator -s ~/Desktop/games_original.wav -d ~/Desktop/games_preview.mp3
```

Diffs=
e145f9348 Add audio preview generator. (#6580)
  • Loading branch information
avivian committed Feb 8, 2024
1 parent d525ee5 commit cff5ec7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
27ac9fcbbe57e46afa449852b369401b4b579411
e145f9348ceb3a5cd56cd1005a0fda5f0a3e754e
2 changes: 1 addition & 1 deletion .rive_renderer
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d518e6c1289edfe29f0a030484ef1767328e7b70
7e79a959a62f2bbace463d9783417c627852b514
2 changes: 1 addition & 1 deletion submodules/rive-cpp

0 comments on commit cff5ec7

Please sign in to comment.