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:
Fred Gleason
2025-03-19 10:08:45 -04:00
parent ec0ba5395d
commit 54559331d0
3 changed files with 13 additions and 1 deletions

View File

@@ -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
}