KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
DccVoiceThread Class Reference

#include <DccVoiceWindow.h>

+ Inheritance diagram for DccVoiceThread:

Public Member Functions

 DccVoiceThread (KviWindow *wnd, kvi_socket_t fd, KviDccVoiceThreadOptions *opt)
 
 ~DccVoiceThread ()
 
- Public Member Functions inherited from DccThread
 DccThread (QObject *par, kvi_socket_t fd)
 
QObject * parent ()
 
void postErrorEvent (int err)
 
void postMessageEvent (const char *message)
 
 ~DccThread ()
 
- Public Member Functions inherited from KviSensitiveThread
void enqueueEvent (KviThreadEvent *e)
 
 KviSensitiveThread ()
 
void terminate ()
 
virtual ~KviSensitiveThread ()
 
- Public Member Functions inherited from KviThread
void internalThreadRun_doNotTouchThis ()
 
bool isRunning ()
 
bool isStartingUp ()
 
 KviThread ()
 
bool start ()
 
void wait ()
 
virtual ~KviThread ()
 

Protected Member Functions

bool checkSoundcard ()
 
void closeSoundcard ()
 
bool openSoundcard (int mode)
 
bool openSoundcardForReading ()
 
bool openSoundcardForWriting ()
 
bool openSoundcardWithDuplexOption (int openMode, int failMode)
 
bool readWriteStep ()
 
virtual void run ()
 
bool soundStep ()
 
void startPlaying ()
 
void startRecording ()
 
void stopPlaying ()
 
void stopRecording ()
 
- Protected Member Functions inherited from DccThread
bool handleInvalidSocketRead (int readLen)
 
- Protected Member Functions inherited from KviSensitiveThread
KviThreadEventdequeueEvent ()
 
- Protected Member Functions inherited from KviThread
void exit ()
 
void postEvent (QObject *o, QEvent *e)
 

Protected Attributes

bool m_bPlaying
 
bool m_bRecording
 
bool m_bRecordingRequestPending
 
bool m_bSoundcardChecked
 
int m_iInputBufferSize
 
int m_iLastSignalBufferSize
 
long m_iLastSignalBufferTime
 
KviDataBuffer m_inFrameBuffer
 
KviDataBuffer m_inSignalBuffer
 
int m_iOutputBufferSize
 
KviDataBuffer m_outFrameBuffer
 
KviDataBuffer m_outSignalBuffer
 
KviMutexm_pInfoMutex
 
KviDccVoiceThreadOptionsm_pOpt
 
int m_soundFd
 
int m_soundFdMode
 
- Protected Attributes inherited from DccThread
kvi_socket_t m_fd
 
KviMutexm_pMutex
 
QObject * m_pParent
 
- Protected Attributes inherited from KviSensitiveThread
KviPointerList< KviThreadEvent > * m_pLocalEventQueue
 
KviMutexm_pLocalEventQueueMutex
 

Friends

class DccVoiceWindow
 

Additional Inherited Members

- Static Public Member Functions inherited from KviThread
static void msleep (unsigned long msec)
 
static void sleep (unsigned long sec)
 
static void usleep (unsigned long usec)
 

Constructor & Destructor Documentation

DccVoiceThread::DccVoiceThread ( KviWindow wnd,
kvi_socket_t  fd,
KviDccVoiceThreadOptions opt 
)
DccVoiceThread::~DccVoiceThread ( )

Member Function Documentation

bool DccVoiceThread::checkSoundcard ( )
protected
void DccVoiceThread::closeSoundcard ( )
protected
bool DccVoiceThread::openSoundcard ( int  mode)
protected
bool DccVoiceThread::openSoundcardForReading ( )
protected
bool DccVoiceThread::openSoundcardForWriting ( )
protected

References openSoundcardWithDuplexOption().

Referenced by startPlaying().

bool DccVoiceThread::openSoundcardWithDuplexOption ( int  openMode,
int  failMode 
)
protected
bool DccVoiceThread::readWriteStep ( )
protected
void DccVoiceThread::run ( )
protectedvirtual
bool DccVoiceThread::soundStep ( )
protected
void DccVoiceThread::startPlaying ( )
protected
void DccVoiceThread::startRecording ( )
protected
void DccVoiceThread::stopPlaying ( )
protected
void DccVoiceThread::stopRecording ( )
protected

Friends And Related Function Documentation

friend class DccVoiceWindow
friend

Member Data Documentation

bool DccVoiceThread::m_bPlaying
protected
bool DccVoiceThread::m_bRecording
protected
bool DccVoiceThread::m_bRecordingRequestPending
protected
bool DccVoiceThread::m_bSoundcardChecked
protected
int DccVoiceThread::m_iInputBufferSize
protected

Referenced by run(), and DccVoiceWindow::updateInfo().

int DccVoiceThread::m_iLastSignalBufferSize
protected

Referenced by soundStep().

long DccVoiceThread::m_iLastSignalBufferTime
protected

Referenced by soundStep().

KviDataBuffer DccVoiceThread::m_inFrameBuffer
protected

Referenced by readWriteStep().

KviDataBuffer DccVoiceThread::m_inSignalBuffer
protected

Referenced by readWriteStep(), run(), and soundStep().

int DccVoiceThread::m_iOutputBufferSize
protected

Referenced by run(), and DccVoiceWindow::updateInfo().

KviDataBuffer DccVoiceThread::m_outFrameBuffer
protected

Referenced by readWriteStep(), run(), and soundStep().

KviDataBuffer DccVoiceThread::m_outSignalBuffer
protected

Referenced by soundStep().

KviMutex* DccVoiceThread::m_pInfoMutex
protected
KviDccVoiceThreadOptions* DccVoiceThread::m_pOpt
protected
int DccVoiceThread::m_soundFd
protected
int DccVoiceThread::m_soundFdMode
protected

The documentation for this class was generated from the following files: