Skip to content

Commit 8dac19a

Browse files
committed
Call callbacks in Whiser::Context#full and #full_parallel
1 parent a125e88 commit 8dac19a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bindings/ruby/ext/ruby_whisper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ VALUE ruby_whisper_full(int argc, VALUE *argv, VALUE self) {
641641
}
642642
}
643643
}
644+
register_callbacks(rwp, &self);
644645
const int result = whisper_full(rw->context, rwp->params, c_samples, n_samples);
645646
if (0 == result) {
646647
return Qnil;
@@ -729,6 +730,7 @@ static VALUE ruby_whisper_full_parallel(int argc, VALUE *argv,VALUE self) {
729730
}
730731
}
731732
}
733+
register_callbacks(rwp, &self);
732734
const int result = whisper_full_parallel(rw->context, rwp->params, c_samples, n_samples, n_processors);
733735
if (0 == result) {
734736
return Qnil;

0 commit comments

Comments
 (0)