Home | History | Annotate | Download | only in media

Lines Matching refs:attr

21 static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr)
24 if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) {
27 if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) {
32 switch (attr->usage) {
65 audio_attributes_t *attr) {
66 memset(attr, 0, sizeof(audio_attributes_t));
71 attr->content_type = AUDIO_CONTENT_TYPE_MUSIC;
72 attr->usage = AUDIO_USAGE_MEDIA;
75 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH;
76 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION;
79 attr->flags |= AUDIO_FLAG_AUDIBILITY_ENFORCED;
82 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION;
83 attr->usage = AUDIO_USAGE_ASSISTANCE_SONIFICATION;
86 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION;
87 attr->usage = AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE;
90 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION;
91 attr->usage = AUDIO_USAGE_ALARM;
94 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION;
95 attr->usage = AUDIO_USAGE_NOTIFICATION;
98 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH;
99 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION;
100 attr->flags |= AUDIO_FLAG_SCO;
103 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION;
104 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING;
107 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH;
108 attr->usage = AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY;