]> git.tue.mpg.de Git - paraslash.git/commitdiff
afh: add additional fields channels, frequency, and bitrate to struct audio_format
authorAndre Noll <maan@systemlinux.org>
Sat, 24 Mar 2007 17:14:57 +0000 (18:14 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 24 Mar 2007 17:14:57 +0000 (18:14 +0100)
The idea is that these quantieties are computed by each audio format handler
anyway. So create a common place for them to store that info. This way it
may be used by vss and by afs.

afh.h

diff --git a/afh.h b/afh.h
index 5cc0371a6193b6e67028af876282250c10dd0ff7..e365df86569337ba767cfe9601f81c3ba39c939c 100644 (file)
--- a/afh.h
+++ b/afh.h
@@ -72,6 +72,9 @@ struct audio_format_info {
        char *header;
        /** the length of the header, ignored if \a header is \p NULL */
        unsigned header_len;
+       uint8_t channels;
+       uint16_t frequency;
+       uint16_t bitrate;
 };
 
 /**