Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: services/media/audio/audio_track_impl.cc

Issue 1509323002: Mojom updates for Motown. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/mojo_services.gni ('k') | services/media/audio/platform/linux/alsa_output.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/audio_track_impl.cc
diff --git a/services/media/audio/audio_track_impl.cc b/services/media/audio/audio_track_impl.cc
index ae698ccc5c3fac58995c7cd005297290cd6373a3..3c21327c5616ff73573025092c98ea897c777aba 100644
--- a/services/media/audio/audio_track_impl.cc
+++ b/services/media/audio/audio_track_impl.cc
@@ -22,8 +22,8 @@ constexpr size_t AudioTrackImpl::PTS_FRACTIONAL_BITS;
// initialization using mojom generated structs, we should switch to it.
static const struct {
LpcmSampleFormat sample_format;
- uint8_t min_channels;
- uint8_t max_channels;
+ uint32_t min_channels;
+ uint32_t max_channels;
uint32_t min_frames_per_second;
uint32_t max_frames_per_second;
} kSupportedLpcmTypeSets[] = {
@@ -90,7 +90,7 @@ void AudioTrackImpl::Describe(const DescribeCallback& cbk) {
const auto& s = kSupportedLpcmTypeSets[i];
LpcmMediaTypeSetDetailsPtr lpcm_detail = LpcmMediaTypeSetDetails::New();
- lpcm_detail->sample_format = s.sample_format;
+ lpcm_detail->sample_format = s.sample_format;
lpcm_detail->min_channels = s.min_channels;
lpcm_detail->max_channels = s.max_channels;
lpcm_detail->min_frames_per_second = s.min_frames_per_second;
« no previous file with comments | « mojo/services/mojo_services.gni ('k') | services/media/audio/platform/linux/alsa_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698