~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/src/audio/algorithm.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
/**
37
37
 * \class Algorithm
38
 
 * 
 
38
 *
39
39
 * Abstract interface used to implement audio processing algorithm
40
40
 */
41
 
class Algorithm {
42
 
 
43
 
 public:
44
 
 
45
 
  /**
46
 
   * Put data to be processed
47
 
   */
48
 
  virtual void putData(SFLDataFormat *inputData) = 0;
49
 
 
50
 
  /**
51
 
   * Class implementing this interface must define this function 
52
 
   * for audio processing that require synchronization between spkrdata and
53
 
   */
54
 
  virtual void process(SFLDataFormat *inputData, SFLDataFormat *outputData) = 0;
55
 
 
56
 
  /**
57
 
   * Class implementing this interface must define this function 
58
 
   * for audio processing that require synchronization between spkr and mic 
59
 
   * \param micData
60
 
   * \param spkrData
61
 
   * \param outputData
62
 
   */
63
 
  virtual void process(SFLDataFormat *micData, SFLDataFormat *spkrData, SFLDataFormat *outputData) = 0;
 
41
class Algorithm
 
42
{
 
43
 
 
44
    public:
 
45
 
 
46
        virtual void reset (void) = 0;
 
47
 
 
48
        /**
 
49
         * Put data to be processed
 
50
         */
 
51
        virtual void putData (SFLDataFormat *inputData, int nbBytes) = 0;
 
52
 
 
53
        /**
 
54
         *
 
55
         */
 
56
        virtual int getData (SFLDataFormat *outputData) = 0;
 
57
 
 
58
        /**
 
59
         * Class implementing this interface must define this function
 
60
         * for audio processing that require synchronization between spkrdata and
 
61
         */
 
62
        virtual void process (SFLDataFormat *inputData, int nbBytes) = 0;
 
63
 
 
64
        /**
 
65
         * Class implementing this interface must define this function
 
66
         * for audio processing that require synchronization between spkrdata and
 
67
         */
 
68
        virtual int process (SFLDataFormat *inputData, SFLDataFormat *outputData, int nbBytes) = 0;
 
69
 
 
70
        /**
 
71
         * Class implementing this interface must define this function
 
72
         * for audio processing that require synchronization between spkr and mic
 
73
         * \param micData
 
74
         * \param spkrData
 
75
         * \param outputData
 
76
         */
 
77
        virtual void process (SFLDataFormat *micData, SFLDataFormat *spkrData, SFLDataFormat *outputData, int nbBytes) = 0;
64
78
 
65
79
};
66
80