From 7228c1c45a72292056b3eaa92a12128d92482a96 Mon Sep 17 00:00:00 2001 From: Jose Damico Date: Sat, 21 Oct 2023 12:00:07 -0300 Subject: [PATCH] wip --- src/main/java/org/jdamico/javax25/App.java | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/jdamico/javax25/App.java b/src/main/java/org/jdamico/javax25/App.java index 8e52923..c3c2f96 100644 --- a/src/main/java/org/jdamico/javax25/App.java +++ b/src/main/java/org/jdamico/javax25/App.java @@ -14,9 +14,9 @@ */ public class App { - public static void main( String[] args ) - { - Soundcard.enumerate(); + public static void main( String[] args ) + { + Soundcard.enumerate(); Properties p = System.getProperties(); @@ -32,7 +32,7 @@ public static void main( String[] args ) } catch (Exception e) { System.out.println("Exception trying to create an Afsk1200 object: "+e.getMessage()); } - + /*** preparing to generate or capture audio packets ***/ @@ -57,10 +57,12 @@ public static void main( String[] args ) /*** listen for incoming packets ***/ if (input != null) { - System.out.printf("Listening for packets\n"); - //sc.openSoundInput(input); - sc.receive(); + System.out.printf("Listening for packets\n"); + //sc.openSoundInput(input); + sc.receive(); + }else { + System.err.println("Input is null!"); } - - } + + } }