Skip to content
Snippets Groups Projects
Commit 71211e5a authored by Yun Liu's avatar Yun Liu
Browse files

audio tmp test

parent 8a9b264d
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,14 @@ AudioStream::createStream( pa_context* c )
//pa_cvolume_set(&cv, sample_spec.channels , PA_VOLUME_NORM) , NULL );
}
else if( _streamType == CAPTURE_STREAM ){
pa_stream_connect_record( s , NULL , NULL , PA_STREAM_START_CORKED );
attributes->maxlength = 66500;//-1;
attributes->tlength = -1; //44100;
attributes->minreq = 2000;
attributes->prebuf = 10000;
attributes->fragsize = -1;
pa_stream_connect_record( s , NULL , attributes /*NULL*/ , PA_STREAM_START_CORKED );
}
else if( _streamType == UPLOAD_STREAM ){
pa_stream_connect_upload( s , 1024 );
......
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