have been having my grief with sfplay~ lately and it is hard to debug and provide accurate feedback on how to reproduce this error.
The problem: at random times, sfplay~ somehow thinks that the cue has finished, even though it has not. Not results in playback of files prematurely stopping, or sfplay~ jumping to the next cue, even though the previous cue has not finished, yet.
My suspicion is, that it has to do with assigning a buffer size in the arguments. Here is a current example I have in front of me:
Because of problems with sfplay~ (for example that it STILL doesn't suppor wav64 or rf64!), I decided to write myself a multichannel player that contains as many sfplay~ objects that I need... and I manually separate the multichannel wav file into individual mono ones using a script written with sox. So far so good.
Just now, my multichannel player is acting up. I attached a screen shot, where you can see that the first of the sfplay~ has a buffer defined and the position outlet flag set. I ONLY define the buffer, because I need the position outlet flag!
Previously this has worked good, but just now, if I press play, the first sfplay~ jumps after one buffer length to the next cue, while the rest of the sfplay~'s remain in the cue that I want them to be. I know this is an issue due to the arguments passed sfplay~, because if I switch it around by making the second sfplay~ the one that outputs the position signal and reverting the first one to a "normal" sfplay~ without any arguments apart from the 1 as the channel count, the second one jumps to the next cue after one buffer size and the first one suddenly behaves the way it should.
Being forced to provide a buffer size before I can set the position outlet flag is a bit unfortunate. I would love to have the position outlet by default, or, at least, have a way to receive this outlet without having to specify a buffer length? (...which is the default one any way... all I want is that outlet!)
Or, is there any message I can send to sfplay~ to query the current position in the file?