You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on integrating Bevy with the Synthizer audio library. I have 2 assets which I'm creating custom asset loaders for:
Buffer for representing buffers of audio data, these are decoded upon load
Stream for audio streams. These are decoded on demand, useful for long music tracks and the like
What you expected to happen
Both asset loaders return the same file extensions, because I figured that as long as I disambiguated which one I wanted to use by providing a type parameter to load that it would use the right one.
What actually happened
I registered the asset loader for loading buffers first, then streams. The second one was always chosen.
let h:Handle<Buffer> = asset_server.load("music/main menu.mp3");
I would expect this to correctly use the asset loader for buffers, as the type parameter provides enough information to disambiguate.
Additional information
Any additional information you would like to add such as screenshots, logs, etc.
The text was updated successfully, but these errors were encountered:
It looks like PRs have been raised and not merged due to concerns of building on top of the current system pending an overhaul / migration to a different assets system. However, its already been at least a year since this problem has been reported. So if an overhaul of the assets system is not going to be done soon, I'd appreciate a not ideal but workable solution being available in the meantime.
Bevy version
0.5
Operating system & version
Windows 10
What you did
I'm working on integrating Bevy with the Synthizer audio library. I have 2 assets which I'm creating custom asset loaders for:
Buffer
for representing buffers of audio data, these are decoded upon loadStream
for audio streams. These are decoded on demand, useful for long music tracks and the likeWhat you expected to happen
Both asset loaders return the same file extensions, because I figured that as long as I disambiguated which one I wanted to use by providing a type parameter to load that it would use the right one.
What actually happened
I registered the asset loader for loading buffers first, then streams. The second one was always chosen.
I would expect this to correctly use the asset loader for buffers, as the type parameter provides enough information to disambiguate.
Additional information
Any additional information you would like to add such as screenshots, logs, etc.
The text was updated successfully, but these errors were encountered: