1 #include "sndfile_content.h"
8 SndfileContent::SndfileContent (boost::filesystem::path f)
16 SndfileContent::summary () const
18 return String::compose (_("Sound file: %1"), file().filename ());
22 SndfileContent::audio_channels () const
29 SndfileContent::audio_length () const
36 SndfileContent::audio_frame_rate () const
43 SndfileContent::audio_channel_layout () const
51 SndfileContent::valid_file (boost::filesystem::path f)
53 /* XXX: more extensions */
54 string ext = f.extension().string();
55 transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
56 return (ext == ".wav" || ext == ".aif" || ext == ".aiff");