Skip to content

Commit

Permalink
Add Starboard utils logging
Browse files Browse the repository at this point in the history
  • Loading branch information
osagie98 committed Jun 13, 2024
1 parent 7e91a6f commit c0bc2b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion third_party/chromium/media/base/starboard_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,14 @@ SbMediaAudioCodec MediaAudioCodecToSbMediaAudioCodec(AudioCodec codec) {
#endif // SB_API_VERSION >= 14
#if SB_API_VERSION >= 15
case AudioCodec::kIAMF:
LOG(INFO) << "MediaAudioCodecToSbMediaAudioCodec() returns kSbMediaAudioCodecIamf.";
LOG(INFO) << "Current SB_API_VERSION " << SB_API_VERSION;
return kSbMediaAudioCodecIamf;
#endif // SB_API_VERSION >= 15
default:
// Cobalt only supports a subset of audio codecs defined by Chromium.
DLOG(ERROR) << "Unsupported audio codec " << GetCodecName(codec);
LOG(ERROR) << "Unsupported audio codec " << GetCodecName(codec);
LOG(INFO) << "Current SB_API_VERSION " << SB_API_VERSION;
return kSbMediaAudioCodecNone;
}
NOTREACHED();
Expand Down Expand Up @@ -166,6 +169,7 @@ SbMediaAudioStreamInfo MediaAudioConfigToSbMediaAudioStreamInfo(
audio_stream_info.audio_specific_config = extra_data.data();
}

LOG(INFO) << "SbMediaAudioStreamInfo.codec is " << audio_stream_info.codec;
return audio_stream_info;
}

Expand Down

0 comments on commit c0bc2b7

Please sign in to comment.