lots of ios file related updates, now use URLs internally. icons added.

This commit is contained in:
essej
2022-04-13 13:48:09 -04:00
parent e2178da076
commit dd89d80959
18 changed files with 169 additions and 69 deletions

View File

@ -71,10 +71,10 @@ public:
return &m_readbuf;
return nullptr;
}
bool openAudioFile(File file) override
bool openAudioFile(const URL & url) override
{
m_silenceoutputted = 0;
AudioFormatReader* reader = m_manager->createReaderFor(file);
AudioFormatReader* reader = m_manager->createReaderFor(url.getLocalFile());
if (reader)
{
ScopedLock locker(m_mutex);

View File

@ -35,7 +35,7 @@ public:
{
};
[[nodiscard]] virtual bool openAudioFile(File file)=0;
[[nodiscard]] virtual bool openAudioFile(const URL & url)=0;
virtual void close()=0;
virtual int readNextBlock(AudioBuffer<float>& abuf, int smps, int numchans)=0;