| Index: media/audio/android/opensles_output.cc
|
| diff --git a/media/audio/android/opensles_output.cc b/media/audio/android/opensles_output.cc
|
| index c6d455715d9afccefe848b1d98c18d44934aa4ec..4c9d3f0174174b27bd5648a84be1d82bc76c1e65 100644
|
| --- a/media/audio/android/opensles_output.cc
|
| +++ b/media/audio/android/opensles_output.cc
|
| @@ -29,6 +29,7 @@ OpenSLESOutputStream::OpenSLESOutputStream(AudioManagerAndroid* manager,
|
| buffer_size_bytes_(0),
|
| started_(false),
|
| volume_(1.0) {
|
| + DVLOG(2) << "OpenSLESOutputStream::OpenSLESOutputStream()";
|
| format_.formatType = SL_DATAFORMAT_PCM;
|
| format_.numChannels = static_cast<SLuint32>(params.channels());
|
| // Provides sampling rate in milliHertz to OpenSLES.
|
| @@ -50,6 +51,7 @@ OpenSLESOutputStream::OpenSLESOutputStream(AudioManagerAndroid* manager,
|
| }
|
|
|
| OpenSLESOutputStream::~OpenSLESOutputStream() {
|
| + DVLOG(2) << "OpenSLESOutputStream::~OpenSLESOutputStream()";
|
| DCHECK(!engine_object_.Get());
|
| DCHECK(!player_object_.Get());
|
| DCHECK(!output_mixer_.Get());
|
| @@ -59,6 +61,7 @@ OpenSLESOutputStream::~OpenSLESOutputStream() {
|
| }
|
|
|
| bool OpenSLESOutputStream::Open() {
|
| + DVLOG(2) << "OpenSLESOutputStream::Open()";
|
| if (engine_object_.Get())
|
| return false;
|
|
|
| @@ -71,6 +74,7 @@ bool OpenSLESOutputStream::Open() {
|
| }
|
|
|
| void OpenSLESOutputStream::Start(AudioSourceCallback* callback) {
|
| + DVLOG(2) << "OpenSLESOutputStream::Start()";
|
| DCHECK(callback);
|
| DCHECK(player_);
|
| DCHECK(simple_buffer_queue_);
|
| @@ -92,6 +96,7 @@ void OpenSLESOutputStream::Start(AudioSourceCallback* callback) {
|
| }
|
|
|
| void OpenSLESOutputStream::Stop() {
|
| + DVLOG(2) << "OpenSLESOutputStream::Stop()";
|
| if (!started_)
|
| return;
|
|
|
| @@ -107,6 +112,7 @@ void OpenSLESOutputStream::Stop() {
|
| }
|
|
|
| void OpenSLESOutputStream::Close() {
|
| + DVLOG(2) << "OpenSLESOutputStream::Close()";
|
| // Stop the stream if it is still playing.
|
| Stop();
|
|
|
|
|