mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Added a way to store a Font descriptor as a string. Tweaked sample-rate initialisation in the AU hosting wrapper. Gave default constructors to a few components.
This commit is contained in:
parent
5a9e18d3a5
commit
22e02cf791
13 changed files with 201 additions and 32 deletions
|
|
@ -28,6 +28,7 @@
|
|||
BEGIN_JUCE_NAMESPACE
|
||||
|
||||
#include "juce_ValueTree.h"
|
||||
#include "../io/streams/juce_MemoryInputStream.h"
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -860,4 +861,10 @@ ValueTree ValueTree::readFromStream (InputStream& input)
|
|||
return v;
|
||||
}
|
||||
|
||||
ValueTree ValueTree::readFromData (const void* const data, const size_t numBytes)
|
||||
{
|
||||
MemoryInputStream in (data, numBytes, false);
|
||||
return readFromStream (in);
|
||||
}
|
||||
|
||||
END_JUCE_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -310,10 +310,12 @@ public:
|
|||
*/
|
||||
void writeToStream (OutputStream& output);
|
||||
|
||||
/** Reloads a tree from a stream that was written with writeToStream().
|
||||
*/
|
||||
/** Reloads a tree from a stream that was written with writeToStream(). */
|
||||
static ValueTree readFromStream (InputStream& input);
|
||||
|
||||
/** Reloads a tree from a data block that was written with writeToStream(). */
|
||||
static ValueTree readFromData (const void* data, size_t numBytes);
|
||||
|
||||
//==============================================================================
|
||||
/** Listener class for events that happen to a ValueTree.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue