Lines Matching refs:audio_type
82 MediaStreamType* audio_type,
84 *audio_type = MEDIA_NO_SERVICE;
95 *audio_type = content::MEDIA_TAB_AUDIO_CAPTURE;
97 *audio_type = content::MEDIA_LOOPBACK_AUDIO_CAPTURE;
101 *audio_type = MEDIA_DEVICE_AUDIO_CAPTURE;
226 void SetAudioType(MediaStreamType audio_type) {
227 DCHECK(IsAudioInputMediaType(audio_type) ||
228 audio_type == MEDIA_DEVICE_AUDIO_OUTPUT ||
229 audio_type == MEDIA_NO_SERVICE);
230 audio_type_ = audio_type;
233 MediaStreamType audio_type() const { return audio_type_; }
703 if (request->audio_type() == MEDIA_DEVICE_AUDIO_OUTPUT) {
720 if (request->audio_type() == MEDIA_DEVICE_AUDIO_CAPTURE) {
726 DCHECK_EQ(MEDIA_NO_SERVICE, request->audio_type());
779 it->second->audio_type() == MEDIA_DEVICE_AUDIO_OUTPUT) {
1039 if (request->audio_type() == MEDIA_DEVICE_AUDIO_CAPTURE ||
1040 request->audio_type() == MEDIA_DEVICE_AUDIO_OUTPUT ||
1086 const MediaStreamType streams[] = { request->audio_type(),
1143 const MediaStreamType audio_type = request->audio_type();
1147 if (IsAudioInputMediaType(audio_type))
1148 request->SetState(audio_type, MEDIA_REQUEST_STATE_PENDING_APPROVAL);
1202 MediaStreamType audio_type = MEDIA_NO_SERVICE;
1204 ParseStreamType(request->options, &audio_type, &video_type);
1205 request->SetAudioType(audio_type);
1209 audio_type == MEDIA_TAB_AUDIO_CAPTURE ||
1232 if (EnumerationRequired(&audio_enumeration_cache_, audio_type) ||
1241 if (audio_type != MEDIA_NO_SERVICE) {
1243 GetLogMessageString(audio_type, audio_enumeration_cache_.devices);
1262 DCHECK((request->audio_type() == MEDIA_DEVICE_AUDIO_CAPTURE ||
1263 request->audio_type() == MEDIA_NO_SERVICE) &&
1268 !GetRequestedDeviceCaptureId(request, request->audio_type(),
1288 DCHECK(request->audio_type() == MEDIA_TAB_AUDIO_CAPTURE ||
1311 (request->audio_type() != MEDIA_TAB_AUDIO_CAPTURE &&
1312 request->audio_type() != MEDIA_NO_SERVICE) ||
1331 DCHECK(request->audio_type() == MEDIA_LOOPBACK_AUDIO_CAPTURE ||
1338 (request->audio_type() != MEDIA_NO_SERVICE &&
1339 request->audio_type() != MEDIA_LOOPBACK_AUDIO_CAPTURE)) {
1474 DCHECK(((request->audio_type() == MEDIA_DEVICE_AUDIO_CAPTURE ||
1475 request->audio_type() == MEDIA_DEVICE_AUDIO_OUTPUT) &&
1477 (request->audio_type() == MEDIA_NO_SERVICE &&
1499 request->audio_type() == MEDIA_DEVICE_AUDIO_CAPTURE ||
1500 request->audio_type() == MEDIA_DEVICE_AUDIO_OUTPUT
1729 (it->second->audio_type() == stream_type ||
1748 if (request->state(request->audio_type()) ==
1896 if (device_info.device.type == request->audio_type()) {
1933 if (!found_audio && IsAudioInputMediaType(request->audio_type())) {
1934 request->SetState(request->audio_type(), MEDIA_REQUEST_STATE_ERROR);
2019 const bool requested_audio = IsAudioInputMediaType(request.audio_type());
2024 request.state(request.audio_type()) == MEDIA_REQUEST_STATE_DONE ||
2025 request.state(request.audio_type()) == MEDIA_REQUEST_STATE_ERROR;