mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Android: Fix file loading in DSP demos
This commit is contained in:
parent
e3e8b8a91d
commit
06a71ccce0
3 changed files with 34 additions and 55 deletions
|
|
@ -48,22 +48,6 @@
|
|||
|
||||
#include "../Assets/DemoUtilities.h"
|
||||
|
||||
inline std::unique_ptr<InputSource> makeInputSource (const URL& url)
|
||||
{
|
||||
#if JUCE_ANDROID
|
||||
if (auto doc = AndroidDocument::fromDocument (url))
|
||||
return std::make_unique<AndroidDocumentInputSource> (doc);
|
||||
#endif
|
||||
|
||||
#if ! JUCE_IOS
|
||||
if (url.isLocalFile())
|
||||
return std::make_unique<FileInputSource> (url.getLocalFile());
|
||||
#endif
|
||||
|
||||
return std::make_unique<URLInputSource> (url);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class DemoThumbnailComp : public Component,
|
||||
public ChangeListener,
|
||||
public FileDragAndDropTarget,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue