Hello everybody,
I've started to write the audio driver for Irix. But as this is my first
really usefull project I've got several questions:
1.) in function open_dev_audio:
static sw_handle * open_dev_audio (int cueing, int flags)
1.1) what values are passed to the function with the variable cueing?
What is this variable used for?
1.2) Are there any flags used, except O_WRONLY and O_RDONLY?
2.) what are the default values for the audio port when opening it
(number of channels, sample rate, etc.)?
3.) What is the sample format used in sweep (float, double, or anything
else)?
4.) What are the following lines of code for (play.c):
#if 0
{
fd_set fds;
FD_ZERO (&fds);
FD_SET (handle->driver_fd, &fds);
if (select (handle->driver_fd+1, &fds, NULL, NULL, &tv_instant)
== 0);
}
5.) What does this line of code (record.c)?
if (select (rec_handle->driver_fd+1, &fds, NULL, NULL, &tv_instant) == 0);
6.) Can I replace the file descriptor driver_fd in struct handle with a
variable of type alport (Irix audio port for accesing the audio
hardware, Irix doesn't use device files for this)
Thomas
|