[alsa-devel] Problem with setting period time and buffer time.

Clemens Ladisch clemens at ladisch.de
Tue Feb 19 13:42:56 CET 2008


Ignacy Kasperowicz wrote:
> But what about buffer_time, why can't I set this time ?

The allowed range of values is hardware dependent, like the period time.
Use snd_pcm_hw_params_set_buffer_time_near().

> Anyway is there a method to play my wave for a specified short time?

Just write the data to the device.

What is the problem?


Regards,
Clemens


More information about the Alsa-devel mailing list