1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

New method for TableListBox and ComboBox, made AudioSampleBuffer::writeToAudioWriter and ResamplingAudioSource handle multiple channels.

This commit is contained in:
Julian Storer 2010-06-30 09:25:40 +01:00
parent fad682c1e1
commit e502d753d7
14 changed files with 261 additions and 192 deletions

View file

@ -1928,6 +1928,10 @@ const char* String::toUTF8() const
mutableThis->text = StringHolder::makeUniqueWithSize (mutableThis->text, currentLen + 1 + utf8BytesNeeded / sizeof (juce_wchar));
char* const otherCopy = reinterpret_cast <char*> (mutableThis->text + currentLen);
#if JUCE_DEBUG // (This just avoids spurious warnings from valgrind about the uninitialised bytes at the end of the buffer..)
*(juce_wchar*) (otherCopy + (utf8BytesNeeded & ~(sizeof (juce_wchar) - 1))) = 0;
#endif
copyToUTF8 (otherCopy, std::numeric_limits<int>::max());
return otherCopy;