HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file media.audio.Decoder by barry
expand copy to clipboardexpand
uses io.audio.AudioFormat

/* {"description" : "Simple audio decoder API."} */
interface Decoder {

	/* {"@description" : "Create a new audio decoder instance with a given audio output format. The provided content should be an entire encoded audio entity (such as the content a file)"} */
	Decoder(AudioFormat format, byte content[])

	/* {"@description" : "Decode a number of frames of ebcoded audio into raw int4 values suitable for playout. The frame count is the number of complete frames, where one complete frame includes one sample for each channel."} */
	int4[] decode(int frames)

}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n media.audio.Decoder -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Adds simple audio decoder API