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

« back to all changes in this revision

Viewing changes to sflphone-common/src/audio/audioprocessing.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
#include "algorithm.h"
36
36
 
37
37
/**
38
 
 * Process audio buffers using specified at instantiation which may be 
 
38
 * Process audio buffers using specified at instantiation which may be
39
39
 * changed dynamically at runtime.
40
40
 */
41
 
class AudioProcessing {
42
 
 
43
 
public:
44
 
 
45
 
  /**
46
 
   * The constructor for this class
47
 
   */
48
 
  AudioProcessing(Algorithm *_algo);
49
 
 
50
 
  ~AudioProcessing(void);
51
 
 
52
 
  /**
53
 
   * Set a new algorithm to process audio. Algorithm must be a subclass of abstract class Algorithm
54
 
   */
55
 
  void setAlgorithm(Algorithm *_algo) { _algorithm = _algo; }
56
 
 
57
 
  /**
58
 
   * Put data in internal buffer
59
 
   */
60
 
  void putData(SFLDataFormat *inputData);
61
 
 
62
 
  /**
63
 
   * Process dome audio data
64
 
   */
65
 
  void processAudio(SFLDataFormat *inputData, SFLDataFormat *outputData);
66
 
 
67
 
  /**
68
 
   * Process some audio data.
69
 
   */
70
 
  void processAudio(SFLDataFormat *micData, SFLDataFormat *spkrData, SFLDataFormat *outputData);
71
 
 
72
 
private:
73
 
 
74
 
  Algorithm *_algorithm;
 
41
class AudioProcessing
 
42
{
 
43
 
 
44
    public:
 
45
 
 
46
        /**
 
47
         * The constructor for this class
 
48
         */
 
49
        AudioProcessing (Algorithm *_algo);
 
50
 
 
51
        ~AudioProcessing (void);
 
52
 
 
53
        /**
 
54
         * Set a new algorithm to process audio. Algorithm must be a subclass of abstract class Algorithm
 
55
         */
 
56
        void setAlgorithm (Algorithm *_algo) {
 
57
            _algorithm = _algo;
 
58
        }
 
59
 
 
60
 
 
61
        /**
 
62
         * Reset parameters for the algorithm
 
63
         */
 
64
        void resetAlgorithm();
 
65
 
 
66
        /**
 
67
         * Put data in internal buffer
 
68
         */
 
69
        void putData (SFLDataFormat *inputData, int nbBytes);
 
70
 
 
71
        /**
 
72
         * Get data from internal buffer
 
73
         */
 
74
        int getData (SFLDataFormat *outputData);
 
75
 
 
76
        /**
 
77
         * Process some audio data
 
78
         */
 
79
        void processAudio (SFLDataFormat *inputData, int nbBytes);
 
80
 
 
81
        /**
 
82
         * Process some audio data
 
83
         */
 
84
        int processAudio (SFLDataFormat *inputData, SFLDataFormat *outputData, int nbBytes);
 
85
 
 
86
        /**
 
87
         * Process some audio data.
 
88
         */
 
89
        void processAudio (SFLDataFormat *micData, SFLDataFormat *spkrData, SFLDataFormat *outputData, int nbBytes);
 
90
 
 
91
    private:
 
92
 
 
93
        Algorithm *_algorithm;
75
94
 
76
95
};
77
96