mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user