Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ossstream.hh

Go to the documentation of this file.
00001 /*
00002  * PIAVE - PIAVE Is A Video Editor
00003  *
00004  * Copyright (C) 2002 Rolf Dubitzky, rolf@dubitzky.de
00005  *
00006  */
00007 
00008 /*
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software Foundation,
00021  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00022  */
00023 
00024 
00029 #if ! defined( OSSSTREAM_HH )
00030 #define OSSSTREAM_HH
00031 
00032 // stdc
00033 #include <signal.h>
00034 #include <unistd.h>
00035 #include <fcntl.h>
00036 #include <sys/stat.h>
00037 
00038 // stdc++
00039 #include <string>
00040 
00041 // PIAVE
00042 #include "libpiave/piave_base.hh"
00043 #include "libpiave/avstream.hh"
00044 #include "libpiave/exception.hh"
00045 
00046 // SDL
00047 #include <SDL/SDL.h>
00048 #include <SDL/SDL_syswm.h>
00049 
00050 namespace PIAVE {
00051 
00052     class Frame;
00053 
00054     class OssPlugin : public Plugin
00055     {
00056       public:
00057         OssPlugin();
00058         virtual PluginBase * newElement( const PropertyNode * p = 0 );
00059     };
00060 
00061 
00065     class OutOSSStream : public OutAudioStreamIFace
00066     {
00067       public:
00068         OutOSSStream();
00069         ~OutOSSStream();
00070         virtual void putFrame( Frame & f );
00071 
00072         virtual PropertyNode * getProperties( PropertyNode * p ) const;
00073 
00074       private:
00075         void init( Frame & f ) throw(exception);
00076 
00077       private:
00078         int            _fd;
00079         int            _nChannels;
00080         int            _frequency;
00081         std::string    _deviceName;
00082         
00083     };
00084 
00085 };
00086 
00087 #endif

Generated on Tue Oct 14 20:45:36 2003 for piave by doxygen1.2.18