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:
@@ -17,7 +17,6 @@
|
||||
******************************************************************************/
|
||||
package bits;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.BitSet;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
@@ -110,6 +109,21 @@ public class BinaryMessage extends BitSet
|
||||
this.mPointer = size - 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a mew binary message containing the bits from (inclusive) to
|
||||
* end (exclusive).
|
||||
*
|
||||
* @param start
|
||||
* @param end
|
||||
* @return
|
||||
*/
|
||||
public BinaryMessage getSubMessage( int start, int end )
|
||||
{
|
||||
BitSet subset = this.get( start, end );
|
||||
|
||||
return new BinaryMessage( subset, end - start );
|
||||
}
|
||||
|
||||
public CRC getCRC()
|
||||
{
|
||||
return mCRC;
|
||||
@@ -386,8 +400,6 @@ public class BinaryMessage extends BitSet
|
||||
}
|
||||
}
|
||||
|
||||
mLog.debug( "Value is:" + value );
|
||||
|
||||
return (byte)( value & 0xFF );
|
||||
}
|
||||
|
||||
@@ -613,6 +625,10 @@ public class BinaryMessage extends BitSet
|
||||
{
|
||||
set( offset + x );
|
||||
}
|
||||
else
|
||||
{
|
||||
clear( offset + x );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user