Lines Matching refs:stream_id
36 int stream_id,
44 int stream_id() const {
89 AudioRendererHost* host, int stream_id, int render_view_id,
95 stream_id_(stream_id),
196 void AudioRendererHost::DoCompleteCreation(int stream_id) {
201 ReportErrorAndClose(stream_id);
205 AudioEntry* const entry = LookupById(stream_id);
207 ReportErrorAndClose(stream_id);
218 ReportErrorAndClose(entry->stream_id());
234 ReportErrorAndClose(entry->stream_id());
239 entry->stream_id(),
245 void AudioRendererHost::DoNotifyAudioPowerLevel(int stream_id,
255 AudioEntry* const entry = LookupById(stream_id);
258 render_process_id_, entry->render_view_id(), entry->stream_id(),
283 int stream_id, int render_view_id, int session_id,
288 << "::OnCreateStream(stream_id=" << stream_id
297 LookupById(stream_id) != NULL) {
298 SendErrorMessage(stream_id);
309 SendErrorMessage(stream_id);
332 SendErrorMessage(stream_id);
339 SendErrorMessage(stream_id);
349 this, stream_id, render_view_id, params, input_device_id,
356 audio_entries_.insert(std::make_pair(stream_id, entry.release()));
358 media_internals_->OnSetAudioStreamStatus(this, stream_id, "created");
361 void AudioRendererHost::OnPlayStream(int stream_id) {
364 AudioEntry* entry = LookupById(stream_id);
366 SendErrorMessage(stream_id);
372 media_internals_->OnSetAudioStreamPlaying(this, stream_id, true);
375 void AudioRendererHost::OnPauseStream(int stream_id) {
378 AudioEntry* entry = LookupById(stream_id);
380 SendErrorMessage(stream_id);
386 media_internals_->OnSetAudioStreamPlaying(this, stream_id, false);
389 void AudioRendererHost::OnSetVolume(int stream_id, double volume) {
392 AudioEntry* entry = LookupById(stream_id);
394 SendErrorMessage(stream_id);
403 media_internals_->OnSetAudioStreamVolume(this, stream_id, volume);
406 void AudioRendererHost::SendErrorMessage(int stream_id) {
408 stream_id, media::AudioOutputIPCDelegate::kError));
411 void AudioRendererHost::OnCloseStream(int stream_id) {
416 AudioEntryMap::iterator i = audio_entries_.find(stream_id);
431 media_internals_->OnSetAudioStreamStatus(this, stream_id, "closed");
442 render_process_id_, entry->render_view_id(), entry->stream_id(),
448 media_internals_->OnDeleteAudioStream(this, entry->stream_id());
453 void AudioRendererHost::ReportErrorAndClose(int stream_id) {
459 if (!LookupById(stream_id))
462 SendErrorMessage(stream_id);
465 media_internals_->OnSetAudioStreamStatus(this, stream_id, "error");
467 OnCloseStream(stream_id);
470 AudioRendererHost::AudioEntry* AudioRendererHost::LookupById(int stream_id) {
473 AudioEntryMap::const_iterator i = audio_entries_.find(stream_id);