-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
P25 Phase 2 Decoder implementation.
- Loading branch information
Showing
561 changed files
with
35,560 additions
and
6,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/main/java/io/github/dsheirer/audio/codec/mbe/AmbeAudioModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* | ||
* * ****************************************************************************** | ||
* * Copyright (C) 2014-2019 Dennis Sheirer | ||
* * | ||
* * This program is free software: you can redistribute it and/or modify | ||
* * it under the terms of the GNU General Public License as published by | ||
* * the Free Software Foundation, either version 3 of the License, or | ||
* * (at your option) any later version. | ||
* * | ||
* * This program is distributed in the hope that it will be useful, | ||
* * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* * GNU General Public License for more details. | ||
* * | ||
* * You should have received a copy of the GNU General Public License | ||
* * along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* * ***************************************************************************** | ||
* | ||
* | ||
*/ | ||
|
||
package io.github.dsheirer.audio.codec.mbe; | ||
|
||
import io.github.dsheirer.preference.UserPreferences; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public abstract class AmbeAudioModule extends JmbeAudioModule | ||
{ | ||
private static final Logger mLog = LoggerFactory.getLogger(AmbeAudioModule.class); | ||
private static final String AMBE_CODEC = "AMBE 3600 x 2450"; | ||
private static boolean sLibraryStatusLogged = false; | ||
|
||
public AmbeAudioModule(UserPreferences userPreferences) | ||
{ | ||
super(userPreferences); | ||
|
||
if(!sLibraryStatusLogged) | ||
{ | ||
if(getAudioCodec() != null) | ||
{ | ||
mLog.info("AMBE CODEC successfully loaded - P25-2/DMR/NXDN audio will be available"); | ||
} | ||
else | ||
{ | ||
mLog.warn("AMBE CODEC not loaded - P25-2/DMR/NXDN audio will NOT be available"); | ||
} | ||
|
||
sLibraryStatusLogged = true; | ||
} | ||
} | ||
|
||
@Override | ||
protected String getCodecName() | ||
{ | ||
return AMBE_CODEC; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/main/java/io/github/dsheirer/audio/codec/mbe/IEncryptionSyncParameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* | ||
* * ****************************************************************************** | ||
* * Copyright (C) 2014-2019 Dennis Sheirer | ||
* * | ||
* * This program is free software: you can redistribute it and/or modify | ||
* * it under the terms of the GNU General Public License as published by | ||
* * the Free Software Foundation, either version 3 of the License, or | ||
* * (at your option) any later version. | ||
* * | ||
* * This program is distributed in the hope that it will be useful, | ||
* * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* * GNU General Public License for more details. | ||
* * | ||
* * You should have received a copy of the GNU General Public License | ||
* * along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* * ***************************************************************************** | ||
* | ||
* | ||
*/ | ||
|
||
package io.github.dsheirer.audio.codec.mbe; | ||
|
||
import io.github.dsheirer.identifier.encryption.EncryptionKeyIdentifier; | ||
|
||
/** | ||
* P25 Encryption Parameters | ||
*/ | ||
public interface IEncryptionSyncParameters | ||
{ | ||
/** | ||
* Encryption key identifier | ||
*/ | ||
EncryptionKeyIdentifier getEncryptionKey(); | ||
|
||
/** | ||
* Message Indicator | ||
* @return key generator fill values | ||
*/ | ||
String getMessageIndicator(); | ||
} |
59 changes: 59 additions & 0 deletions
59
src/main/java/io/github/dsheirer/audio/codec/mbe/ImbeAudioModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* | ||
* * ****************************************************************************** | ||
* * Copyright (C) 2014-2019 Dennis Sheirer | ||
* * | ||
* * This program is free software: you can redistribute it and/or modify | ||
* * it under the terms of the GNU General Public License as published by | ||
* * the Free Software Foundation, either version 3 of the License, or | ||
* * (at your option) any later version. | ||
* * | ||
* * This program is distributed in the hope that it will be useful, | ||
* * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* * GNU General Public License for more details. | ||
* * | ||
* * You should have received a copy of the GNU General Public License | ||
* * along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* * ***************************************************************************** | ||
* | ||
* | ||
*/ | ||
|
||
package io.github.dsheirer.audio.codec.mbe; | ||
|
||
import io.github.dsheirer.preference.UserPreferences; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public abstract class ImbeAudioModule extends JmbeAudioModule | ||
{ | ||
private static final Logger mLog = LoggerFactory.getLogger(ImbeAudioModule.class); | ||
private static final String IMBE_CODEC = "IMBE"; | ||
private static boolean sLibraryStatusLogged = false; | ||
|
||
public ImbeAudioModule(UserPreferences userPreferences) | ||
{ | ||
super(userPreferences); | ||
|
||
if(!sLibraryStatusLogged) | ||
{ | ||
if(getAudioCodec() != null) | ||
{ | ||
mLog.info("JMBE audio conversion library IMBE CODEC successfully loaded - P25-1 audio will be available"); | ||
} | ||
else | ||
{ | ||
mLog.warn("JMBE audio conversion library, IMBE CODEC not loaded - P25-1 audio will NOT be available"); | ||
} | ||
|
||
sLibraryStatusLogged = true; | ||
} | ||
} | ||
|
||
@Override | ||
protected String getCodecName() | ||
{ | ||
return IMBE_CODEC; | ||
} | ||
} |
Oops, something went wrong.