Help testing ALSA streaming
Re: Help testing ALSA streaming
Back at pc. Last code does not print anything here. But still "tuut......tuuuuuuuuuuuut" where ..... is a short one time silence.
Re: Help testing ALSA streaming
Thank you. And what happens if SoundQueue is modified into:
Code: Select all
function SoundQueue() as integer
if alsa then
dim value as long
snd_pcm_delay(hDevice, @value)
return value*SampleSize
elseif OSS>0 then
dim value as long
ioctl fileno(cast (any ptr,fileattr(1,2))), SNDCTL_DSP_GETODELAY, @value
return value
end if
end function
Re: Help testing ALSA streaming
Same behaviour (tuut...tuuuuuuuut, no prints)
Re: Help testing ALSA streaming
Perfect. So, in general it works, although on some implementations of Alsa SoundQueue is less precise (and it makes no difference what solution is used)