Lines Matching defs:AudioInfo
48 audio_info_t AudioInfo;
56 audio_info_t AudioInfo;
218 audio_info_t AudioInfo;
227 AUDIO_INITINFO(&AudioInfo);
228 if (ioctl(dst == enmPlay ? g_AudioDev : g_RecordDev, AUDIO_GETINFO, &AudioInfo) < 0)
236 pDstInfo = &AudioInfo.play;
241 pDstInfo = &AudioInfo.record;
253 if (ioctl(dst == enmPlay ? g_AudioDev : g_RecordDev, AUDIO_SETINFO, &AudioInfo) < 0)
267 AUDIO_INITINFO(&pSol->AudioInfo);
268 pSol->AudioInfo.play.sample_rate = as->freq;
269 pSol->AudioInfo.play.channels = as->nchannels;
270 pSol->AudioInfo.play.precision = aud_to_solfmt(as->fmt);
271 pSol->AudioInfo.play.buffer_size = conf.cbPlayBuffer;
274 pSol->AudioInfo.play.encoding = AUDIO_ENCODING_LINEAR8;
276 pSol->AudioInfo.play.encoding = AUDIO_ENCODING_LINEAR;
286 if (solaudio_setattrs(enmPlay, &pSol->AudioInfo))
293 ObtAudioInfo.freq = pSol->AudioInfo.play.sample_rate;
294 ObtAudioInfo.nchannels = pSol->AudioInfo.play.channels;
295 ObtAudioInfo.fmt = sol_to_audfmt(pSol->AudioInfo.play.precision, pSol->AudioInfo.play.encoding);
301 hw->samples = pSol->AudioInfo.play.buffer_size >> hw->info.shift;
302 pSol->pPCMBuf = RTMemAllocZ(pSol->AudioInfo.play.buffer_size);
308 LogFlow(("solaudio: init_out hw->samples=%d play.buffer_size=%d\n", hw->samples, pSol->AudioInfo.play.buffer_size));
329 audio_info_t AudioInfo;
335 AUDIO_INITINFO(&AudioInfo);
336 ioctl(g_AudioDev, AUDIO_GETINFO, &AudioInfo);
337 AudioInfo.play.pause = 0;
339 AudioInfo.play.eof = 0;
340 AudioInfo.play.samples = 0;
343 ioctl(g_AudioDev, AUDIO_SETINFO, &AudioInfo);
349 audio_info_t AudioInfo;
364 AUDIO_INITINFO(&AudioInfo);
365 AudioInfo.play.pause = 1;
367 AudioInfo.play.samples = 0;
368 AudioInfo.play.eof = 0;
369 AudioInfo.play.error = 0;
372 if (ioctl(g_AudioDev, AUDIO_SETINFO, &AudioInfo) < 0)
383 if (ioctl(g_AudioDev, AUDIO_GETINFO, &sol->AudioInfo) < 0)
389 if (sol->cBuffersPlayed - sol->AudioInfo.play.eof <= 2)
396 sol->AudioInfo.play.eof -= UINT_MAX - 4;
397 ioctl(g_AudioDev, AUDIO_SETINFO, &sol->AudioInfo);
400 LogFlow(("avail: eof=%d samples=%d bufplayed=%d avail=%d\n", sol->AudioInfo.play.eof, sol->AudioInfo.play.samples,
549 audio_info_t AudioInfo;
550 AUDIO_INITINFO(&AudioInfo);
551 if (ioctl(g_RecordDev, AUDIO_GETINFO, &AudioInfo) < 0)
557 AudioInfo.record.pause = 1;
558 if (ioctl(g_RecordDev, AUDIO_SETINFO, &AudioInfo))
565 audio_info_t AudioInfo;
566 AUDIO_INITINFO(&AudioInfo);
567 if (ioctl(g_RecordDev, AUDIO_GETINFO, &AudioInfo) < 0)
573 AudioInfo.record.pause = 0;
574 if (ioctl(g_RecordDev, AUDIO_SETINFO, &AudioInfo))
582 audio_info_t AudioInfo;
597 AUDIO_INITINFO(&AudioInfo);
598 AudioInfo.record.samples = 0;
599 AudioInfo.record.pause = 1;
600 AudioInfo.record.eof = 0;
601 AudioInfo.record.error = 0;
602 if (ioctl(g_RecordDev, AUDIO_SETINFO, &AudioInfo) < 0)
620 if (solaudio_setattrs(enmRecord, &sol->AudioInfo))
634 AUDIO_INITINFO(&pSol->AudioInfo);
635 pSol->AudioInfo.record.sample_rate = as->freq;
636 pSol->AudioInfo.record.channels = as->nchannels;
637 pSol->AudioInfo.record.precision = aud_to_solfmt(as->fmt);
638 pSol->AudioInfo.record.buffer_size = conf.cbRecordBuffer;
641 pSol->AudioInfo.record.encoding = AUDIO_ENCODING_LINEAR8;
643 pSol->AudioInfo.record.encoding = AUDIO_ENCODING_LINEAR;
656 if (solaudio_setattrs(enmRecord, &pSol->AudioInfo))
663 ObtAudioInfo.freq = pSol->AudioInfo.record.sample_rate;
664 ObtAudioInfo.nchannels = pSol->AudioInfo.record.channels;
665 ObtAudioInfo.fmt = sol_to_audfmt(pSol->AudioInfo.record.precision, pSol->AudioInfo.record.encoding);
670 hw->samples = pSol->AudioInfo.record.buffer_size >> hw->info.shift;
671 pSol->pPCMBuf = RTMemAllocZ(pSol->AudioInfo.record.buffer_size);
678 LogFlow(("solaudio: init_in: hw->samples=%d record.buffer_size=%d rate=%d\n", hw->samples, pSol->AudioInfo.record.buffer_size,
679 pSol->AudioInfo.record.sample_rate));