From c0e495609892e2921b5565ee725295f812cc797b Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Fri, 1 Dec 2023 16:23:18 +0800 Subject: [PATCH] Fix style issues --- sherpa-onnx/csrc/sherpa-onnx-offline-tts-play.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sherpa-onnx/csrc/sherpa-onnx-offline-tts-play.cc b/sherpa-onnx/csrc/sherpa-onnx-offline-tts-play.cc index fee63dd62..c6c80b47a 100644 --- a/sherpa-onnx/csrc/sherpa-onnx-offline-tts-play.cc +++ b/sherpa-onnx/csrc/sherpa-onnx-offline-tts-play.cc @@ -5,12 +5,12 @@ #include #include -#include // NOLINT -#include +#include // NOLINT +#include // NOLINT #include -#include +#include // NOLINT #include -#include +#include // NOLINT #include #include "portaudio.h" // NOLINT @@ -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*/) { @@ -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));