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:
1 parent
486d6b3780
commit
a756ba8fd9
6 files changed
+37
-10
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user