lots of ios file related updates, now use URLs internally. icons added.
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user