Home | History | Annotate | Download | only in libossaudio

Lines Matching defs:rate

48 	int fd, channels, fmt, rate;
196 rate = 8000;
197 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
202 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
204 rate = 32000;
205 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
211 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
213 rate = 44100;
214 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
220 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
222 rate = 48000;
223 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
229 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
231 rate = 96000;
232 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
238 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
240 rate = 192000;
241 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
247 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
253 /* closest supported rate is 1000 */
254 rate = 900;
255 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
260 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
262 /* closest supported rate is 192000 */
263 rate = 197000;
264 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)
269 ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
271 /* 0 should return the hardware rate. */
273 rate = 0;
274 if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0)