Skip to content

Commit

Permalink
Fixed 'stream_title' meta tag when the playback is started (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergeanur authored and ccw808 committed Jun 25, 2018
1 parent 6152f14 commit bf22895
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Client/mods/deathmatch/logic/CBassAudio.cpp
Expand Up @@ -424,6 +424,19 @@ void CBassAudio::CompleteStreamConnect(HSTREAM pSound)
}
}
}

const char* szMeta = BASS_ChannelGetTags(pSound, BASS_TAG_META);
if (szMeta)
{
SString strMeta = szMeta;
if (!strMeta.empty())
{
m_pVars->criticalSection.Lock();
m_pVars->onClientSoundChangedMetaQueue.push_back(strMeta);
m_pVars->criticalSection.Unlock();
}
}

// set sync for stream titles
m_hSyncMeta = BASS_ChannelSetSync(pSound, BASS_SYNC_META, 0, &MetaSync, m_uiCallbackId); // Shoutcast
// g_pCore->GetConsole()->Printf ( "BASS ERROR %d in BASS_SYNC_META", BASS_ErrorGetCode() );
Expand Down

0 comments on commit bf22895

Please sign in to comment.