summaryrefslogtreecommitdiff
path: root/src/lib/sndfile_content.h
blob: 81a964ec8a1d909875139aab465b828b72bdb467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
	boost::shared_ptr<Content> clone () 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);
};