Lines Matching refs:pSol
264 solaudioVoiceOut *pSol = (solaudioVoiceOut *)hw;
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);
299 pSol->cBuffersPlayed = 0;
301 hw->samples = pSol->AudioInfo.play.buffer_size >> hw->info.shift;
302 pSol->pPCMBuf = RTMemAllocZ(pSol->AudioInfo.play.buffer_size);
303 if (!pSol->pPCMBuf)
308 LogFlow(("solaudio: init_out hw->samples=%d play.buffer_size=%d\n", hw->samples, pSol->AudioInfo.play.buffer_size));
330 solaudioVoiceOut *pSol = (solaudioVoiceOut *)hw;
333 audio_pcm_info_clear_buf(&hw->info, pSol->pPCMBuf, hw->samples);
341 pSol->cBuffersPlayed = 0;
408 solaudioVoiceOut *pSol = (solaudioVoiceOut *) hw;
419 cbAvail = solaudio_availbuf(pSol);
433 pu8Dst = advance(pSol->pPCMBuf, hw->rpos << hw->info.shift);
447 pSol->cBuffersPlayed++;
454 solaudioVoiceOut *pSol = (solaudioVoiceOut *) hw;
467 solaudio_stop_out(pSol);
631 solaudioVoiceIn *pSol = (solaudioVoiceIn *)hw;
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);
672 if (!pSol->pPCMBuf)
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));
700 solaudioVoiceIn *pSol = (solaudioVoiceIn *) hw;
721 pu8Src = pSol->pPCMBuf;
808 solaudioVoiceIn *pSol = (solaudioVoiceIn *) hw;
814 solaudio_start_in(pSol);
821 solaudio_stop_in(pSol);