Skip to content

Commit f81fa31

Browse files
committed
Merge pull request #84 from mitchmindtree/master
Added NO_FLAG flag to StreamCallbackFlags
2 parents ca8ef60 + fd57e3b commit f81fa31

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "portaudio"
4-
version = "0.4.8"
4+
version = "0.4.9"
55
authors = ["Jeremy Letang <[email protected]>",
66
"Mitchell Nordine <[email protected]>"]
77
description = "PortAudio bindings for Rust."

src/pa/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ pub mod stream_callback_flags {
163163
/// Some of all of the output data will be used to prime the stream, input data may be
164164
/// zero.
165165
flags StreamCallbackFlags: u64 {
166+
const NO_FLAG = ffi::PA_NO_FLAG,
166167
const INPUT_UNDERFLOW = ffi::INPUT_UNDERFLOW,
167168
const INPUT_OVERFLOW = ffi::INPUT_OVERFLOW,
168169
const OUTPUT_UNDERFLOW = ffi::OUTPUT_UNDERFLOW,
@@ -174,6 +175,7 @@ pub mod stream_callback_flags {
174175
impl ::std::fmt::Debug for StreamCallbackFlags {
175176
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
176177
write!(f, "{:?}", match self.bits() {
178+
ffi::PA_NO_FLAG => "NO_FLAG",
177179
ffi::INPUT_UNDERFLOW => "INPUT_UNDERFLOW",
178180
ffi::INPUT_OVERFLOW => "INPUT_OVERFLOW",
179181
ffi::OUTPUT_UNDERFLOW => "OUTPUT_UNDERFLOW",

0 commit comments

Comments
 (0)