summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-09 07:06:08 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-09 07:06:08 +0000
commite58d19666ee71630cbc267928b4f9cac1fa09580 (patch)
treeaa496409ed53905d577503117b3cf7a94598e461 /pjmedia/include
parentcf6e8a6e1d79d98378427ee60dfa099808517732 (diff)
Fixed all VS6 and VS8 projects with new third party projects layout
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1177 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia.h1
-rw-r--r--pjmedia/include/pjmedia/config.h48
-rw-r--r--pjmedia/include/pjmedia/mp3_port.h147
3 files changed, 43 insertions, 153 deletions
diff --git a/pjmedia/include/pjmedia.h b/pjmedia/include/pjmedia.h
index 6db9bbe7..4a104512 100644
--- a/pjmedia/include/pjmedia.h
+++ b/pjmedia/include/pjmedia.h
@@ -38,7 +38,6 @@
#include <pjmedia/jbuf.h>
#include <pjmedia/master_port.h>
#include <pjmedia/mem_port.h>
-#include <pjmedia/mp3_port.h>
#include <pjmedia/null_port.h>
#include <pjmedia/plc.h>
#include <pjmedia/port.h>
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h
index 2d64e0ec..23e1318d 100644
--- a/pjmedia/include/pjmedia/config.h
+++ b/pjmedia/include/pjmedia/config.h
@@ -108,22 +108,55 @@
#endif
-/**
+/*
+ * ** THIS MACRO IS DEPRECATED in 0.6. **
+ * ** See libresample for configuring this **
+ *
* Include small filter table in resample.
* This adds about 9KB in rdata.
*/
+/*
#ifndef PJMEDIA_HAS_SMALL_FILTER
# define PJMEDIA_HAS_SMALL_FILTER 1
#endif
+*/
-
-/**
+/*
+ * ** THIS MACRO IS DEPRECATED in 0.6. **
+ * ** See libresample for configuring this **
+ *
* Include large filter table in resample.
* This adds about 32KB in rdata.
*/
+/*
#ifndef PJMEDIA_HAS_LARGE_FILTER
# define PJMEDIA_HAS_LARGE_FILTER 1
#endif
+*/
+
+/**
+ * Specify whether libresample should be used for the sampling
+ * rate conversion. This macro and PJMEDIA_HAS_SPEEX_RESAMPLE
+ * are mutually exclusive.
+ *
+ * Default: 1 (Yes)
+ */
+#ifndef PJMEDIA_HAS_LIBRESAMPLE
+# define PJMEDIA_HAS_LIBRESAMPLE 1
+#endif
+
+
+/**
+ * Specify whether Speex sample rate convertor should be used for the
+ * sampling rate conversion. This macro and PJMEDIA_HAS_LIBRESAMPLE
+ * are mutually exclusive.
+ *
+ * Default: 0
+ */
+#ifndef PJMEDIA_HAS_SPEEX_RESAMPLE
+# define PJMEDIA_HAS_SPEEX_RESAMPLE 0
+#endif
+
/**
@@ -243,9 +276,14 @@
/**
* Enable Steve Underwood's PLC.
+ *
+ * ** This has now been deprecated. If the codec does not have **
+ * ** PLC, then no PLC will be used for that particular codec. **
+ *
+ * Set this to zero, or other link error will occur.
*/
#ifndef PJMEDIA_HAS_STEVEU_PLC
-# define PJMEDIA_HAS_STEVEU_PLC PJ_HAS_FLOATING_POINT
+# define PJMEDIA_HAS_STEVEU_PLC 0
#endif
@@ -275,7 +313,7 @@
* 16 will effectively zero the signal.
*/
#ifndef PJMEDIA_ECHO_SUPPRESS_FACTOR
-# define PJMEDIA_ECHO_SUPPRESS_FACTOR 4
+# define PJMEDIA_ECHO_SUPPRESS_FACTOR 10
#endif
diff --git a/pjmedia/include/pjmedia/mp3_port.h b/pjmedia/include/pjmedia/mp3_port.h
deleted file mode 100644
index a4fc7e5f..00000000
--- a/pjmedia/include/pjmedia/mp3_port.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/* $Id$ */
-/*
- * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.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 2 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, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-/*
- * Contributed by:
- * Toni < buldozer at aufbix dot org >
- */
-
-#ifndef __PJMEDIA_MP3_PORT_H__
-#define __PJMEDIA_MP3_PORT_H__
-
-
-/**
- * @file mp3_port.h
- * @brief MP3 writer
- */
-#include <pjmedia/port.h>
-
-/**
- * @defgroup PJMEDIA_MP3_FILE_REC MP3 Audio File Writer (Recorder)
- * @ingroup PJMEDIA_PORT
- * @brief MP3 Audio File Writer (Recorder)
- * @{
- *
- * This section describes MP3 file writer. Currently it only works on Windows
- * using BladeEncDLL of the LAME MP3 encoder. <b>Note that the LAME_ENC.DLL
- * file must exist in the PATH so that the encoder can work properly.</b>
- *
- * The MP3 file writer is created with #pjmedia_mp3_writer_port_create() which
- * among other things specifies the desired file name and audio properties.
- * It then takes PCM input when #pjmedia_port_put_frame() is called and encode
- * the PCM input into MP3 streams before writing it to the .mp3 file.
- */
-
-
-PJ_BEGIN_DECL
-
-
-/**
- * This structure contains encoding options that can be specified during
- * MP3 writer port creation. Application should always zero the structure
- * before setting some value to make sure that default options will be used.
- */
-typedef struct pjmedia_mp3_encoder_option
-{
- /** Specify whether variable bit rate should be used. Variable bitrate
- * would normally produce better quality at the expense of probably
- * larger file.
- */
- pj_bool_t vbr;
-
- /** Target bitrate, in bps. If VBR is enabled, this settings specifies
- * the average bit-rate requested, and will make the encoder ignore
- * the quality setting. For CBR, this specifies the actual bitrate,
- * and if this option is zero, it will be set to the sampling rate
- * multiplied by number of channels.
- */
- unsigned bit_rate;
-
- /** Encoding quality, 0-9, with 0 is the highest quality. For VBR, the
- * quality setting will only take effect when bit_rate setting is zero.
- */
- unsigned quality;
-
-} pjmedia_mp3_encoder_option;
-
-
-/**
- * Create a media port to record PCM media to a MP3 file. After the port
- * is created, application can call #pjmedia_port_put_frame() to feed the
- * port with PCM frames. The port then will encode the PCM frame into MP3
- * stream, and store it to MP3 file specified in the argument.
- *
- * When application has finished with writing MP3 file, it must destroy the
- * media port with #pjmedia_port_destroy() so that the MP3 file can be
- * closed properly.
- *
- * @param pool Pool to create memory buffers for this port.
- * @param filename File name.
- * @param clock_rate The sampling rate.
- * @param channel_count Number of channels.
- * @param samples_per_frame Number of samples per frame.
- * @param bits_per_sample Number of bits per sample (eg 16).
- * @param option Optional option to set encoding parameters.
- * @param p_port Pointer to receive the file port instance.
- *
- * @return PJ_SUCCESS on success.
- */
-PJ_DECL(pj_status_t)
-pjmedia_mp3_writer_port_create(pj_pool_t *pool,
- const char *filename,
- unsigned clock_rate,
- unsigned channel_count,
- unsigned samples_per_frame,
- unsigned bits_per_sample,
- const pjmedia_mp3_encoder_option *option,
- pjmedia_port **p_port );
-
-/**
- * Register the callback to be called when the file writing has reached
- * certain size. Application can use this callback, for example, to limit
- * the size of the output file.
- *
- * @param port The file writer port.
- * @param pos The file position on which the callback will be called.
- * @param user_data User data to be specified in the callback, and will be
- * given on the callback.
- * @param cb Callback to be called. If the callback returns non-
- * PJ_SUCCESS, the writing will stop. Note that if
- * application destroys the port in the callback, it must
- * return non-PJ_SUCCESS here.
- *
- * @return PJ_SUCCESS on success.
- */
-PJ_DECL(pj_status_t)
-pjmedia_mp3_writer_port_set_cb( pjmedia_port *port,
- pj_size_t pos,
- void *user_data,
- pj_status_t (*cb)(pjmedia_port *port,
- void *usr_data));
-
-
-/**
- * @}
- */
-
-
-PJ_END_DECL
-
-#endif /* __PJMEDIA_MP3_PORT_H__ */
-