Re: [RFC] ALSA vs. dedicated char device for a USB Audio Class gadget driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Laurent Pinchart wrote:
> On Monday 18 May 2009 10:39:24 Clemens Ladisch wrote:
> > The ALSA API doesn't give you access to the SOF clock.
> 
> Does the ALSA API give applications access to the audio clock ?

ALSA wakes up the application (if it's blocked) whenever a sound card
interrupt happens, i.e., at period boundaries.  At all times, you can
get the current sample position by calling snd_pcm_delay().

> As Alan Stern mention in his e-mail, does ALSA allow an application to
> resample audio from an ALSA source (microphone on sound card 1) before
> sending it to an ALSA sink (speaker on sound card 2) ?

It is possible, if the application monitors the speed of both devices.


Best regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux