Logo Search packages:      
Sourcecode: qarecord version File versions  Download package

capture.h

#ifndef CAPTURE_H
#define CAPTURE_H

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <qobject.h>
#include <qthread.h>
#include <alsa/asoundlib.h>
#include "recdata.h"

class Capture : public QThread
{

  private:
    RecData *recdata;
    unsigned char *periodBuf;
    snd_pcm_t *capture_handle;

  private: 
    snd_pcm_t *open_pcm();
  
  public:
    Capture(long periodSize, RecData *p_recdata);
    ~Capture();
    virtual void run();                    
};
  
#endif

Generated by  Doxygen 1.6.0   Back to index