// hpiplayout_test.h // // Test the Rivendell HPI playout routines // // (C) Copyright 2024-2025 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // 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., 675 Mass Ave, Cambridge, MA 02139, USA. // #ifndef HPIPLAYOUT_TEST_H #define HPIPLAYOUT_TEST_H #include #include "rdconfig.h" #include "rdwavefile.h" #ifdef HPI #include "rdhpiplaystream.h" #include "rdhpisoundcard.h" #endif // HPI #define HPIPLAYOUT_TEST_USAGE "[options]\n\nTest the Rivendell HPI play-out routines\n\nOptions are:\n--filename=\n WAV file to play\n\n--card=\n Card number [0-15]\n\n--port=\n Port number [0-16]\n\n" class MainObject : public QObject { Q_OBJECT; public: MainObject(QObject *parent=0); private slots: void isStoppedData(bool state); void playedData(); void pausedData(); void stoppedData(); void positionData(int samples); void stateChangedData(int card,int stream,int state); private: QString d_filename; int d_card; int d_stream; int d_port; #ifdef HPI RDHPISoundCard *d_soundcard; RDHPIPlayStream *d_playstream; #endif // HPI RDWaveData *d_wavedata; RDConfig *d_rdconfig; }; #endif // HPIPLAYOUT_TEST_H