libsample: Add another function for converting between int16_t and sample_t

Now we have speech level and 1mW (0 dBm) conversion functions
This commit is contained in:
Andreas Eversberg
2022-09-25 19:31:31 +02:00
parent 486d6b3780
commit a756ba8fd9
6 changed files with 37 additions and 10 deletions

View File

@@ -296,7 +296,7 @@ next_sample:
call->spl_time = spl_time;
/* convert to samples, apply gain and send toward fixed network */
int16_to_samples(spl, chunk, 160);
int16_to_samples_speech(spl, chunk, 160);
for (i = 0; i < 160; i++)
spl[i] *= audio_gain;
call_up_audio(call->callref, spl, 160);