bevy/crates/bevy_audio
MinerSebas 4fed2ee858 Use cfg attribute to filter supported extensions (#2297)
When implementing `AssetLoader ` you need to specify which File extensions are supported by that loader.
Currently, Bevy always says it supports extensions that actually require activating a Feature beforehand.

This PR adds cf attributes, so Bevy only tries to load those Extensions whose Features were activated.

This prevents Bevy from Panicking and reports such a warning:
```
Jun 02 23:05:57.139  WARN bevy_asset::asset_server: no `AssetLoader` found for the following extension: ogg
```

This also fixes the Bug, that the `png Feature had to be activated even if you wanted to load a different image format.

Fixes #640
2021-06-03 19:58:08 +00:00
..
src Use cfg attribute to filter supported extensions (#2297) 2021-06-03 19:58:08 +00:00
Cargo.toml Update rodio requirement from 0.13 to 0.14 (#2244) 2021-05-29 01:08:58 +00:00