Skip to content

Commit

Permalink
Rename according to Kaldi changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Feb 10, 2022
1 parent f574d89 commit 1f447a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/batch_recognizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void BatchRecognizer::WaitForCompletion()
dynamic_batcher_->WaitForCompletion();
}

int BatchRecognizer::GetPendingChunks(uint64_t id)
int BatchRecognizer::GetNumPendingChunks(uint64_t id)
{
return dynamic_batcher_->GetPendingChunks(id);
return dynamic_batcher_->GetNumPendingChunks(id);
}
2 changes: 1 addition & 1 deletion src/batch_recognizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BatchRecognizer {
const char *FrontResult(uint64_t id);
void Pop(uint64_t id);
void WaitForCompletion();
int GetPendingChunks(uint64_t id);
int GetNumPendingChunks(uint64_t id);

private:
struct Stream {
Expand Down
2 changes: 1 addition & 1 deletion src/vosk_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void vosk_batch_recognizer_wait(VoskBatchRecognizer *recognizer)
int vosk_batch_recognizer_get_pending_chunks(VoskBatchRecognizer *recognizer, int id)
{
#if HAVE_CUDA
return ((BatchRecognizer *)recognizer)->GetPendingChunks(id);
return ((BatchRecognizer *)recognizer)->GetNumPendingChunks(id);
#else
return 0;
#endif
Expand Down

0 comments on commit 1f447a8

Please sign in to comment.