Skip to content

Commit ef18657

Browse files
Update audio_utils.cpp
1 parent 7a0f78e commit ef18657

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/audio/audio_utils.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
#define DR_WAV_IMPLEMENTATION
1818
#define DR_MP3_IMPLEMENTATION
19-
#pragma warning(push)
20-
#pragma warning(disable : 6262)
2119
#include "src/port/dr_audio.hpp"
22-
#pragma warning(pop)
2320
#include "audio_utils.hpp"
2421
#include "src/timer.hpp"
2522
#include "src/logging.hpp"
@@ -131,7 +128,8 @@ ov::genai::RawSpeechInput readWav(const std::string_view& wavData) {
131128
std::vector<float> output(buffer, buffer + outputLength);
132129
return output;
133130
}
134-
131+
#pragma warning(push)
132+
#pragma warning(disable : 6262)
135133
ov::genai::RawSpeechInput readMp3(const std::string_view& mp3Data) {
136134
Timer<TIMER_END> timer;
137135
timer.start(TENSOR_PREPARATION);
@@ -165,7 +163,7 @@ ov::genai::RawSpeechInput readMp3(const std::string_view& mp3Data) {
165163
std::vector<float> output(buffer, buffer + outputLength);
166164
return output;
167165
}
168-
166+
#pragma warning(pop)
169167
void prepareAudioOutput(void** ppData, size_t& pDataSize, uint16_t bitsPerSample, size_t speechSize, ov::Tensor& cpuTensor) {
170168
enum : unsigned int {
171169
OUTPUT_PREPARATION,

0 commit comments

Comments
 (0)