Set format = 0 on calling sf_open as required by libsndfile.

git-svn-id: svn://localhost/ardour2/branches/3.0@5576 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-08-24 17:08:08 +00:00
parent 27feb19897
commit d2b39735ca

View file

@ -154,6 +154,7 @@ Session::setup_click_sounds (int which)
} else {
info.format = 0;
if ((sndfile = sf_open (path.c_str(), SFM_READ, &info)) == 0) {
char errbuf[256];
sf_error_str (0, errbuf, sizeof (errbuf) - 1);