mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Resave all projects
This commit is contained in:
parent
22a3660376
commit
273a702052
4 changed files with 40 additions and 7 deletions
|
|
@ -244,10 +244,8 @@ struct SlowerBouncingNumber : public BouncingNumber
|
|||
|
||||
inline std::unique_ptr<InputSource> makeInputSource (const URL& url)
|
||||
{
|
||||
#if JUCE_ANDROID
|
||||
if (auto doc = AndroidDocument::fromDocument (url))
|
||||
if (const auto doc = AndroidDocument::fromDocument (url))
|
||||
return std::make_unique<AndroidDocumentInputSource> (doc);
|
||||
#endif
|
||||
|
||||
#if ! JUCE_IOS
|
||||
if (url.isLocalFile())
|
||||
|
|
@ -257,4 +255,17 @@ inline std::unique_ptr<InputSource> makeInputSource (const URL& url)
|
|||
return std::make_unique<URLInputSource> (url);
|
||||
}
|
||||
|
||||
inline std::unique_ptr<OutputStream> makeOutputStream (const URL& url)
|
||||
{
|
||||
if (const auto doc = AndroidDocument::fromDocument (url))
|
||||
return doc.createOutputStream();
|
||||
|
||||
#if ! JUCE_IOS
|
||||
if (url.isLocalFile())
|
||||
return url.getLocalFile().createOutputStream();
|
||||
#endif
|
||||
|
||||
return url.createOutputStream();
|
||||
}
|
||||
|
||||
#endif // PIP_DEMO_UTILITIES_INCLUDED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue