Skip to content

Commit 54992e1

Browse files
committed
Workaround aws#1816
1 parent cb50191 commit 54992e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ namespace Aws
152152
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Audio retrieved from Polly. " << result.GetContentType() << " with "
153153
<< result.GetRequestCharacters() << " characters syntesized");
154154

155-
std::streamsize amountRead(0);
155+
// std::streamsize amountRead(0);
156156
unsigned char buffer[BUFF_SIZE];
157157

158158
std::lock_guard<std::mutex> m(m_driverLock);
@@ -165,7 +165,7 @@ namespace Aws
165165
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Writing " << read << " bytes to device.");
166166

167167
successfullyPlayed = m_activeDriver->WriteBufferToDevice(buffer, (std::size_t)read);
168-
amountRead += read;
168+
// amountRead += read;
169169
played = successfullyPlayed;
170170
}
171171

0 commit comments

Comments
 (0)