summaryrefslogtreecommitdiff
path: root/src/lib/sndfile_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-06 23:57:46 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-06 23:57:46 +0100
commitc921cfe23b593d7c367ad76094308c5f08037374 (patch)
treed010137615eb3817e57edaf0b0753ef924569965 /src/lib/sndfile_content.cc
parent8750efb9e072cf3b42e6c3c29521c7031c0b5dfd (diff)
Various work on audio channel mapping.
Diffstat (limited to 'src/lib/sndfile_content.cc')
-rw-r--r--src/lib/sndfile_content.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/sndfile_content.cc b/src/lib/sndfile_content.cc
index ee4f21eef..539b0dfb5 100644
--- a/src/lib/sndfile_content.cc
+++ b/src/lib/sndfile_content.cc
@@ -27,12 +27,16 @@
using std::string;
using std::stringstream;
+using std::cout;
using boost::shared_ptr;
using boost::lexical_cast;
SndfileContent::SndfileContent (boost::filesystem::path f)
: Content (f)
, AudioContent (f)
+ , _audio_channels (0)
+ , _audio_length (0)
+ , _audio_frame_rate (0)
{
}
@@ -49,7 +53,7 @@ SndfileContent::SndfileContent (shared_ptr<const cxml::Node> node)
string
SndfileContent::summary () const
{
- return String::compose (_("Sound file: %1"), file().filename ());
+ return String::compose (_("Sound file: %1"), file().filename().string());
}
string
@@ -115,3 +119,4 @@ SndfileContent::as_xml (xmlpp::Node* node) const
node->add_child("AudioLength")->add_child_text (lexical_cast<string> (_audio_length));
node->add_child("AudioFrameRate")->add_child_text (lexical_cast<string> (_audio_frame_rate));
}
+