File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## v3.0.1
2
+ Bugfixes:
3
+ - Make sure that Alsa playback device resumes after pause.
4
+
1
5
## v3.0.0
2
6
New features:
3
7
- Optional multithreaded filter processing.
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " CamillaDSP"
3
- version = " 3.0.0 "
3
+ version = " 3.0.1 "
4
4
authors = [
" Henrik Enquist <[email protected] >" ]
5
5
edition = " 2021"
6
6
description = " A flexible tool for processing audio"
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ fn play_buffer(
118
118
// This sleep applies for the first chunk and in combination with the threshold=1 (i.e. start at first write)
119
119
// and the next chunk generates the initial target delay.
120
120
buf_manager. sleep_for_target_delay ( millis_per_frame) ;
121
+ } else if playback_state == alsa_sys:: SND_PCM_STATE_PAUSED as i32 {
122
+ debug ! ( "PB: Device is in paused state, unpausing." ) ;
123
+ if let Err ( err) = pcmdevice. pause ( false ) {
124
+ warn ! ( "Error unpausing playback device {:?}" , err) ;
125
+ }
121
126
} else if playback_state != alsa_sys:: SND_PCM_STATE_RUNNING as i32 {
122
127
warn ! (
123
128
"PB: device is in an unexpected state: {}" ,
@@ -645,6 +650,7 @@ fn playback_loop_bytes(
645
650
Ok ( AudioMessage :: Pause ) => {
646
651
trace ! ( "PB: Pause message received" ) ;
647
652
if can_pause && !pcm_paused {
653
+ debug ! ( "Pausing playback device" ) ;
648
654
let pause_res = pcmdevice. pause ( true ) ;
649
655
trace ! ( "pcm_pause result {:?}" , pause_res) ;
650
656
if pause_res. is_ok ( ) {
You can’t perform that action at this time.
0 commit comments