Skip to content

Commit

Permalink
New audio.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Dec 11, 2022
1 parent 149b56e commit 4283c4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Audio/audio.qrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/">
<file>discovered.wav</file>
<file>error.wav</file>
</qresource>
</RCC>
Binary file added Audio/error.wav
Binary file not shown.
6 changes: 6 additions & 0 deletions Source/biblioteq_batch_activities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,10 @@ void biblioteq_batch_activities::slotScanBorrowingTimerTimeout(void)
else
copyIdentifier->setText
(tr("A copy is not available (%1).").arg(str));

#ifdef BIBLIOTEQ_AUDIO_SUPPORTED
play("qrc:/error.wav");
#endif
}

m_ui.borrow_table->blockSignals(false);
Expand Down Expand Up @@ -995,6 +999,8 @@ void biblioteq_batch_activities::slotScanDiscoverTimerTimeout(void)
#ifdef BIBLIOTEQ_AUDIO_SUPPORTED
if(!item->text().isEmpty())
play("qrc:/discovered.wav");
else
play("qrc:/error.wav");
#endif

m_ui.discover_table->setItem(m_ui.discover_table->rowCount() - 1, 1, item);
Expand Down

0 comments on commit 4283c4b

Please sign in to comment.