diff options
Diffstat (limited to 'src/lib/butler.cc')
| -rw-r--r-- | src/lib/butler.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc index 54c1acc4d..771c4e633 100644 --- a/src/lib/butler.cc +++ b/src/lib/butler.cc @@ -226,11 +226,16 @@ Butler::player_changed () } } -void +/** Try to get `frames' frames of audio and copy it into `out'. Silence + * will be filled if no audio is available. + * @return true if there was a buffer underrun, otherwise false. + */ +bool Butler::get_audio (float* out, Frame frames) { - _audio.get (out, _audio_channels, frames); + bool const underrun = _audio.get (out, _audio_channels, frames); _summon.notify_all (); + return underrun; } void |
