summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'audio/utils/include/tiaudioutils/MonoPipe.h')
-rw-r--r--audio/utils/include/tiaudioutils/MonoPipe.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/utils/include/tiaudioutils/MonoPipe.h b/audio/utils/include/tiaudioutils/MonoPipe.h
index c0c352b..7fcef8c 100644
--- a/audio/utils/include/tiaudioutils/MonoPipe.h
+++ b/audio/utils/include/tiaudioutils/MonoPipe.h
@@ -138,6 +138,26 @@ class MonoPipe {
138 */ 138 */
139 virtual int availableToWrite() const; 139 virtual int availableToWrite() const;
140 140
141 /**
142 * \brief Shut down the pipe
143 *
144 * Shuts down the pipe, causing any blocking write() calls to unblock
145 * and return.
146 *
147 * \param state true if the pipe is to be shutdown, false otherwise
148 */
149 virtual void shutdown(bool state);
150
151 /**
152 *
153 * \brief Test if the pipe is shutdown
154 *
155 * Tests if the pipe is currently shutdown.
156 *
157 * \return true if the pipe is shutdown, false otherwise
158 */
159 virtual bool isShutdown();
160
141 protected: 161 protected:
142 /** Ratio between pipe frame count and params frame count */ 162 /** Ratio between pipe frame count and params frame count */
143 static const uint32_t kPipeSizeFactor = 3; 163 static const uint32_t kPipeSizeFactor = 3;