git-svn-id: https://svn.code.sf.net/p/freetel/code@466 01035d8c-6547-0410-b346-abe4f9...
authorwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 15 May 2012 13:44:43 +0000 (13:44 +0000)
committerwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 15 May 2012 13:44:43 +0000 (13:44 +0000)
fdmdv2/thread_audio.h [new file with mode: 0644]

diff --git a/fdmdv2/thread_audio.h b/fdmdv2/thread_audio.h
new file mode 100644 (file)
index 0000000..5c2e9a4
--- /dev/null
@@ -0,0 +1,26 @@
+//==========================================================================\r
+// Name:            thread_audio.h\r
+//
+// Purpose:         Declares background thread classes to handle audio IO.
+// Created:         May 11, 2012
+// Initial author:  David Witten\r
+// License:         BSD License (other licenses may apply to other\r
+//                  components of this project)\r
+//==========================================================================\r
+#include <wx/thread.h>
+#include "fdmdv2_main.h"\r
+\r
+//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=\r
+// Class AudioThread\r
+//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=\r
+class AudioThread: public wxThread\r
+{\r
+    public:\r
+        AudioThread(MainFrame *handler) : wxThread(wxTHREAD_DETACHED) { m_pHandler = handler }\r
+        ~AudioThread();\r
+\r
+    protected:\r
+        virtual ExitCode Entry();\r
+        MainFrame *m_pHandler;\r
+};\r
+\r