Help testing ALSA streaming

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

Re: Help testing ALSA streaming

Postby badidea » Jul 09, 2018 21:50

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

Re: Help testing ALSA streaming

Postby angros47 » Jul 15, 2018 10:51

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

Re: Help testing ALSA streaming

Postby badidea » Jul 15, 2018 13:23

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

Re: Help testing ALSA streaming

Postby angros47 » Jul 15, 2018 13:31

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)

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 3 guests