mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 06:02:28 +02:00
Remove some unused audio stream method parameters
This commit is contained in:
parent
87803e5124
commit
6c4e105c06
4 changed files with 5 additions and 5 deletions
|
@ -167,7 +167,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
|||
bool packetPCM = codecInPacket == "pcm" || codecInPacket == "";
|
||||
if (codecInPacket == _selectedCodecName || (packetPCM && selectedPCM)) {
|
||||
auto afterProperties = message.readWithoutCopy(message.getBytesLeftToRead());
|
||||
parseAudioData(message.getType(), afterProperties);
|
||||
parseAudioData(afterProperties);
|
||||
_mismatchedAudioCodecCount = 0;
|
||||
|
||||
} else {
|
||||
|
@ -267,7 +267,7 @@ int InboundAudioStream::lostAudioData(int numPackets) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int InboundAudioStream::parseAudioData(PacketType type, const QByteArray& packetAfterStreamProperties) {
|
||||
int InboundAudioStream::parseAudioData(const QByteArray& packetAfterStreamProperties) {
|
||||
QByteArray decodedBuffer;
|
||||
|
||||
// may block on the real-time thread, which is acceptible as
|
||||
|
|
|
@ -132,7 +132,7 @@ protected:
|
|||
|
||||
/// parses the audio data in the network packet.
|
||||
/// 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.
|
||||
virtual int lostAudioData(int numPackets);
|
||||
|
|
|
@ -61,7 +61,7 @@ int MixedProcessedAudioStream::lostAudioData(int numPackets) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int MixedProcessedAudioStream::parseAudioData(PacketType type, const QByteArray& packetAfterStreamProperties) {
|
||||
int MixedProcessedAudioStream::parseAudioData(const QByteArray& packetAfterStreamProperties) {
|
||||
QByteArray decodedBuffer;
|
||||
|
||||
// may block on the real-time thread, which is acceptible as
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
protected:
|
||||
int writeDroppableSilentFrames(int silentFrames) override;
|
||||
int parseAudioData(PacketType type, const QByteArray& packetAfterStreamProperties) override;
|
||||
int parseAudioData(const QByteArray& packetAfterStreamProperties) override;
|
||||
int lostAudioData(int numPackets) override;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue