@@ -101,8 +101,8 @@ bool Source::isPlaying()
101101 return playing;
102102}
103103
104- Player::Player (const Listener *listener)
105- : listener(listener)
104+ Player::Player (const Listener *listener, bool isMaster )
105+ : listener(listener), isMaster(isMaster)
106106{
107107}
108108
@@ -114,7 +114,7 @@ void Player::update()
114114 }
115115}
116116
117- Player *Player::createPlayer (Listener *listener, const std::string &type)
117+ Player *Player::createPlayer (Listener *listener, const std::string &type, bool isMa )
118118{
119119#ifdef HAVE_AUDIO
120120 if (type.empty ())
@@ -128,12 +128,12 @@ Player *Player::createPlayer(Listener *listener, const std::string &type)
128128 // config file and parse it itself.
129129 std::string host = coCoviseConfig::getEntry (" value" , " COVER.Audio.Host" , " localhost" );
130130 int port = coCoviseConfig::getInt (" port" , " COVER.Audio.Host" , 31231 );
131-
132- return new PlayerAServer (listener, host, port);
131+ return new PlayerAServer (listener, host, port, isMa);
133132 }
134133 else if (boost::iequals (type, " openal" ))
135134 {
136- return new PlayerOpenAL (listener);
135+ return new PlayerOpenAL (listener,isMa);
136+
137137 }
138138 else if (boost::iequals (type, " none" ))
139139 {
0 commit comments