# #5 Support alternative containers

| Field   | Value |
|---------|-------|
| **State** | open |
| **Author** | @est31 |
| **Created** | 2017-06-08 |
| **Updated** | 2017-06-21 |
| **URL** | https://github.com/ruuda/claxon/issues/5 |

---

Flac doesn't have to be inside its own custom container, it can also be encapsulated inside ogg or inside the mp4 container. It would be cool if this crate supported those use cases, maybe through optional cargo features.

My lewton crate is organized in a very generic fashion: [its main function](https://docs.rs/lewton/0.6.1/lewton/audio/fn.read_audio_packet.html) only takes a byte slice and treats that as one packet, regardless of the actual container format. The entire crate knows nothing about the container format, except for the `inside_ogg` module. Having such a setup for the claxon crate would be really cool.
