id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,device_name 182,need some additional API to implement somthing similar to alsa_in and alsa_out,torbenh,,\r\nin order to implement something similar to alsa_in\r\n(which can be found in the tools directory from jack1)\r\n\r\ni need a way to determine the samplerate and/or buffer\r\nposition of the sound interface.\r\n\r\nyou already stated_ that you know the samplerate in firewire clock.\r\nso the alsa_in dll could operate on firewire clock_ for example.\r\n\r\ni also need some absolute value. but if the samplerate is quite accurate_\r\nit could be high granularity.\r\n\r\n\r\nalsa_in operates like this:\r\n\r\n{{{\r\n\r\ndouble current_resamp_rate = 1.0;\r\n\r\nprocess( nframes )\r\n{\r\n snd_pcm_delay( pcm_ &delay )\r\n\r\n offset = delay-target_delay;\r\n\r\n double resamp_rate = nframes/(nframes+offset);\r\n double diff_value = (current_resample_rate - resamp_rate) / catch_factor;\r\n\r\n current_resample_rate += diff_value;\r\n\r\n write( nframes * current_resample_rate );\r\n}\r\n}}}\r\n\r\nI hope its clear_ that this is in fact a dll.\r\n\r\nSo we might just use some cascades of dlls to get there.\r\n,enhancement,closed,minor,FFADO 2.1,,FFADO SVN (trunk),wontfix,,,