summaryrefslogtreecommitdiff
path: root/mp3lame.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mp3lame.rs')
-rw-r--r--mp3lame.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mp3lame.rs b/mp3lame.rs
index d26b667..1cfb0c6 100644
--- a/mp3lame.rs
+++ b/mp3lame.rs
@@ -74,6 +74,10 @@ impl LameContext {
unsafe { lame_set_out_samplerate(self.gfp, rate as c_int) };
}
#[fixed_stack_segment]
+ pub fn get_out_samplerate(&self) -> int {
+ unsafe { lame_get_out_samplerate(self.gfp) as int }
+ }
+ #[fixed_stack_segment]
pub fn set_num_channels(&self, channels: int) {
unsafe { lame_set_num_channels(self.gfp, channels as c_int) };
}