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

Unified Diff: examples/audio_play_test/play_tone.cc

Issue 1902183002: Motown: Change media type (stream type) representation (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changes per review feedback. Created 4 years, 8 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 | « no previous file | examples/audio_play_test/play_wav.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/audio_play_test/play_tone.cc
diff --git a/examples/audio_play_test/play_tone.cc b/examples/audio_play_test/play_tone.cc
index 6995e40c8390d9853584c07577c260ed1988c652..ff12890d435569d94964e12ef7b83094e33c973c 100644
--- a/examples/audio_play_test/play_tone.cc
+++ b/examples/audio_play_test/play_tone.cc
@@ -122,15 +122,16 @@ void PlayToneApp::Initialize(ApplicationImpl* app) {
// Configure our sink for 16-bit 48KHz mono.
AudioTrackConfigurationPtr cfg = AudioTrackConfiguration::New();
- LpcmMediaTypeDetailsPtr pcm_cfg = LpcmMediaTypeDetails::New();
- pcm_cfg->sample_format = LpcmSampleFormat::SIGNED_16;
+ AudioMediaTypeDetailsPtr pcm_cfg = AudioMediaTypeDetails::New();
+ pcm_cfg->sample_format = AudioSampleFormat::SIGNED_16;
pcm_cfg->channels = 1;
pcm_cfg->frames_per_second = SAMP_FREQ;
cfg->media_type = MediaType::New();
- cfg->media_type->scheme = MediaTypeScheme::LPCM;
+ cfg->media_type->medium = MediaTypeMedium::AUDIO;
cfg->media_type->details = MediaTypeDetails::New();
- cfg->media_type->details->set_lpcm(pcm_cfg.Pass());
+ cfg->media_type->details->set_audio(pcm_cfg.Pass());
+ cfg->media_type->encoding = MediaType::kAudioEncodingLpcm;
MediaConsumerPtr pipe;
audio_track_->Configure(cfg.Pass(), GetProxy(&pipe));
« no previous file with comments | « no previous file | examples/audio_play_test/play_wav.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698