mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 00:57:31 -05:00
Normalize audio before recording (#1213)
#1213 Normalize audio before recording
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
package io.github.dsheirer.audio.convert;
|
||||
|
||||
import io.github.dsheirer.audio.AudioUtils;
|
||||
import io.github.dsheirer.dsp.filter.resample.RealResampler;
|
||||
import io.github.dsheirer.sample.ConversionUtils;
|
||||
import net.sourceforge.lame.lowlevel.LameEncoder;
|
||||
@@ -73,6 +74,7 @@ public class MP3AudioConverter implements IAudioConverter
|
||||
public List<byte[]> convert(List<float[]> audioPackets)
|
||||
{
|
||||
List<byte[]> converted = new ArrayList<>();
|
||||
audioPackets = AudioUtils.normalize(audioPackets);
|
||||
|
||||
if(mResampler != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user