mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 16:41:18 +02:00
2025-03-19 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'hpiplayout-test' test harness that caused the build to fail when HPI support was disabled. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -24967,3 +24967,6 @@
|
||||
2025-03-18 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Refactored the 'RDCart::updateLength()' so as to process evergreen
|
||||
cuts properly.
|
||||
2025-03-19 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in the 'hpiplayout-test' test harness that caused the
|
||||
build to fail when HPI support was disabled.
|
||||
|
@@ -28,6 +28,7 @@
|
||||
MainObject::MainObject(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
#ifdef HPI
|
||||
QHostAddress from_addr;
|
||||
int card=0;
|
||||
int port=0;
|
||||
@@ -90,6 +91,10 @@ MainObject::MainObject(QObject *parent)
|
||||
d_playstream->getStream());
|
||||
d_soundcard->setOutputVolume(card,d_playstream->getStream(),port,0);
|
||||
d_playstream->play();
|
||||
#else
|
||||
fprintf(stderr,"hpiplayout_test: this test requires that HPI support be enabled.\n");
|
||||
exit(1);
|
||||
#endif //HPI
|
||||
}
|
||||
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test the Rivendell HPI playout routines
|
||||
//
|
||||
// (C) Copyright 2024 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2024-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -26,8 +26,10 @@
|
||||
#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=<filename>\n WAV file to play\n\n--card=<card-num>\n Card number [0-15]\n\n--port=<port-num>\n Port number [0-16]\n\n"
|
||||
|
||||
@@ -50,8 +52,10 @@ class MainObject : public QObject
|
||||
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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user