Results 613 comments of Victor Gaydov

This task is not very small, but it is quite straightforward and detaily explained, so I think it should be good enough for newcomers.

Here you can find an example of reading a file with libsndfile: [1](https://github.com/gavv/snippets/blob/master/decode_play/sndfile_decode.cpp), [2](https://github.com/gavv/snippets/tree/master/decode_play).

@billionai sure, you're welcome!

See also #251. It provides an overview of roc_sndio concepts.

> it only lists flac, ogg and vorbis, and says alsa and SQlite (?) are optional dependencies That's right. Actually all these dependencies are optional. If libsndfile was built with...

Our `3rdparty.py` script builds libsndfile with `--disable-external-libs` which means that flac, ogg, and vorbis are disabled. https://github.com/roc-project/roc/blob/master/scripts/3rdparty.py#L472-L474 https://github.com/erikd/libsndfile/blob/6978654319aacb625c0f41eb8457b86000748c73/configure.ac#L152-L153

> Hey, I was coding the sink for sndfile and noticed that I need to pass a number as a format, that would be derived from the driver passed (I'm...

> Sndfile doesn't have a clean way to check if the opened descriptor is a device or a file, but it can tell you if the opened descriptor is seekable....

> I can't really see a reason for a music file to not be seekable I guess the only case when it's not seekable is a pipe, e.g.: ``` $...

@billionai Hi, do you still have plans to finish this?