diff --git a/main/dsp.c b/main/dsp.c index bb41519..5322c5d 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -1201,6 +1201,7 @@ int ast_dsp_call_progress(struct ast_dsp *dsp, struct ast_frame *inf) ast_log(LOG_WARNING, "Can't check call progress of non-voice frames\n"); return 0; } +/* BUGBUG need to make work with any slin rate (even if the slin format changes) */ if (!ast_format_cache_is_slinear(inf->subclass.format)) { ast_log(LOG_WARNING, "Can only check call progress in signed-linear frames\n"); return 0; @@ -1427,6 +1428,7 @@ static int ast_dsp_silence_noise_with_energy(struct ast_dsp *dsp, struct ast_fra return 0; } +/* BUGBUG need to make work with any slin rate (even if the slin format changes) */ if (ast_format_cache_is_slinear(f->subclass.format)) { s = f->data.ptr; len = f->datalen/2; @@ -1493,6 +1495,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp, odata = af->data.ptr; len = af->datalen; /* Make sure we have short data */ +/* BUGBUG need to make work with any slin rate (even if the slin format changes) */ if (ast_format_cache_is_slinear(af->subclass.format)) { shortdata = af->data.ptr; len = af->datalen / 2;