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

Unified Diff: examples/audio_play_test/play_tone.cc

Issue 1509323002: Mojom updates for Motown. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync with master Created 5 years 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
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 8b65ef68246644a4ad858d65f4d07156fa54056b..c16a564459f9c17d1614a99b035a3f55a21e3337 100644
--- a/examples/audio_play_test/play_tone.cc
+++ b/examples/audio_play_test/play_tone.cc
@@ -117,7 +117,8 @@ void PlayToneApp::Initialize(ApplicationImpl* app) {
LpcmMediaTypeDetailsPtr pcm_cfg = LpcmMediaTypeDetails::New();
pcm_cfg->sample_format = LpcmSampleFormat::SIGNED_16;
- pcm_cfg->samples_per_frame = 1;
+ pcm_cfg->interleaved = true;
+ pcm_cfg->channels = 1;
pcm_cfg->frames_per_second = SAMP_FREQ;
cfg->media_type = MediaType::New();
« no previous file with comments | « no previous file | examples/audio_play_test/play_wav.cc » ('j') | mojo/services/media/audio/interfaces/audio_track.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698