1 #ifndef NSNDFILESTREAM_H
2 #define NSNDFILESTREAM_H
4 #include "../nSoundStream.h"
5 #include "../nSoundFormat.h"
10 class nSndfileStream : public nSoundStream
13 nSndfileStream(QString filename, QObject * parent = 0);
14 nSndfileStream(QIODevice * stream, QObject * parent = 0, bool ownsDevice = true);
15 virtual ~nSndfileStream();
17 quint64 frames(){return m_info_frames;}
18 int channels(){return m_info_channels;}
19 int frequency(){return m_info_samplerate;}
21 nSoundBag * createSoundBag(QObject * parent = 0);
23 nSoundFormat format();
24 bool suggestStreaming();
27 quint64 read(void* data, unsigned long frames);
32 QIODevice * m_iodevice;
40 quint64 m_info_frames;
41 int m_info_samplerate;
45 #endif // NSNDFILESTREAM_H