vrplayer: work on removing server side timing

This commit is contained in:
Jay Sorg 2013-11-08 11:20:38 -08:00
parent e8c2f328fb
commit a836aa55cb
3 changed files with 7 additions and 2 deletions

View File

@ -155,6 +155,7 @@ void DecoderThread::audioTimerCallback()
return;
}
printf("audio2\n");
pkt = audioQueue.dequeue();
delayInMs = (int) ((float) pkt->delay_in_us / 1000.0);
send_audio_pkt(channel, 101, pkt->av_pkt);

View File

@ -128,25 +128,27 @@ int OurInterface::sendMetadataFile()
int OurInterface::sendVideoFormat()
{
#if 0
if (xrdpvr_set_video_format(channel, stream_id))
{
emit on_ErrorMsg("I/O Error",
"Error sending video format to remote client");
return -1;
}
#endif
return 0;
}
int OurInterface::sendAudioFormat()
{
#if 0
if (xrdpvr_set_audio_format(channel, stream_id))
{
emit on_ErrorMsg("I/O Error",
"Error sending audio format to remote client");
return -1;
}
#endif
return 0;
}

View File

@ -54,6 +54,7 @@ void PlayAudio::play()
label1:
printf("audio\n");
if (audioQueue->isEmpty())
{
qDebug() << "PlayAudio::play: GOT EMPTY";
@ -61,6 +62,7 @@ label1:
continue;
}
printf("")
pkt = audioQueue->dequeue();
sendMutex->lock();
send_audio_pkt(channel, stream_id, pkt->av_pkt);