Codecs may be accessed via RequireJS modules in the format like so:
Codecs are in the types folder, sorted and named according to Internet media (MIME) type.
The following codecs are working partially:
* audio/wav - Microsoft WAVE audio
The following codecs are coming soon:
The following codecs are in the pipeline, but as yet not started:
While browsers may (eventually) provide methods for generating encoded data, as is currently available for the canvas tag, there are two reasons to justify this project regardless:
1. Browsers may limit the amount of control that may be applied to each file created (e.g. canvas getDataURL [sic] isn't going to allow you to extract a 1-bit bitmap file with the palette colours as red and grey)
2. The context may be outside of the browser
The name 'raff' is a Rocky Horror-esque pun on the 'RIFF' container format name, which is one of the first implemented components of this project. As always, this is in very early stages, here be dragons.
This will probably always be in a very early stage, in fact.