Remove some unused audio stream method parameters

This commit is contained in:
David Rowe 2021-09-18 10:01:21 +12:00
parent 87803e5124
commit 6c4e105c06
4 changed files with 5 additions and 5 deletions

View file

@ -167,7 +167,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
bool packetPCM = codecInPacket == "pcm" || codecInPacket == ""; bool packetPCM = codecInPacket == "pcm" || codecInPacket == "";
if (codecInPacket == _selectedCodecName || (packetPCM && selectedPCM)) { if (codecInPacket == _selectedCodecName || (packetPCM && selectedPCM)) {
auto afterProperties = message.readWithoutCopy(message.getBytesLeftToRead()); auto afterProperties = message.readWithoutCopy(message.getBytesLeftToRead());
parseAudioData(message.getType(), afterProperties); parseAudioData(afterProperties);
_mismatchedAudioCodecCount = 0; _mismatchedAudioCodecCount = 0;
} else { } else {
@ -267,7 +267,7 @@ int InboundAudioStream::lostAudioData(int numPackets) {
return 0; return 0;
} }
int InboundAudioStream::parseAudioData(PacketType type, const QByteArray& packetAfterStreamProperties) { int InboundAudioStream::parseAudioData(const QByteArray& packetAfterStreamProperties) {
QByteArray decodedBuffer; QByteArray decodedBuffer;
// may block on the real-time thread, which is acceptible as // may block on the real-time thread, which is acceptible as

View file

@ -132,7 +132,7 @@ protected:
/// parses the audio data in the network packet. /// parses the audio data in the network packet.
/// default implementation assumes packet contains raw audio samples after stream properties /// default implementation assumes packet contains raw audio samples after stream properties
virtual int parseAudioData(PacketType type, const QByteArray& packetAfterStreamProperties); virtual int parseAudioData(const QByteArray& packetAfterStreamProperties);
/// produces audio data for lost network packets. /// produces audio data for lost network packets.
virtual int lostAudioData(int numPackets); virtual int lostAudioData(int numPackets);

View file

@ -61,7 +61,7 @@ int MixedProcessedAudioStream::lostAudioData(int numPackets) {
return 0; return 0;
} }
int MixedProcessedAudioStream::parseAudioData(PacketType type, const QByteArray& packetAfterStreamProperties) { int MixedProcessedAudioStream::parseAudioData(const QByteArray& packetAfterStreamProperties) {
QByteArray decodedBuffer; QByteArray decodedBuffer;
// may block on the real-time thread, which is acceptible as // may block on the real-time thread, which is acceptible as

View file

@ -34,7 +34,7 @@ public:
protected: protected:
int writeDroppableSilentFrames(int silentFrames) override; int writeDroppableSilentFrames(int silentFrames) override;
int parseAudioData(PacketType type, const QByteArray& packetAfterStreamProperties) override; int parseAudioData(const QByteArray& packetAfterStreamProperties) override;
int lostAudioData(int numPackets) override; int lostAudioData(int numPackets) override;
private: private: