data/train/cpp/7609123759669d8a1eeedcf2704488c87d7f62dcPlayer.cpp
void CPlayer::setStream(const Uint8 *stream, const unsigned streamLen)
{
	cleanStream();

	m_StreamLen = streamLen;
	m_Stream = new Uint8 [m_StreamLen];

	if (memcpy_s(m_Stream, m_StreamLen, stream, m_StreamLen)) {
		cleanStream();
	}
}
// Set stream which should be played
Set stream which should be played
Set stream which should be played
void CPlayer::setStream(const Uint8 *stream, const unsigned streamLen)
{
	cleanStream();
	m_StreamLen = streamLen;
	m_Stream = new Uint8 [m_StreamLen];
	if (memcpy_s(m_Stream, m_StreamLen, stream, m_StreamLen)) {
		cleanStream();
	}
}
void CPlayer :: setStream ( const Uint8 * stream , const unsigned streamLen ) { cleanStream ( ) ; m_StreamLen = streamLen ; m_Stream = new Uint8 [ m_StreamLen ] ; if ( memcpy_s ( m_Stream , m_StreamLen , stream , m_StreamLen ) ) { cleanStream ( ) ; } }
Set stream which should be played
Set stream which should be played