summaryrefslogtreecommitdiff
path: root/src/sound_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-11 22:52:47 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-11 22:52:47 +0100
commitbc09fbc79580f56c93e35de25230af18b30e0e1e (patch)
tree8e640910c78d04b4e234668c7d8c7f1feac60873 /src/sound_asset.h
parent2cd9086c95686117ffbce92188d50d525ed488bb (diff)
Access sound asset sampling rate, channels; access sound asset from DCP; fix bad cast to float.
Diffstat (limited to 'src/sound_asset.h')
-rw-r--r--src/sound_asset.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sound_asset.h b/src/sound_asset.h
index e9faeb8b..f686e4bd 100644
--- a/src/sound_asset.h
+++ b/src/sound_asset.h
@@ -85,6 +85,12 @@ public:
void write_to_cpl (std::ostream& s) const;
std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityOptions opt) const;
+
+ int channels () const {
+ return _channels;
+ }
+
+ int sampling_rate () const;
private:
void construct (sigc::slot<std::string, Channel> get_path);