- case SF_FORMAT_FLOAT:
- return 1; // heh, heh
- default:
- // we don't handle anything else within ardour
- return 0;
- }
-}
-
-int
-sndfile_data_width (ARDOUR::SampleFormat format)
-{
- switch (format) {
- case ARDOUR::FormatInt16:
- return sndfile_data_width (SF_FORMAT_PCM_16);
- case ARDOUR::FormatInt24:
- return sndfile_data_width (SF_FORMAT_PCM_24);