On 17/03/2008, Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>
wrote:> In theory, it's as simple as concatenating several files together. This
> is called "chaining". However, in practise, not all players
support it.
If you're writing a custom player, you can detect that a new chain has
started by looking for the "beginning of stream" marker on the ogg
pages. When you get that, simply reset your decoder state and do
whatever you would do to start playing a new file. So, it's quite easy
to play a chained file from beginning to end, but it's a bit trickier
to seek on it.
A different way to merge files together is to interleave the ogg
pages, so that each file becomes a different audio track for
simultaneous playback. You can use a tool like oggz-merge to create
such a file. Players like xine, mplayer, and most things based on
GStreamer, DirectShow etc. will work. If you are writing your own
player, then you just need to set up a separate decoder for each track
and then mix the decoded output. You can demux based on the serialno
field in the ogg page header.
cheers,
Conrad.
>
> Jean-Marc
>
> Howard Briggs a ?crit :
>
> > Hi
> >
> > Is it possible to merge Speex sound files into 1 file.
> >
> > We gave an application that requires several files to be merged and
> > played back as one.
> >
> > Any feedback would be very much appreciated.
> >
> >
> >
> > Thanks
> >
> >
> >
> > Howard Briggs
> >
> > De Havillands House
> > Back Lane
> > Hathersage
> > Hope Valley
> >
> > Sheffield S32 1AR
> >
> > Tel: 44 (0)1433 629 103
> > Mob:44 (0)77 174 157 27
> > Email: howard.briggs@elpedium.com
> > Web: www.elpedium.com
> >
> > The information contained in this message is confidential and may be
> > legally privileged. The message is intended solely for the
addressee(s).
> > If you are not the intended recipient, you are hereby notified that
any
> > use, dissemination, or reproduction is strictly prohibited and may be
> > unlawful. If you are not the intended recipient, please contact the
> > sender by return e-mail and destroy all copies of the original
message.
> >
> >
> >
> >
> >
>
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > Speex-dev mailing list
> > Speex-dev@xiph.org
> > http://lists.xiph.org/mailman/listinfo/speex-dev
> _______________________________________________
> Speex-dev mailing list
> Speex-dev@xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
>
>