Lines Matching refs:attribute
116 gs_attribute attribute;
118 attribute.attribute = B_GS_GAIN;
119 attribute.value = gain;
120 attribute.duration = duration;
121 attribute.flags = 0;
123 return fDevice->SetAttributes(fSound, &attribute, 1);
130 gs_attribute attribute;
132 attribute.attribute = B_GS_PAN;
133 attribute.value = pan;
134 attribute.duration = duration;
135 attribute.flags = 0;
137 return fDevice->SetAttributes(fSound, &attribute, 1);
144 gs_attribute attribute;
146 attribute.attribute = B_GS_GAIN;
147 attribute.flags = 0;
149 if (fDevice->GetAttributes(fSound, &attribute, 1) != B_OK)
152 return attribute.value;
159 gs_attribute attribute;
161 attribute.attribute = B_GS_PAN;
162 attribute.flags = 0;
164 if (fDevice->GetAttributes(fSound, &attribute, 1) != B_OK)
167 return attribute.value;