Skip to content

Commit 9d5e874

Browse files
committed
Revert "DSheirer#1903 P25 Phase 2 audio - resolves 2-second chopped audio segments (DSheirer#1904)"
See if this fixes the no audio problem I've reported in DSheirer#1915 This reverts commit 2f0419f.
1 parent 446fe9c commit 9d5e874

File tree

7 files changed

+48
-49
lines changed

7 files changed

+48
-49
lines changed

src/main/java/io/github/dsheirer/module/decode/p25/phase1/message/tsbk/harris/isp/UnknownHarrisISPMessage.java

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
/*
2-
* *****************************************************************************
3-
* Copyright (C) 2014-2024 Dennis Sheirer
1+
/*******************************************************************************
2+
* sdr-trunk
3+
* Copyright (C) 2014-2019 Dennis Sheirer
44
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
5+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
6+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any
7+
* later version.
98
*
10-
* This program is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU General Public License for more details.
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1411
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program. If not, see <http://www.gnu.org/licenses/>
17-
* ****************************************************************************
18-
*/
12+
* You should have received a copy of the GNU General Public License along with this program.
13+
* If not, see <http://www.gnu.org/licenses/>
14+
*
15+
******************************************************************************/
1916

2017
package io.github.dsheirer.module.decode.p25.phase1.message.tsbk.harris.isp;
2118

2219
import io.github.dsheirer.bits.CorrectedBinaryMessage;
2320
import io.github.dsheirer.identifier.Identifier;
2421
import io.github.dsheirer.module.decode.p25.phase1.P25P1DataUnitID;
2522
import io.github.dsheirer.module.decode.p25.phase1.message.tsbk.OSPMessage;
23+
2624
import java.util.Collections;
2725
import java.util.List;
2826

@@ -43,7 +41,7 @@ public String toString()
4341
{
4442
StringBuilder sb = new StringBuilder();
4543
sb.append(getMessageStub());
46-
sb.append(" HARRIS **UNRECOGNIZED ISP OPCODE: ").append(getOpcodeNumber());
44+
sb.append(" HARRIS **UNRECOGNIZED ISP OPCODE**");
4745
sb.append(" MSG:").append(getMessage().toHexString());
4846
return sb.toString();
4947
}

src/main/java/io/github/dsheirer/module/decode/p25/phase1/message/tsbk/harris/osp/UnknownHarrisOSPMessage.java

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
/*
2-
* *****************************************************************************
3-
* Copyright (C) 2014-2024 Dennis Sheirer
1+
/*******************************************************************************
2+
* sdr-trunk
3+
* Copyright (C) 2014-2019 Dennis Sheirer
44
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
5+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
6+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any
7+
* later version.
98
*
10-
* This program is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU General Public License for more details.
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1411
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program. If not, see <http://www.gnu.org/licenses/>
17-
* ****************************************************************************
18-
*/
12+
* You should have received a copy of the GNU General Public License along with this program.
13+
* If not, see <http://www.gnu.org/licenses/>
14+
*
15+
******************************************************************************/
1916

2017
package io.github.dsheirer.module.decode.p25.phase1.message.tsbk.harris.osp;
2118

2219
import io.github.dsheirer.bits.CorrectedBinaryMessage;
2320
import io.github.dsheirer.identifier.Identifier;
2421
import io.github.dsheirer.module.decode.p25.phase1.P25P1DataUnitID;
2522
import io.github.dsheirer.module.decode.p25.phase1.message.tsbk.OSPMessage;
23+
2624
import java.util.Collections;
2725
import java.util.List;
2826

@@ -43,7 +41,7 @@ public String toString()
4341
{
4442
StringBuilder sb = new StringBuilder();
4543
sb.append(getMessageStub());
46-
sb.append(" HARRIS **UNRECOGNIZED OSP OPCODE:").append(getOpcodeNumber());
44+
sb.append(" HARRIS **UNRECOGNIZED OSP OPCODE**");
4745
sb.append(" MSG:").append(getMessage().toHexString());
4846
return sb.toString();
4947
}

src/main/java/io/github/dsheirer/module/decode/p25/phase1/message/tsbk/motorola/isp/UnknownMotorolaISPMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public String toString()
4343
{
4444
StringBuilder sb = new StringBuilder();
4545
sb.append(getMessageStub());
46-
sb.append(" MOTOROLA **UNRECOGNIZED ISP OPCODE: ").append(getOpcodeNumber());
46+
sb.append(" MOTOROLA **UNRECOGNIZED ISP OPCODE**");
4747
sb.append(" MSG:").append(getMessage().toHexString());
4848
return sb.toString();
4949
}

src/main/java/io/github/dsheirer/module/decode/p25/phase1/message/tsbk/motorola/osp/UnknownMotorolaOSPMessage.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
2-
* *****************************************************************************
3-
* Copyright (C) 2014-2024 Dennis Sheirer
2+
* ******************************************************************************
3+
* sdrtrunk
4+
* Copyright (C) 2014-2019 Dennis Sheirer
45
*
56
* This program is free software: you can redistribute it and/or modify
67
* it under the terms of the GNU General Public License as published by
@@ -14,7 +15,7 @@
1415
*
1516
* You should have received a copy of the GNU General Public License
1617
* along with this program. If not, see <http://www.gnu.org/licenses/>
17-
* ****************************************************************************
18+
* *****************************************************************************
1819
*/
1920

