Skip to content

Commit 43d078f

Browse files
iboBggerganov
authored andcommitted
whisper : remove speed_up and phase_vocoder* functions (whisper/2198)
* whisper : fix cast warning * whisper : remove phase_vocoder functions, ref #2195 * whisper : remove speed_up from whisper_full_params, closes #2195
1 parent 9ed11f3 commit 43d078f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class wav_writer {
185185
// It is assumed that PCM data is normalized to a range from -1 to 1
186186
bool write_audio(const float * data, size_t length) {
187187
for (size_t i = 0; i < length; ++i) {
188-
const int16_t intSample = data[i] * 32767;
188+
const int16_t intSample = int16_t(data[i] * 32767);
189189
file.write(reinterpret_cast<const char *>(&intSample), sizeof(int16_t));
190190
dataSize += sizeof(int16_t);
191191
}

0 commit comments

Comments
 (0)