| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |