nurupo / ProjectTox-Qt-GUI

A cross-platform front end for ProjectTox Core library, written in C++11 with use of Qt5
GNU General Public License v3.0
341 stars 116 forks source link

Sounds #70

Open nurupo opened 10 years ago

nurupo commented 10 years ago

Add support of sounds, nicely donated by Adam Reid https://github.com/nurupo/ProjectTox-Qt-GUI/pull/7

Ideally there should be a SoundManager singleton class, which would get path to where music is stored from Settings class and would be called from all around the code like

SoundManager::getInstance().play(Sound::FriendRequestReceived);

Note that some sounds should be looped until requested to stop.

A settings page should be implemented for configuring sounds. Enable/disable all or partially some sounds. There is no need in adding volume control, since it can be tweaked per application in modern operating systems.

Support of sounds packs would be a plus. (What should happen when you have a looping sound playing and you switch the sound pack?)