1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

Support FileInput plugin on Android, by using QFile rather istream

This commit is contained in:
Jon Beniston
2023-01-02 15:42:34 +00:00
parent 5be2b1674e
commit d574e74908
10 changed files with 771 additions and 543 deletions
@@ -50,7 +50,12 @@ public:
{ }
};
FileInputWorker(std::ifstream *samplesStream,
FileInputWorker(
#ifdef ANDROID
QFile *samplesStream,
#else
std::ifstream *samplesStream,
#endif
SampleSinkFifo* sampleFifo,
const QTimer& timer,
MessageQueue *fileInputMessageQueue,
@@ -68,7 +73,11 @@ public:
private:
volatile bool m_running;
#ifdef ANDROID
QFile *m_ifstream;
#else
std::ifstream* m_ifstream;
#endif
quint8 *m_fileBuf;
quint8 *m_convertBuf;
std::size_t m_bufsize;