// ------------------------------------------------------------------------ // audioio-device_test.h: Unit test for AUDIO_IO_DEVICE // Copyright (C) 2002 Kai Vehmanen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // ------------------------------------------------------------------------ #include #include "audioio-device.h" #include "eca-object-factory.h" #include "eca-object-map.h" #include "kvu_numtostr.h" #include "eca-logger.h" #include "eca-test-case.h" using namespace std; /** * Unit test for AUDIO_IO_DEVICE. * * FIXME: implementation not ready */ class AUDIO_IO_DEVICE_TEST : public ECA_TEST_CASE { protected: virtual string do_name(void) const { return("Unit test for AUDIO_IO_DEVICE"); } virtual void do_run(void); public: virtual ~AUDIO_IO_DEVICE(void) { } }; void AUDIO_IO_DEVICETEST::do_run(void) { /** * - like audioio_test.h, but with additional tests for prepare, * start and stop member functions * - generate different permutations of 'audio_format' and * 'buffersize' - especially buffersize can cause problems * to devices * - test prefilling (if supported) * - verify that position_in_samples increases during * processing */ }