![]() |
KVIrc 5.2.6
Developer APIs
|
#include <DccVoiceWindow.h>
Public Member Functions | |
DccVoiceThread (KviWindow *wnd, kvi_socket_t fd, KviDccVoiceThreadOptions *opt) | |
~DccVoiceThread () | |
![]() | |
DccThread (QObject *par, kvi_socket_t fd) | |
QObject * | parent () |
void | postErrorEvent (int err) |
void | postMessageEvent (const char *message) |
~DccThread () | |
![]() | |
void | enqueueEvent (KviThreadEvent *e) |
KviSensitiveThread () | |
void | terminate () |
virtual | ~KviSensitiveThread () |
![]() | |
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 () |
![]() | |
bool | handleInvalidSocketRead (int readLen) |
![]() | |
KviThreadEvent * | dequeueEvent () |
![]() | |
void | exit () |
virtual 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 |
KviMutex * | m_pInfoMutex |
KviDccVoiceThreadOptions * | m_pOpt |
int | m_soundFd |
int | m_soundFdMode |
![]() | |
kvi_socket_t | m_fd |
KviMutex * | m_pMutex |
QObject * | m_pParent |
![]() | |
KviPointerList< KviThreadEvent > * | m_pLocalEventQueue |
KviMutex * | m_pLocalEventQueueMutex |
Friends | |
class | DccVoiceWindow |
Additional Inherited Members | |
![]() | |
static void | msleep (unsigned long msec) |
static void | sleep (unsigned long sec) |
static void | usleep (unsigned long usec) |
DccVoiceThread::DccVoiceThread | ( | KviWindow * | wnd, |
kvi_socket_t | fd, | ||
KviDccVoiceThreadOptions * | opt ) |
DccVoiceThread::~DccVoiceThread | ( | ) |
References m_pInfoMutex, and m_pOpt.
|
protected |
References __tr2qs_ctx, closeSoundcard(), m_bSoundcardChecked, m_pOpt, m_soundFd, openSoundcard(), and DccThread::postMessageEvent().
Referenced by openSoundcardWithDuplexOption().
|
protected |
References m_soundFd, and m_soundFdMode.
Referenced by checkSoundcard(), openSoundcard(), run(), stopPlaying(), and stopRecording().
|
protected |
References __tr2qs_ctx, closeSoundcard(), KviCString::Format, KVI_FORMAT, KVI_NUM_CHANNELS, KVI_SNDCTL_FRAG_SIZE, m_pOpt, m_soundFd, m_soundFdMode, DccThread::postMessageEvent(), and KviCString::ptr().
Referenced by checkSoundcard(), and openSoundcardWithDuplexOption().
|
protected |
References openSoundcardWithDuplexOption().
Referenced by startRecording().
|
protected |
References openSoundcardWithDuplexOption().
Referenced by startPlaying().
|
protected |
References __tr2qs_ctx, checkSoundcard(), m_bSoundcardChecked, m_pOpt, m_soundFd, m_soundFdMode, openSoundcard(), and DccThread::postMessageEvent().
Referenced by openSoundcardForReading(), and openSoundcardForWriting().
|
protected |
References DccThread::handleInvalidSocketRead(), kvi_select(), kvi_socket_recv(), kvi_socket_send(), DccThread::m_fd, m_inFrameBuffer, m_inSignalBuffer, m_outFrameBuffer, and m_pOpt.
Referenced by run().
|
protectedvirtual |
COMPILE_DISABLE_DCC_VOICE
Reimplemented from KviThread.
References closeSoundcard(), KviSensitiveThread::dequeueEvent(), e, KVI_DCC_THREAD_EVENT_ACTION, KVI_INVALID_SOCKET, kvi_socket_close, KVI_THREAD_EVENT_TERMINATE, m_bRecordingRequestPending, DccThread::m_fd, m_iInputBufferSize, m_inSignalBuffer, m_iOutputBufferSize, m_outFrameBuffer, m_pInfoMutex, m_pOpt, readWriteStep(), soundStep(), startRecording(), and stopRecording().
|
protected |
References KVI_FRAGMENT_SIZE_IN_BYTES, m_bPlaying, m_bRecording, m_iLastSignalBufferSize, m_iLastSignalBufferTime, m_inSignalBuffer, m_outFrameBuffer, m_outSignalBuffer, m_pOpt, m_soundFd, startPlaying(), and stopPlaying().
Referenced by run().
|
protected |
References e, KVI_DCC_THREAD_EVENT_ACTION, KVI_DCC_VOICE_THREAD_ACTION_START_PLAYING, m_bPlaying, openSoundcardForWriting(), DccThread::parent(), and KviThread::postEvent().
Referenced by soundStep().
|
protected |
References e, KVI_DCC_THREAD_EVENT_ACTION, KVI_DCC_VOICE_THREAD_ACTION_START_RECORDING, m_bRecording, m_bRecordingRequestPending, openSoundcardForReading(), DccThread::parent(), and KviThread::postEvent().
Referenced by run().
|
protected |
References closeSoundcard(), e, KVI_DCC_THREAD_EVENT_ACTION, KVI_DCC_VOICE_THREAD_ACTION_STOP_PLAYING, m_bPlaying, m_bRecording, DccThread::parent(), and KviThread::postEvent().
Referenced by soundStep().
|
protected |
References closeSoundcard(), e, KVI_DCC_THREAD_EVENT_ACTION, KVI_DCC_VOICE_THREAD_ACTION_STOP_RECORDING, m_bPlaying, m_bRecording, m_bRecordingRequestPending, DccThread::parent(), and KviThread::postEvent().
Referenced by run().
|
friend |
References DccVoiceWindow.
Referenced by DccVoiceWindow.
|
protected |
Referenced by DccVoiceThread(), soundStep(), startPlaying(), stopPlaying(), and stopRecording().
|
protected |
Referenced by DccVoiceThread(), soundStep(), startRecording(), stopPlaying(), and stopRecording().
|
protected |
Referenced by DccVoiceThread(), run(), startRecording(), and stopRecording().
|
protected |
Referenced by checkSoundcard(), DccVoiceThread(), and openSoundcardWithDuplexOption().
|
protected |
Referenced by run().
|
protected |
Referenced by soundStep().
|
protected |
Referenced by soundStep().
|
protected |
Referenced by readWriteStep().
|
protected |
Referenced by readWriteStep(), run(), and soundStep().
|
protected |
Referenced by run().
|
protected |
Referenced by readWriteStep(), run(), and soundStep().
|
protected |
Referenced by soundStep().
|
protected |
Referenced by DccVoiceThread(), run(), and ~DccVoiceThread().
|
protected |
Referenced by checkSoundcard(), DccVoiceThread(), openSoundcard(), openSoundcardWithDuplexOption(), readWriteStep(), run(), soundStep(), and ~DccVoiceThread().
|
protected |
Referenced by checkSoundcard(), closeSoundcard(), DccVoiceThread(), openSoundcard(), openSoundcardWithDuplexOption(), and soundStep().
|
protected |
Referenced by closeSoundcard(), DccVoiceThread(), openSoundcard(), and openSoundcardWithDuplexOption().