Hi folks,
The documentation for writesf~ states that:
"You need not provide any disk access time between "open" and "start", but between "stop" and the next "open" you must give the object time to flush all the output to disk"
This suggests that once writesf~ has received a "stop" after writing to disk, there is no way to determine whether i) writesf~ is ready to receive another "open" or ii) the file written to disk is ready for reading.
Could an outlet be added to writesf~, outputing the number of samples written to disk?
The parent patch could then use this outlet to establish when writesf~ is ready to receive another "open".
Jamie
Hi,
On 30.09.2013 17:22, Jamie Bullock wrote:
Hi folks,
The documentation for writesf~ states that:
"You need not provide any disk access time between "open" and "start", but between "stop" and the next "open" you must give the object time to flush all the output to disk"
This suggests that once writesf~ has received a "stop" after writing to disk, there is no way to determine whether i) writesf~ is ready to receive another "open" or ii) the file written to disk is ready for reading.
Could an outlet be added to writesf~, outputing the number of samples written to disk?
The parent patch could then use this outlet to establish when writesf~ is ready to receive another "open".
I like the idea, but the outlet could just output a bang, when it is done, otherwise how do you determine that writesf~ has written all samples to disk?
Best regards, Thomas
On 1 Oct 2013, at 09:27, Thomas Mayer thomas@residuum.org wrote:
On 30.09.2013 17:22, Jamie Bullock wrote:
Could an outlet be added to writesf~, outputing the number of samples written to disk?
The parent patch could then use this outlet to establish when writesf~ is ready to receive another "open".
I like the idea, but the outlet could just output a bang, when it is done, otherwise how do you determine that writesf~ has written all samples to disk?
I meant that it should just output the _total_ samples written after it has flushed to disk. This would be consistent with the behaviour of [soundfiler] I believe.
But yes, a bang would do the job.
best,
Jamie