Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Dec 1, 2023
1 parent db7855f commit c0e4956
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sherpa-onnx/csrc/sherpa-onnx-offline-tts-play.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
#include <signal.h>

#include <algorithm>
#include <chrono> // NOLINT
#include <condition_variable>
#include <chrono> // NOLINT
#include <condition_variable> // NOLINT
#include <fstream>
#include <mutex>
#include <mutex> // NOLINT
#include <queue>
#include <thread>
#include <thread> // NOLINT
#include <vector>

#include "portaudio.h" // NOLINT
Expand Down Expand Up @@ -52,7 +52,8 @@ void AudioGeneratedCallback(const float *s, int32_t n) {
}
}

static int PlayCallback(const void * /*in*/, void *out, unsigned long n,
static int PlayCallback(const void * /*in*/, void *out,
unsigned long n, // NOLINT
const PaStreamCallbackTimeInfo * /*timeInfo*/,
PaStreamCallbackFlags /*statusFlags*/,
void * /*userData*/) {
Expand Down Expand Up @@ -132,8 +133,8 @@ static void StartPlayback(int32_t sample_rate) {

err = Pa_OpenStream(&stream, nullptr, /* no input */
&outputParameters, sample_rate, frames_per_buffer,
paClipOff, /* we won't output out of range samples so
don't bother clipping them */
paClipOff, // we won't output out of range samples so
// don't bother clipping them
PlayCallback, nullptr);
if (err != paNoError) {
fprintf(stderr, "%d portaudio error: %s\n", __LINE__, Pa_GetErrorText(err));
Expand Down

0 comments on commit c0e4956

Please sign in to comment.