Skip to content

Commit

Permalink
Rename Description::addAacCodec() to addAACCodec for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Oct 29, 2023
1 parent 8c67a2c commit bc226c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions include/rtc/description.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,15 @@ class RTC_CPP_EXPORT Description {
Audio(string mid = "audio", Direction dir = Direction::SendOnly);

void addAudioCodec(int payloadType, string codec, optional<string> profile = std::nullopt);

void addOpusCodec(int payloadType, optional<string> profile = DEFAULT_OPUS_AUDIO_PROFILE);

void addPCMACodec(int payloadType, optional<string> profile = std::nullopt);

void addPCMUCodec(int payloadType, optional<string> profile = std::nullopt);
void addAacCodec(int payloadType, optional<string> profile = std::nullopt);
void addAACCodec(int payloadType, optional<string> profile = std::nullopt);

[[deprecated("Use addAACCodec")]] inline void
addAacCodec(int payloadType, optional<string> profile = std::nullopt) {
addAACCodec(payloadType, std::move(profile));
};
};

class RTC_CPP_EXPORT Video : public Media {
Expand Down
1 change: 1 addition & 0 deletions include/rtc/rtppacketizer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion src/description.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ void Description::Audio::addPCMUCodec(int payloadType, optional<string> profile)
addAudioCodec(payloadType, "PCMU", profile);
}

void Description::Audio::addAacCodec(int payloadType, optional<string> profile) {
void Description::Audio::addAACCodec(int payloadType, optional<string> profile) {
if (profile) {
addAudioCodec(payloadType, "MP4A-LATM", profile);
} else {
Expand Down

0 comments on commit bc226c7

Please sign in to comment.