[Jackrtp-cvs] jackrtp/include/jackrtp JackSink.hh,NONE,1.1 Makefile.am,1.2,1.3
Status: Alpha
Brought to you by:
p_tisserand
|
From: Schampijer, S. <er...@us...> - 2004-07-29 14:04:14
|
Update of /cvsroot/jackrtp/jackrtp/include/jackrtp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10724/include/jackrtp Modified Files: Makefile.am Added Files: JackSink.hh Log Message: Modified for our new needs : configure.in include/Makefile.am include/jackrtp/Makefile.am Added : include/jackrtp/JackSink.hh --- NEW FILE: JackSink.hh --- /* jackRtp Copyright (C) 2004 by IRCAM-Centre Georges Pompidou, Paris, France. This file is part of jackRtp. jackRtp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. jackRtp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with jackRtp; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef JACK_SINK_HH #define JACK_SINK_HH 1 #include <jacklive/threadinfo.h> #ifndef _MEDIA_SINK_HH #include "MediaSink.hh" #endif class JackSink: public MediaSink { public: static JackSink* createNew(UsageEnvironment& env, jack_thread_info_t* thread_info, unsigned long bufferSize = 1400); /* "bufferSize" should be at least as large as the largest expected input frame. (normally not more than 1400 Bytes) and the thread_info gives us a pointer to the ringbuffer we want to write to */ protected: JackSink(UsageEnvironment& env, jack_thread_info_t* thread_info, unsigned long bufferSize); // called only by createNew() virtual ~JackSink(); protected: static void afterGettingFrame(void* clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds); virtual void afterGettingFrame1(unsigned frameSize, struct timeval presentationTime); /// shared element with Jack Audio Connection Kit process jack_thread_info_t* m_thread_info; /// Buffer we write the Audio data from the RTP packets to unsigned char *fBuffer; /// the Buffersize of our Buffer(Minimum have to be the largest frame expected) unsigned long fBufferSize; FILE *debugFile; private: // redefined virtual functions: virtual Boolean continuePlaying(); }; #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/jackrtp/jackrtp/include/jackrtp/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.am 29 Jul 2004 13:47:28 -0000 1.2 --- Makefile.am 29 Jul 2004 14:04:05 -0000 1.3 *************** *** 1,5 **** noinst_HEADERS= \ threadinfo.h\ - ArrayServerMediaSubsession.hh\ - L16ServerMediaSubsession.hh\ JackSource.hh\ --- 1,4 ---- noinst_HEADERS= \ threadinfo.h\ JackSource.hh\ + JackSink.hh\ |