Add set_sampling_rate.
authorCarl Hetherington <cth@carlh.net>
Sun, 29 Sep 2013 08:12:11 +0000 (09:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 29 Sep 2013 08:12:11 +0000 (09:12 +0100)
src/sound_asset.h

index d41b72d5f995adc3862529f97bfa735be606d743..67d3e445f2cfb26df6233727e75c491f57acc7ff 100644 (file)
@@ -88,6 +88,10 @@ public:
                return _channels;
        }
 
+       void set_sampling_rate (int s) {
+               _sampling_rate = s;
+       }
+
        int sampling_rate () const {
                return _sampling_rate;
        }