summaryrefslogtreecommitdiff
path: root/src/lib/sndfile_content.h
blob: b9a500c883f544b878aaa4518d47f78e3d424560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "audio_content.h"

namespace cxml {
	class Node;
}

class SndfileContent : public AudioContent
{
public:
	SndfileContent (boost::filesystem::path);
	SndfileContent (boost::shared_ptr<const cxml::Node>);
	
	std::string summary () const;

        /* AudioContent */
        int audio_channels () const;
        ContentAudioFrame audio_length () const;
        int audio_frame_rate () const;
        int64_t audio_channel_layout () const;

	static bool valid_file (boost::filesystem::path);
};