--- a/mpd2src/fiforeader.h
+++ b/mpd2src/fiforeader.h
@@ -22,9 +22,7 @@
#include <string>
-// This just somewhat encapsulates the code in the original
-// WavSender.cpp The file is still read and converted in memory at
-// once, and held in a memory array
+// Read audio from a FIFO, either in blocking or unblocking mode.
class FifoReader : public AudioReader {
public:
FifoReader(const std::string& fn, int chans,
@@ -41,9 +39,9 @@
std::string m_fn;
bool m_needswap;
bool m_blocking;
- int m_fd;
- unsigned char *m_tmpbuf;
- size_t m_tmpbufsize;
+ int m_fd{-1};
+ unsigned char *m_tmpbuf{0};
+ size_t m_tmpbufsize{0};
};
#endif /* _FIFOREADER_H_INCLUDED_ */