tips for debugging ECI apps

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: tips for debugging ECI apps
From: Kai Vehmanen (kai.vehmanen_AT_wakkanet.fi)
Date: Sun Oct 06 2002 - 02:42:59 EEST


I just added the following to the Ecasound Control Interface Guide in CVS:

--cut--
\subsection{Tips for debugging}

Here's a few tips what to do if the ECI app you have developed
is not working correctly.

\begin{enumerate}
\item Check your ecasound installation. Try to run the ``ecasound''
      console user-interface and verify that the basic functionality
      is working (ie. something like ``ecasound -i foo.wav -o
      /dev/dsp''.

\item If developing in C or C++, check that your application
      is correcly linked: ``ldd /path/to/myapp''. All the libraries
      should be properly found.

\item Check error conditions. You should remember to check
      for errors in your ECI apps using the eci\_error() and
      eci\_last\_error() functions. Especially when intializing
      ECI for the first time and after important commands
      like ``cs-connect'', you should always check for errors.

\item Launch ecasound in interactive mode (``ecasound -c''),
      and issue the commands your ECI application is using,
      manually one-by-one and see what happens. If something
      goes wrong, increase ecasound's debug level (for instance
      ``-d:511'') and re-run the test.
\end{enumerate}
--cut--

-- 
 http://www.eca.cx
 Audio software for Linux!


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Oct 06 2002 - 02:41:35 EEST