rive-app / rive-app/rive-runtime

Unable to correctly read truncated audio assets

Open
#47 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
C++
Stars
1.2k
Forks
121
PR merge metrics
No merged PRs in 30d

Description

button-with-audio

When I exported a riv file with audio assets, I chose to export the audio assets 'Second_stound' and its truncated assets 'Second_stound clip' in the referenced mp3 format, but I found that the two mp3 files had the same assetId in their names, like
‘Second_sound clip-1343663.mp3’
‘Second_sound-1343663.mp3’

When deserializing the riv file at runtime, it does not contain the assetIdPeopleKey property of 'Second_Sound clip', so the assetId of 'Second_Sound clip' will be generated separately, resulting in the inability to read 'Second_Sound clip 1343663. mp3' by uniqueFilename()

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing runtime deserialization of audio assets and the uniqueFilename() lookup, comparing how assetIdPeopleKey is handled for the original and truncated assets. Done means both exported MP3 files retain distinct, resolvable asset identities at runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.