gr-satnogs/include/satnogs/ogg_encoder.h

56 lines
1.6 KiB
C
Raw Normal View History

2017-02-02 20:05:02 +01:00
/* -*- c++ -*- */
/*
* gr-satnogs: SatNOGS GNU Radio Out-Of-Tree Module
*
* Copyright (C) 2017, Libre Space Foundation <http://librespacefoundation.org/>
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef INCLUDED_SATNOGS_OGG_ENCODER_H
#define INCLUDED_SATNOGS_OGG_ENCODER_H
#include <satnogs/api.h>
#include <gnuradio/sync_block.h>
2017-02-03 00:24:10 +01:00
namespace gr
{
namespace satnogs
{
2017-02-02 20:05:02 +01:00
/*!
2017-02-03 00:24:10 +01:00
* \brief Ogg encoder and sink block
2017-02-02 20:05:02 +01:00
* \ingroup satnogs
*
*/
class SATNOGS_API ogg_encoder : virtual public gr::sync_block
{
2017-02-03 00:24:10 +01:00
public:
2017-02-02 20:05:02 +01:00
typedef boost::shared_ptr<ogg_encoder> sptr;
/*!
2017-02-03 00:24:10 +01:00
* Ogg encoder and sink block.
* @param filename filename of the output file
* @param samp_rate the sampling rate
* @param quality the quality of the output file. [0.1 - 1.0] (worst - best)
2017-02-02 20:05:02 +01:00
*/
2017-02-03 00:24:10 +01:00
static sptr
make (char* filename, double samp_rate, float quality);
2017-02-02 20:05:02 +01:00
};
} // namespace satnogs
} // namespace gr
#endif /* INCLUDED_SATNOGS_OGG_ENCODER_H */