Skip to content
Snippets Groups Projects
Commit a2aae541 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Tiny modifications

parent b4da5192
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ AudioLayer::fillHWBuffer( void)
unsigned char* data;
int pcmreturn, l1, l2;
short s1, s2;
int periodSize = 256 ;
int periodSize = 128 ;
int frames = periodSize >> 2 ;
_debug("frames = %d\n");
......@@ -570,9 +570,9 @@ AudioLayer::getSoundCardsInfo( int stream )
AudioLayer::closeCaptureStream( void)
{
if(_CaptureHandle){
snd_pcm_drop( _CaptureHandle );
snd_pcm_close( _CaptureHandle );
_CaptureHandle = 0;
snd_pcm_drop( _CaptureHandle );
snd_pcm_close( _CaptureHandle );
_CaptureHandle = 0;
}
}
......@@ -580,9 +580,9 @@ AudioLayer::closeCaptureStream( void)
AudioLayer::closePlaybackStream( void)
{
if(_PlaybackHandle){
snd_pcm_drop( _PlaybackHandle );
snd_pcm_close( _PlaybackHandle );
_PlaybackHandle = 0;
snd_pcm_drop( _PlaybackHandle );
snd_pcm_close( _PlaybackHandle );
_PlaybackHandle = 0;
}
}
......
......@@ -706,6 +706,9 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call)
Manager::instance().peerRingingCall(call->getCallId());
break;
case IAX_IE_MSGCOUNT:
// _debug("messssssssssssssssssssssssssssssssssssssssssssssssages\n");
break;
case IAX_EVENT_PONG:
break;
......@@ -928,6 +931,10 @@ IAXVoIPLink::iaxHandlePrecallEvent(iax_event* event)
break;
case IAX_IE_MSGCOUNT:
//_debug("messssssssssssssssssssssssssssssssssssssssssssssssages\n");
break;
default:
_debug("Unknown event type (in precall): %d\n", event->etype);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment