patch 1d83f7b from joss to VOIP plugin

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4996 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-02-26 20:31:16 +00:00
parent 1ee48b68a6
commit e9b53f0a12
2 changed files with 5 additions and 8 deletions

View File

@ -19,7 +19,6 @@ AudioPopupChatDialog::AudioPopupChatDialog(QWidget *parent)
icon.addPixmap(QPixmap(":/images/self_undeafened.svg"),QIcon::Disabled,QIcon::On) ;
icon.addPixmap(QPixmap(":/images/self_undeafened.svg"),QIcon::Active,QIcon::On) ;
icon.addPixmap(QPixmap(":/images/self_undeafened.svg"),QIcon::Selected,QIcon::On) ;
//icon.addPixmap(QPixmap(":/images/deafened_self.svg")) ;
audioListenToggleButton->setIcon(icon) ;
audioListenToggleButton->setIconSize(QSize(22,22)) ;
@ -37,7 +36,6 @@ AudioPopupChatDialog::AudioPopupChatDialog(QWidget *parent)
icon2.addPixmap(QPixmap(":/images/talking_off.svg"),QIcon::Disabled,QIcon::On) ;
icon2.addPixmap(QPixmap(":/images/talking_off.svg"),QIcon::Active,QIcon::On) ;
icon2.addPixmap(QPixmap(":/images/talking_off.svg"),QIcon::Selected,QIcon::On) ;
//icon2.addPixmap(QPixmap(":/images/muted_self.svg")) ;
audioMuteCaptureToggleButton->setIcon(icon2) ;
audioMuteCaptureToggleButton->setIconSize(QSize(22,22)) ;
@ -159,8 +157,7 @@ void AudioPopupChatDialog::sendAudioData() {
QByteArray qbarray = inputProcessor->getNetworkPacket();
RsVoipDataChunk chunk;
chunk.size = qbarray.size();
chunk.data = malloc(qbarray.size());
memcpy(chunk.data,qbarray.constData(),qbarray.size()) ;
chunk.data = (void*)qbarray.constData();
rsVoip->sendVoipData(peerId,chunk);
}
}

View File

@ -8,7 +8,7 @@
void PluginGUIHandler::ReceivedInvitation(const QString& peer_id)
{
std::cerr << "****** Plugin GUI handler: received data!" << std::endl;
std::cerr << "****** Plugin GUI handler: received Invitation!" << std::endl;
}
void PluginGUIHandler::ReceivedVoipHangUp(const QString& peer_id)
@ -23,7 +23,7 @@ void PluginGUIHandler::ReceivedVoipAccept(const QString& peer_id)
void PluginGUIHandler::ReceivedVoipData(const QString& peer_id)
{
std::cerr << "****** Plugin GUI handler: received invitation!" << std::endl;
std::cerr << "****** Plugin GUI handler: received VoipData!" << std::endl;
std::vector<RsVoipDataChunk> chunks ;