mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Initial commit of redesigned internal processing and audio management.
Note: Several of the decoders are currently non-functioning in this commit. If you want the latest functioning codebase, please checkout the commit prior to this one. All decoders will eventually be updated with this new architecture. Currently broken: - Logging and recording - Aux decoders (Fleetsync/MDC/LoJack/Tait) - LTR/Passport decoders Changes in this commit: - Module architecture for decoders and components with central provisioning by the DecoderFactory - Transition from Complex sample stream processing to float buffer processing for improved memory management - Redesigned filter structures - to support buffers and streams - Resolved several memory leak issues - Universal sharing of the thread pool manager - Added centralized audio management with call/user prioritization and new gui with mute/volume controls - Embedded audio metadata for eventual streaming support - Redesigned ProcessingChain to support independent re-use - Added new TrafficChannelManager to handle traffic channel allocations - Traffic Channel pool size and Call timeout available in P25 and MPT1327 configs - Redesigned channel and decoder gui components
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
package module.decode.p25.message.pdu.confirmed;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
public class PDUConfirmedMessageFactory
|
||||
{
|
||||
public final static Logger mLog =
|
||||
LoggerFactory.getLogger( PDUConfirmedMessage.class );
|
||||
|
||||
public static PDUConfirmedMessage getMessage( PDUConfirmedMessage message )
|
||||
{
|
||||
switch( message.getServiceAccessPoint() )
|
||||
{
|
||||
case ADDRESS_RESOLUTION_PROTOCOL:
|
||||
break;
|
||||
case CHANNEL_REASSIGNMENT:
|
||||
break;
|
||||
case CIRCUIT_DATA:
|
||||
break;
|
||||
case CIRCUIT_DATA_CONTROL:
|
||||
break;
|
||||
case ENCRYPTED_KEY_MANAGEMENT_MESSAGE:
|
||||
break;
|
||||
case ENCRYPTED_TRUNKING_CONTROL:
|
||||
break;
|
||||
case ENCRYPTED_USER_DATA:
|
||||
break;
|
||||
case EXTENDED_ADDRESS:
|
||||
break;
|
||||
case MR_CONFIGURATION:
|
||||
break;
|
||||
case MR_LOOPBACK:
|
||||
break;
|
||||
case MR_OUT_OF_SERVICE:
|
||||
break;
|
||||
case MR_PAGING:
|
||||
break;
|
||||
case MR_STATISTICS:
|
||||
break;
|
||||
case PACKET_DATA:
|
||||
break;
|
||||
case REGISTRATION_AND_AUTHORIZATION:
|
||||
break;
|
||||
/* Deliberate fall-through */
|
||||
case SNDCP_PACKET_DATA_CONTROL:
|
||||
case UNENCRYPTED_USER_DATA:
|
||||
switch( message.getPDUType() )
|
||||
{
|
||||
case SN_ACTIVATE_TDS_CONTEXT_ACCEPT:
|
||||
return new SNDCPActivateTDSContextAccept( message );
|
||||
case SN_ACTIVATE_TDS_CONTEXT_REJECT:
|
||||
return new SNDCPActivateTDSContextReject( message );
|
||||
case SN_ACTIVATE_TDS_CONTEXT_REQUEST:
|
||||
return new SNDCPActivateTDSContextRequest( message );
|
||||
case SN_DEACTIVATE_TDS_CONTEXT_ACCEPT:
|
||||
case SN_DEACTIVATE_TDS_CONTEXT_REQUEST:
|
||||
return new SNDCPDeactivateTDSContext( message );
|
||||
case SN_RF_CONFIRMED_DATA:
|
||||
return new SNDCPUserData( message );
|
||||
case SN_RF_UNCONFIRMED_DATA:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case SYSTEM_CONFIGURATION:
|
||||
break;
|
||||
case UNENCRYPTED_KEY_MANAGEMENT_MESSAGE:
|
||||
break;
|
||||
case UNENCRYPTED_TRUNKING_CONTROL:
|
||||
break;
|
||||
default:
|
||||
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user