I first used GstAudioSink. The problem is that I will not get back any information on the state of the buffer of the remote device (delay()) and I could only get (crackling sound) by adding sleeps in the _write() function.
On IRC, I've been told that a ring buffer would not be the best approach for this case but that I rather should drive from BaseSink and activate synchronization and overwrite _get_times().
I did that and now I'm stuck with a buffer in _render() that has size 1024-while I expect a multiple of 80 (g711 encoding). Also I'm still searching for examples to get the data similarly to the previous _write () function.
Any advice/suggestions? Any help would be much appreciated :-)