414 | | * Reads from a specific channel to a supplied buffer. |
---|
415 | | * |
---|
416 | | * @param dev the ffado device |
---|
417 | | * @param number the stream number |
---|
418 | | * @param buffer the buffer to copy the samples into |
---|
419 | | * @param nsamples the number of samples to be read. the buffer has to be big enough for this amount of samples. |
---|
420 | | * |
---|
421 | | * @return the amount of samples actually read. -1 on error (xrun). |
---|
422 | | */ |
---|
423 | | int ffado_streaming_read(ffado_device_t *dev, int number, ffado_sample_t *buffer, int nsamples); |
---|
424 | | |
---|
425 | | /** |
---|
426 | | * Write to a specific channel from a supplied buffer. |
---|
427 | | * |
---|
428 | | * @param dev the ffado device |
---|
429 | | * @param number the stream number |
---|
430 | | * @param buffer the buffer to copy the samples from |
---|
431 | | * @param nsamples the number of samples to be written. |
---|
432 | | * |
---|
433 | | * @return the amount of samples actually written. -1 on error. |
---|
434 | | */ |
---|
435 | | int ffado_streaming_write(ffado_device_t *dev, int number, ffado_sample_t *buffer, int nsamples); |
---|
436 | | |
---|
437 | | /** |
---|