~ubuntu-branches/ubuntu/saucy/iaxmodem/saucy

« back to all changes in this revision

Viewing changes to lib/spandsp/src/spandsp/v22bis.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien BLACHE
  • Date: 2006-10-28 10:54:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061028105455-qdnaih9tmq0uc29w
Tags: 0.1.15~dfsg-1
* New upstream release.
* debian/rules:
  + Use new ~dfsg versionning scheme.
  + Do not remove config.* in get-orig-source.
* debian/patches/11_build_configure-stamp.dpatch:
  + Updated.
* debian/iaxmodem.init:
  + Added LSB header.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 * along with this program; if not, write to the Free Software
24
24
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25
25
 *
26
 
 * $Id: v22bis.h,v 1.11 2006/03/05 07:34:32 steveu Exp $
 
26
 * $Id: v22bis.h,v 1.13 2006/08/23 14:34:13 steveu Exp $
27
27
 */
28
28
 
29
29
/*! \file */
54
54
#define V22BIS_EQUALIZER_LEN    7  /* this much to the left and this much to the right */
55
55
#define V22BIS_EQUALIZER_MASK   15 /* one less than a power of 2 >= (2*V22BIS_EQUALIZER_LEN + 1) */
56
56
 
57
 
#define V22BIS_TX_FILTER_STEPS  107
 
57
#define V22BIS_TX_FILTER_STEPS  9
58
58
 
59
59
#define V22BIS_RX_FILTER_STEPS  37
60
60
 
142
142
    complex_t tx_rrc_filter[2*V22BIS_TX_FILTER_STEPS];
143
143
    /*! \brief Current offset into the RRC pulse shaping filter buffer. */
144
144
    int tx_rrc_filter_step;
145
 
    /*! \brief The current constellation position. */
146
 
    complex_t current_point;
147
145
 
148
146
    /*! \brief The register for the data scrambler. */
149
147
    unsigned int tx_scramble_reg;
204
202
    \param amp The audio sample buffer.
205
203
    \param len The number of samples in the buffer.
206
204
    \return The number of samples unprocessed. */
207
 
int v22bis_rx(v22bis_state_t *s, const int16_t *amp, int len);
 
205
int v22bis_rx(v22bis_state_t *s, const int16_t amp[], int len);
208
206
 
209
207
/*! Get a snapshot of the current equalizer coefficients.
210
208
    \brief Get a snapshot of the current equalizer coefficients.
239
237
    \param amp The audio sample buffer.
240
238
    \param len The number of samples to be generated.
241
239
    \return The number of samples actually generated. */
242
 
int v22bis_tx(v22bis_state_t *s, int16_t *amp, int len);
 
240
int v22bis_tx(v22bis_state_t *s, int16_t amp[], int len);
243
241
 
244
242
/*! Adjust a V.22bis modem transmit context's power output.
245
243
    \brief Adjust a V.22bis modem transmit context's output power.