2021
package io.github.dsheirer.module.decode.p25.phase1.message.tsbk.motorola.osp;
@@ -23,6 +24,7 @@
2324
import io.github.dsheirer.identifier.Identifier;
2425
import io.github.dsheirer.module.decode.p25.phase1.P25P1DataUnitID;
2526
import io.github.dsheirer.module.decode.p25.phase1.message.tsbk.OSPMessage;
27+
2628
import java.util.Collections;
2729
import java.util.List;
2830

@@ -43,7 +45,7 @@ public String toString()
4345
{
4446
StringBuilder sb = new StringBuilder();
4547
sb.append(getMessageStub());
46-
sb.append(" MOTOROLA **UNRECOGNIZED OSP OPCODE: ").append(getOpcodeNumber());
48+
sb.append(" MOTOROLA **UNRECOGNIZED OSP OPCODE**");
4749
sb.append(" MSG:").append(getMessage().toHexString());
4850
return sb.toString();
4951
}

src/main/java/io/github/dsheirer/module/decode/p25/phase1/message/tsbk/standard/isp/UnknownISPMessage.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
2-
* *****************************************************************************
3-
* Copyright (C) 2014-2024 Dennis Sheirer
2+
* ******************************************************************************
3+
* sdrtrunk
4+
* Copyright (C) 2014-2019 Dennis Sheirer
45
*
56
* This program is free software: you can redistribute it and/or modify
67
* it under the terms of the GNU General Public License as published by
@@ -14,7 +15,7 @@
1415
*
1516
* You should have received a copy of the GNU General Public License
1617
* along with this program. If not, see <http://www.gnu.org/licenses/>
17-
* ****************************************************************************
18+
* *****************************************************************************
1819
*/
1920

2021
package io.github.dsheirer.module.decode.p25.phase1.message.tsbk.standard.isp;
@@ -23,6 +24,7 @@
2324
import io.github.dsheirer.identifier.Identifier;
2425
import io.github.dsheirer.module.decode.p25.phase1.P25P1DataUnitID;
2526
import io.github.dsheirer.module.decode.p25.phase1.message.tsbk.ISPMessage;
27+
2628
import java.util.Collections;
2729
import java.util.List;
2830

@@ -43,7 +45,7 @@ public String toString()
4345
{
4446
StringBuilder sb = new StringBuilder();
4547
sb.append(getMessageStub());
46-
sb.append(" **UNRECOGNIZED ISP OPCODE: ").append(getOpcodeNumber());
48+
sb.append(" **UNRECOGNIZED ISP OPCODE**");
4749
sb.append(" MSG:").append(getMessage().toHexString());
4850
return sb.toString();
4951
}

src/main/java/io/github/dsheirer/module/decode/p25/phase1/message/tsbk/standard/osp/UnknownOSPMessage.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
2-
* *****************************************************************************
3-
* Copyright (C) 2014-2024 Dennis Sheirer
2+
* ******************************************************************************
3+
* sdrtrunk
4+
* Copyright (C) 2014-2019 Dennis Sheirer
45
*
56
* This program is free software: you can redistribute it and/or modify
67
* it under the terms of the GNU General Public License as published by
@@ -14,7 +15,7 @@
1415
*
1516
* You should have received a copy of the GNU General Public License
1617
* along with this program. If not, see <http://www.gnu.org/licenses/>
17-
* ****************************************************************************
18+
* *****************************************************************************
1819
*/
1920

2021
package io.github.dsheirer.module.decode.p25.phase1.message.tsbk.standard.osp;
@@ -23,6 +24,7 @@
2324
import io.github.dsheirer.identifier.Identifier;
2425
import io.github.dsheirer.module.decode.p25.phase1.P25P1DataUnitID;
2526
import io.github.dsheirer.module.decode.p25.phase1.message.tsbk.OSPMessage;
27+
2628
import java.util.Collections;
2729
import java.util.List;
2830

@@ -43,7 +45,7 @@ public String toString()
4345
{
4446
StringBuilder sb = new StringBuilder();
4547
sb.append(getMessageStub());
46-
sb.append(" **UNRECOGNIZED OSP OPCODE: ").append(getOpcodeNumber());
48+
sb.append(" **UNRECOGNIZED OSP OPCODE**");
4749
sb.append(" MSG:").append(getMessage().toHexString());
4850
return sb.toString();
4951
}

src/main/java/io/github/dsheirer/module/decode/p25/phase2/P25P2DecoderState.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,10 +1458,7 @@ private void processNullInformation(MacMessage message, MacStructure mac)
14581458
* based solely on the null info in the traffic channel. Ultimately, the existing call event will either be
14591459
* updated by a subsequent call, or removed via the traffic channel teardown.
14601460
*/
1461-
if(message.getMacPduType() != MacPduType.MAC_4_ACTIVE) //Don't change the state when we're in a call
1462-
{
1463-
continueState(State.ACTIVE);
1464-
}
1461+
continueState(State.ACTIVE);
14651462
}
14661463

14671464
/**

0 commit comments

Comments
 (0)