mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
P25 audio decoder integration.
Auto-discovers the jmbe ( https://github.com/DSheirer/jmbe ) library at startup and provides decode P25 Phase 1 audio
This commit is contained in:
@@ -29,8 +29,11 @@ import java.io.IOException;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Iterator;
|
||||
import java.util.ServiceLoader;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.sound.sampled.spi.FormatConversionProvider;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JMenu;
|
||||
import javax.swing.JMenuBar;
|
||||
@@ -97,6 +100,9 @@ public class SDRTrunk
|
||||
*/
|
||||
mResourceManager = new ResourceManager();
|
||||
|
||||
/* Log any available audio converter plugins */
|
||||
logAvailableAudioPlugins();
|
||||
|
||||
//Initialize the GUI
|
||||
initGUI();
|
||||
|
||||
@@ -373,4 +379,17 @@ public class SDRTrunk
|
||||
|
||||
return homePath;
|
||||
}
|
||||
|
||||
private void logAvailableAudioPlugins()
|
||||
{
|
||||
ServiceLoader<FormatConversionProvider> loader =
|
||||
ServiceLoader.load( FormatConversionProvider.class );
|
||||
|
||||
Iterator<FormatConversionProvider> it = loader.iterator();
|
||||
|
||||
while( it.hasNext() )
|
||||
{
|
||||
mLog.info( "Available Audio Converter: " + it.next().getClass() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user