Re: File_Vorbis Latest... [FOLLOWUP]

From: Date: Wed, 13 Aug 2003 00:02:48 +0000
Subject: Re: File_Vorbis Latest... [FOLLOWUP]
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19627@lists.php.net to get a copy of this message
On 13 Aug 2003 at 2:32, David Grant wrote: > On 2003.08.12 23:48, Stefan Neufeind wrote: > > Generally I'd love to see a package to handle ogg/vorbis-files. But > > maybe give it a thought about abstracting the ogg-container in > > general and also aming to support Theora, Speex and similar in the > > future. This would mean a future-wise and extensible setup without > > braking BC or reinventing the wheel. > > Please look here: > > http://jalapeno.dyndns.org/File_Ogg/ > > Only a fraction done so far, but it's abstracted the Ogg-specific part > to the base. Does your class take multiple "streams" in consideration yet? (If yes, I didn't say anything *g*) Maybe it would be wise to also implement functions in the ogg-class to "read streaminfos from file XXX". This way File_Ogg might recognize e.g. an audio-stream (to be more specific: vorbis in your case - in contrast to speex) and get information from that stream using File_Ogg_Vorbis. Maybe if you use File_Ogg the return could be something like Array( filename, filesize streams=Array( [0]=Array( type="audio" encoding="vorbis" ... ) ) ) This way you could as well support multiple audio/video-streams. PS: Just a proposal. Public comments welcome. Stefan

« previous php.pear.dev (#19627) next »