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:
dennis.sheirer
2015-03-29 13:25:36 +00:00
parent 52f2e3bdca
commit 023553c3bf
41 changed files with 1391 additions and 470 deletions

View File

@@ -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 );
}
}
}