update rtsp server and libraries, fix choppy audio in libcallback, fix busybox for old fw versions including rtsp_fw

This commit is contained in:
Alfonso Gamboa
2022-05-14 05:52:45 -07:00
parent 2336a698fb
commit d863ee689d
10 changed files with 8 additions and 7 deletions

View File

@@ -51,8 +51,8 @@ static uint32_t audio_pcm_capture(struct frames_st *frames) {
.channels = 1,
.rate = 16000,
.format = PCM_FORMAT_S16_LE,
.period_size = 1024,
.period_count = 4,
.period_size = 128,
.period_count = 8,
.start_threshold = 320,
.silence_threshold = 0,
.silence_size = 0,
@@ -80,11 +80,13 @@ static uint32_t audio_pcm_capture(struct frames_st *frames) {
uint32_t local_sdk_audio_set_pcm_frame_callback(int ch, void *callback) {
fprintf(stderr, "local_sdk_audio_set_pcm_frame_callback streamChId=%d, callback=0x%x\n", ch, callback);
if(ch == 0) {
static int ch_count = 0;
if( (ch == 0) && ch_count == 0) {
audio_pcm_cb = callback;
fprintf(stderr,"enc func injection save audio_pcm_cb=0x%x\n", audio_pcm_cb);
callback = audio_pcm_capture;
}
ch_count=ch_count+1
return real_local_sdk_audio_set_pcm_frame_callback(ch, callback);
}

Binary file not shown.