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

Unified Diff: examples/audio_play_test/play_wav.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_wav.cc
diff --git a/examples/audio_play_test/play_wav.cc b/examples/audio_play_test/play_wav.cc
index d4706b02c6ae74464e954831d0b4f0d6b6c4349b..54a6b70b14934314b7e5b986949c46c5ce9fb054 100644
--- a/examples/audio_play_test/play_wav.cc
+++ b/examples/audio_play_test/play_wav.cc
@@ -267,7 +267,8 @@ void PlayWAVApp::ProcessHTTPResponse(URLResponsePtr resp) {
pcm_cfg->sample_format = (wav_info_.bits_per_sample == 8)
? LpcmSampleFormat::UNSIGNED_8
: LpcmSampleFormat::SIGNED_16;
- pcm_cfg->samples_per_frame = wav_info_.channel_count;
+ pcm_cfg->interleaved = true;
+ pcm_cfg->channels = wav_info_.channel_count;
pcm_cfg->frames_per_second = wav_info_.frame_rate;
cfg->media_type = MediaType::New();

Powered by Google App Engine
This is Rietveld 408576698