Skip to content

Commit eed90b9

Browse files
committed
Fix indentation.
1 parent d1d27b7 commit eed90b9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Voice.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,21 @@ void CVoice::linkedTo(unsigned int number, unsigned int room)
136136
::sprintf(letters, "%03u", number);
137137

138138
std::vector<std::string> words;
139-
if (m_positions.count("linkedto") == 0U) {
140-
words.push_back("linked");
141-
words.push_back("2");
142-
} else {
143-
words.push_back("linkedto");
144-
}
139+
if (m_positions.count("linkedto") == 0U) {
140+
words.push_back("linked");
141+
words.push_back("2");
142+
} else {
143+
words.push_back("linkedto");
144+
}
145145
words.push_back("X");
146146
words.push_back("L");
147147
words.push_back("X");
148148
words.push_back(std::string(1U, letters[0U]));
149149
words.push_back(std::string(1U, letters[1U]));
150150
words.push_back(std::string(1U, letters[2U]));
151151

152-
// 4001 => 1 => A, 4002 => 2 => B, etc.
153-
room %= 100U;
152+
// 4001 => 1 => A, 4002 => 2 => B, etc.
153+
room %= 100U;
154154

155155
if (room >= 1U && room <= 26U)
156156
words.push_back(std::string(1U, 'A' + room - 1U));
@@ -185,9 +185,9 @@ void CVoice::createVoice(const std::vector<std::string>& words)
185185
ambeLength = frames * (3U * AMBE_LENGTH);
186186
}
187187

188-
// Add space for silence before and after the voice
189-
ambeLength += SILENCE_LENGTH * AMBE_LENGTH;
190-
ambeLength += SILENCE_LENGTH * AMBE_LENGTH;
188+
// Add space for silence before and after the voice
189+
ambeLength += SILENCE_LENGTH * AMBE_LENGTH;
190+
ambeLength += SILENCE_LENGTH * AMBE_LENGTH;
191191

192192
unsigned char* ambeData = new unsigned char[ambeLength];
193193

0 commit comments

Comments
 (0)