Help testing ALSA streaming

Linux specific questions.
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Help testing ALSA streaming

Post by badidea »

Back at pc. Last code does not print anything here. But still "tuut......tuuuuuuuuuuuut" where ..... is a short one time silence.
angros47
Posts: 2324
Joined: Jun 21, 2005 19:04

Re: Help testing ALSA streaming

Post by angros47 »

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
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Help testing ALSA streaming

Post by badidea »

Same behaviour (tuut...tuuuuuuuut, no prints)
angros47
Posts: 2324
Joined: Jun 21, 2005 19:04

Re: Help testing ALSA streaming

Post by angros47 »

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)
Post Reply