mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-19 03:57:26 -05:00
Network tuner support - rtl_tcp (#2471)
* Add network tuner dialog * wip: network tuner configs * wip stash * working tcp solution * fix copyright headers * fix: resolve rebase conflicts from jRTL library changeover - Drop redundant JFrequencyControl digit-sizing fix now that upstream fixes the same issue via setColumns(1) - Mark SUPPORTED_NETWORK_TUNERS final to match the new EnumSet style - Replace removed SampleRate.getClosest() with a local nearest-match helper in NetworkTunerEditor * Add mise config
This commit is contained in:
@@ -57,10 +57,11 @@ public class ByteNativeBuffer extends AbstractNativeBuffer
|
||||
public ByteNativeBuffer(byte[] samples, long timestamp, float averageDc, float samplesPerMillisecond)
|
||||
{
|
||||
super(timestamp, samplesPerMillisecond);
|
||||
//Ensure we're an even multiple of the fragment size. Typically, this will be 64k or 128k
|
||||
if(samples.length % FRAGMENT_SIZE != 0)
|
||||
//Ensure we're an even multiple of the fragment size in bytes (2 bytes per I/Q sample). Typically, this
|
||||
//will be 64k or 128k
|
||||
if(samples.length % (FRAGMENT_SIZE * 2) != 0)
|
||||
{
|
||||
throw new IllegalArgumentException("Samples byte[] length [" + samples.length + "] must be an even multiple of " + FRAGMENT_SIZE);
|
||||
throw new IllegalArgumentException("Samples byte[] length [" + samples.length + "] must be an even multiple of " + (FRAGMENT_SIZE * 2));
|
||||
}
|
||||
|
||||
mSamples = samples;
|
||||
|
||||
Reference in New Issue
Block a user