Skip to content

Commit

Permalink
Rename OWT_CLOUD_GAMING to OWT_CG_SERVER. (#192)
Browse files Browse the repository at this point in the history
This change is preparation for cg client build support on Windows.
  • Loading branch information
jianjunz committed Apr 26, 2023
1 parent 15bb85d commit c347164
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ config("common_config") {
]
}

if (owt_cloud_gaming) {
defines += [ "OWT_CLOUD_GAMING" ]
if (owt_cg_server) {
defines += [ "OWT_CG_SERVER" ]
}
}

Expand Down
2 changes: 1 addition & 1 deletion api/audio_codecs/opus/audio_decoder_opus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ absl::optional<AudioDecoderOpus::Config> AudioDecoderOpus::SdpToConfig(
return absl::nullopt; // Bad stereo parameter.
}
}
#ifdef OWT_CLOUD_GAMING
#ifdef OWT_CG_SERVER
return 2;
#endif
return 1; // Default to mono.
Expand Down
2 changes: 1 addition & 1 deletion api/transport/bitrate_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct BitrateConstraints {
int max_bitrate_bps = -1;

private:
#ifdef OWT_CLOUD_GAMING
#ifdef OWT_CG_SERVER
static constexpr int kDefaultStartBitrateBps = 5000000;
#else
static constexpr int kDefaultStartBitrateBps = 300000;
Expand Down

0 comments on commit c347164

Please sign in to comment.