~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/soundmanager.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-09-17 10:35:51 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130917103551-az7p3nz9jgxwqjfn
Tags: 1.3.9.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "soundmanager.h"
24
24
 
25
25
#include "configuration.h"
26
 
#include "localplayer.h"
 
26
 
 
27
#include "being/localplayer.h"
27
28
 
28
29
#include "resources/sdlmusic.h"
29
30
#include "resources/resourcemanager.h"
292
293
 
293
294
void SoundManager::fadeOutMusic(const int ms)
294
295
{
 
296
    if (!mPlayMusic)
 
297
        return;
 
298
 
295
299
    mCurrentMusicFile.clear();
296
300
 
297
301
    if (!mInstalled)
316
320
void SoundManager::fadeOutAndPlayMusic(const std::string &fileName,
317
321
                                       const int ms)
318
322
{
 
323
    if (!mPlayMusic)
 
324
        return;
 
325
 
319
326
    mNextMusicFile = fileName;
320
327
    fadeOutMusic(ms);
321
328
}