package File::Format::RIFF::List; use base File::Format::RIFF::Container; our $VERSION = '0.04'; sub new { my ( $proto, $type, $data ) = @_; return $proto->SUPER::new( $type, 'LIST', $data ); } sub read { my ( $proto, $fh ) = @_; return $proto->SUPER::read( 'LIST', $fh ); } 1; =pod =head1 NAME File::Format::RIFF::List - a single RIFF list =head1 SYNOPSIS use File::Format::RIFF; my ( $list ) = new File::Format::RIFF::List; $list->type( 'stuf' ); $list->addChunk( abcd => 'a bunch of data' ); $list->addList( 'alst' )->addChunk( xyzw => 'more data' ); print $list->numChunks, "\n"; ... some $riff ... $riff->push( $list ); =head1 DESCRIPTION A C is a list of data in a RIFF file. It has an identifier, a type, and an array of data. The id is always 'LIST'. The type must be a four character code, and the data is an array of other lists and/or RIFF chunks. =head1 CONSTRUCTOR =over 4 =item my ( $list ) = new File::Format::RIFF::List( $type, $data ); fixme =back =head1 SEE ALSO =over 4 C inherits from C, so all methods available for Containers can be used on RIFF objects. A Container essentially contains an array of RIFF lists and/or RIFF chunks. See the L man page for more information. =back =head1 AUTHOR Paul Sturm EIE =cut