liveMedia/MP3AudioMatroskaFileServerMediaSubsession.hh

Go to the documentation of this file.
00001 /**********
00002 This library is free software; you can redistribute it and/or modify it under
00003 the terms of the GNU Lesser General Public License as published by the
00004 Free Software Foundation; either version 2.1 of the License, or (at your
00005 option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
00006 
00007 This library is distributed in the hope that it will be useful, but WITHOUT
00008 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00009 FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
00010 more details.
00011 
00012 You should have received a copy of the GNU Lesser General Public License
00013 along with this library; if not, write to the Free Software Foundation, Inc.,
00014 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
00015 **********/
00016 // "liveMedia"
00017 // Copyright (c) 1996-2012 Live Networks, Inc.  All rights reserved.
00018 // A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
00019 // on demand, from an MP3 audio track within a Matroska file.
00020 // (Actually, MPEG-1 or MPEG-2 audio should also work.)
00021 // C++ header
00022 
00023 #ifndef _MP3_AUDIO_MATROSKA_FILE_SERVER_MEDIA_SUBSESSION_HH
00024 #define _MP3_AUDIO_MATROSKA_FILE_SERVER_MEDIA_SUBSESSION_HH
00025 
00026 #ifndef _MP3_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
00027 #include "MP3AudioFileServerMediaSubsession.hh"
00028 #endif
00029 #ifndef _MATROSKA_FILE_SERVER_DEMUX_HH
00030 #include "MatroskaFileServerDemux.hh"
00031 #endif
00032 
00033 class MP3AudioMatroskaFileServerMediaSubsession: public MP3AudioFileServerMediaSubsession {
00034 public:
00035   static MP3AudioMatroskaFileServerMediaSubsession*
00036   createNew(MatroskaFileServerDemux& demux, unsigned trackNumber, Boolean generateADUs, Interleaving* interleaving);
00037       // Note: "interleaving" is used only if "generateADUs" is True,
00038       // (and a value of NULL means 'no interleaving')
00039 
00040 private:
00041   MP3AudioMatroskaFileServerMediaSubsession(MatroskaFileServerDemux& demux, unsigned trackNumber,
00042                                             Boolean generateADUs, Interleaving* interleaving);
00043       // called only by createNew();
00044   virtual ~MP3AudioMatroskaFileServerMediaSubsession();
00045 
00046 private: // redefined virtual functions
00047   virtual void seekStreamSource(FramedSource* inputSource, double& seekNPT, double streamDuration, u_int64_t& numBytes);
00048   virtual FramedSource* createNewStreamSource(unsigned clientSessionId,
00049                                               unsigned& estBitrate);
00050 
00051 private:
00052   MatroskaFileServerDemux& fOurDemux;
00053   unsigned fTrackNumber;
00054 };
00055 
00056 #endif

Generated on Thu May 17 07:11:46 2012 for live by  doxygen 1.5.2