mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 06:56:41 +00:00 
			
		
		
		
	Remove a function from the sound manager interface
This commit is contained in:
		
							parent
							
								
									e6caacec04
								
							
						
					
					
						commit
						074be7d7c6
					
				
					 3 changed files with 7 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -82,9 +82,6 @@ namespace MWBase
 | 
			
		|||
            ///< Play a soundifle
 | 
			
		||||
            /// \param filename name of a sound file in "Music/" in the data directory.
 | 
			
		||||
 | 
			
		||||
            virtual void startRandomTitle() = 0;
 | 
			
		||||
            ///< Starts a random track from the current playlist
 | 
			
		||||
 | 
			
		||||
            virtual bool isMusicPlaying() = 0;
 | 
			
		||||
            ///< Returns true if music is playing
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -391,11 +391,6 @@ namespace MWSound
 | 
			
		|||
        mMusic->setFadeout(0.5f);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void SoundManager::streamMusic(const std::string& filename)
 | 
			
		||||
    {
 | 
			
		||||
        advanceMusic("Music/"+filename);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void SoundManager::startRandomTitle()
 | 
			
		||||
    {
 | 
			
		||||
        std::vector<std::string> filelist;
 | 
			
		||||
| 
						 | 
				
			
			@ -446,6 +441,12 @@ namespace MWSound
 | 
			
		|||
        tracklist.pop_back();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    void SoundManager::streamMusic(const std::string& filename)
 | 
			
		||||
    {
 | 
			
		||||
        advanceMusic("Music/"+filename);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    bool SoundManager::isMusicPlaying()
 | 
			
		||||
    {
 | 
			
		||||
        return mMusic && mOutput->isStreamPlaying(mMusic);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -127,6 +127,7 @@ namespace MWSound
 | 
			
		|||
 | 
			
		||||
        void streamMusicFull(const std::string& filename);
 | 
			
		||||
        void advanceMusic(const std::string& filename);
 | 
			
		||||
        void startRandomTitle();
 | 
			
		||||
 | 
			
		||||
        void updateSounds(float duration);
 | 
			
		||||
        void updateRegionSound(float duration);
 | 
			
		||||
| 
						 | 
				
			
			@ -157,9 +158,6 @@ namespace MWSound
 | 
			
		|||
        ///< Play a soundifle
 | 
			
		||||
        /// \param filename name of a sound file in "Music/" in the data directory.
 | 
			
		||||
 | 
			
		||||
        virtual void startRandomTitle();
 | 
			
		||||
        ///< Starts a random track from the current playlist
 | 
			
		||||
 | 
			
		||||
        virtual bool isMusicPlaying();
 | 
			
		||||
        ///< Returns true if music is playing
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue