mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 11:32:48 -04:00
Some more optimizations of SoundManager
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8392 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
acfa384f7f
commit
24a07702f2
7 changed files with 33 additions and 31 deletions
|
@ -70,8 +70,9 @@ SoundManager::SoundManager() : QObject()
|
|||
|
||||
void SoundManager::soundEvents(SoundEvents &events)
|
||||
{
|
||||
QDir baseDir = QDir(qApp->applicationDirPath());
|
||||
baseDir.cd("sounds");
|
||||
QDir baseDir = QDir(qApp->applicationDirPath() + "/sounds");
|
||||
|
||||
events.mDefaultPath = baseDir.absolutePath();
|
||||
|
||||
/* add standard events */
|
||||
events.addEvent(tr("Friend"), tr("Go Online"), SOUND_USER_ONLINE, QFileInfo(baseDir, "online1.wav").absoluteFilePath());
|
||||
|
@ -132,13 +133,13 @@ void SoundManager::initDefault()
|
|||
}
|
||||
}
|
||||
|
||||
void SoundManager::setMute(bool mute)
|
||||
void SoundManager::setMute(bool m)
|
||||
{
|
||||
Settings->beginGroup(GROUP_MAIN);
|
||||
Settings->setValue("mute", mute);
|
||||
Settings->setValue("mute", m);
|
||||
Settings->endGroup();
|
||||
|
||||
emit SoundManager::mute(mute);
|
||||
emit mute(m);
|
||||
}
|
||||
|
||||
bool SoundManager::isMute()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue