--- a/sc2src/rcvqueue.h
+++ b/sc2src/rcvqueue.h
@@ -30,8 +30,9 @@
// ownership. The caller MUST NOT free it. Its size must be at
// least (bits/8) * chans * samples
AudioMessage(unsigned int bits, unsigned int channels, unsigned int frames,
- unsigned int sampfreq, char *buf, unsigned int allocbytes)
- : m_bits(bits), m_chans(channels), m_freq(sampfreq),
+ unsigned int sampfreq, bool halt, char *buf,
+ unsigned int allocbytes)
+ : m_bits(bits), m_chans(channels), m_freq(sampfreq), m_halt(halt),
m_bytes(buf ? (bits/8) * channels * frames : 0),
m_allocbytes(allocbytes), m_buf(buf), m_curoffs(0) {
}
@@ -54,6 +55,7 @@
unsigned int m_bits;
unsigned int m_chans;
unsigned int m_freq;
+ bool m_halt; // no more audio will follow
unsigned int m_bytes; // Useful bytes
unsigned int m_allocbytes; // buffer size
char *m_buf;