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

Side by Side Diff: services/media/framework_mojo/mojo_formatting.cc

Issue 2006093004: Motown: Convert MediaSink to expose MediaTimelineControlSite (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/media/framework_mojo/mojo_formatting.h" 5 #include "services/media/framework_mojo/mojo_formatting.h"
6 6
7 namespace mojo { 7 namespace mojo {
8 namespace media { 8 namespace media {
9 9
10 template <typename T> 10 template <typename T>
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 case AudioSampleFormat::SIGNED_16: 377 case AudioSampleFormat::SIGNED_16:
378 return "SIGNED_16"; 378 return "SIGNED_16";
379 case AudioSampleFormat::SIGNED_24_IN_32: 379 case AudioSampleFormat::SIGNED_24_IN_32:
380 return "SIGNED_24_IN_32"; 380 return "SIGNED_24_IN_32";
381 case AudioSampleFormat::FLOAT: 381 case AudioSampleFormat::FLOAT:
382 return "FLOAT"; 382 return "FLOAT";
383 } 383 }
384 return "UNKNOWN FORMAT"; 384 return "UNKNOWN FORMAT";
385 } 385 }
386 386
387 const char* StringFromMediaState(MediaState value) {
388 switch (value) {
389 case MediaState::FAULT:
390 return "FAULT";
391 case MediaState::UNPREPARED:
392 return "UNPREPARED";
393 case MediaState::PAUSED:
394 return "PAUSED";
395 case MediaState::PLAYING:
396 return "PLAYING";
397 case MediaState::ENDED:
398 return "ENDED";
399 }
400 return "UNKNOWN MEDIA STATE";
401 }
402
403 } // namespace media 387 } // namespace media
404 } // namespace mojo 388 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698