Skip to content

Compilation errors in custom_audio_state.h (overriding non-existent functions) #116

@Bobini1

Description

@Bobini1

Hi, I'm getting some compilation errors when trying to build the library on Windows.

In file included from ../../libwebrtc/src/internal/custom_audio_state.cc:11:
../../libwebrtc\src/internal/custom_audio_state.h(59,72): error: only virtual member functions can be marked 'override'
   59 |   void AddReceivingStream(webrtc::AudioReceiveStreamInterface* stream) override;
      |                                                                        ^~~~~~~~
../../libwebrtc\src/internal/custom_audio_state.h(61,52): error: only virtual member functions can be marked 'override'
   61 |       webrtc::AudioReceiveStreamInterface* stream) override;
      |                                                    ^~~~~~~~
../../libwebrtc\src/internal/custom_audio_state.h(64,46): error: only virtual member functions can be marked 'override'
   64 |                         size_t num_channels) override;
      |                                              ^~~~~~~~
../../libwebrtc\src/internal/custom_audio_state.h(65,61): error: only virtual member functions can be marked 'override'
   65 |   void RemoveSendingStream(webrtc::AudioSendStream* stream) override;
      |                                                             ^~~~~~~~

The code compiles when I remove "override" from those methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions