Storing audio data encoded in any of a plurality of different audio
encoding formats is enabled by parametrically defining the underlying
format in which the audio data is encoded, in audio format and packet
table chunks. A flag can be used to manage storage of the size of the
audio data portion of the file, such that premature termination of an
audio recording session does not result in an unreadable corrupted file.
This capability can be enabled by initially setting the flag to a value
that does not correspond to a valid audio data size and that indicates
that the last chunk in the file contains the audio data. State
information for the audio data, to effectively denote a version of the
file, and a dependency indicator for dependent metadata, may be
maintained, where the dependency indicator indicates the state of the
audio data on which the metadata is dependent.