mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 00:57:31 -05:00
Changed to slf4j logging framework
Enhanced error handling/logging in RTL2832 eeprom device descriptor read method for troubleshooting issue present in some R820T tuners.
This commit is contained in:
@@ -24,7 +24,9 @@ import javax.sound.sampled.AudioSystem;
|
||||
import javax.sound.sampled.LineUnavailableException;
|
||||
import javax.sound.sampled.SourceDataLine;
|
||||
|
||||
import log.Log;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import sample.Listener;
|
||||
import buffer.FloatSampleBufferAssembler;
|
||||
|
||||
@@ -32,6 +34,8 @@ public class AudioOutput implements Listener<Float>,
|
||||
SquelchListener,
|
||||
AudioTypeListener
|
||||
{
|
||||
private final static Logger mLog =
|
||||
LoggerFactory.getLogger( AudioOutput.class );
|
||||
private static final int sAUDIO_BLOCK_SIZE = 24000;
|
||||
|
||||
private static final AudioFormat sAUDIO_FORMAT =
|
||||
@@ -60,8 +64,8 @@ public class AudioOutput implements Listener<Float>,
|
||||
}
|
||||
catch ( LineUnavailableException e )
|
||||
{
|
||||
Log.warning( "AudioOutput - couldn't open audio speakers "
|
||||
+ "for playback:" + e.getLocalizedMessage() );
|
||||
mLog.error( "AudioOutput - couldn't open audio speakers "
|
||||
+ "for playback", e );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user