summaryrefslogtreecommitdiffstats
path: root/amarok/src/engine/helix/hxplayercontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/engine/helix/hxplayercontrol.cpp')
-rw-r--r--amarok/src/engine/helix/hxplayercontrol.cpp236
1 files changed, 118 insertions, 118 deletions
diff --git a/amarok/src/engine/helix/hxplayercontrol.cpp b/amarok/src/engine/helix/hxplayercontrol.cpp
index 6c76eac2..9b647004 100644
--- a/amarok/src/engine/helix/hxplayercontrol.cpp
+++ b/amarok/src/engine/helix/hxplayercontrol.cpp
@@ -65,11 +65,11 @@ void HSPPlayerControlled::onBuffering(int percentage)
}
-PlayerControl::PlayerControl() : m_eq_enabled(false), m_preamp(0), m_err(0), iamparent(0), m_index(0), nNumPlayers(0),
+PlayerControl::PlayerControl() : m_eq_enabled(false), m_preamp(0), m_err(0), iamtqparent(0), m_index(0), nNumPlayers(0),
m_inited(false), m_api( HelixSimplePlayer::OSS ), m_device(0), mimehead(0), mimelistlen(0),
m_numPlugins(0), m_pluginInfo(0)
{
- memset(m_children, 0, sizeof(m_children));
+ memset(m_tqchildren, 0, sizeof(m_tqchildren));
}
PlayerControl::~PlayerControl()
@@ -88,7 +88,7 @@ PlayerControl::~PlayerControl()
void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, const char *codecspath, int numPlayers)
{
int err;
- iamparent = 0;
+ iamtqparent = 0;
nNumPlayers = numPlayers;
m_err = 0;
@@ -100,7 +100,7 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
return;
}
- memset(&m_children, 0, numPlayers * sizeof(struct playerChildren));
+ memset(&m_tqchildren, 0, numPlayers * sizeof(struct playerChildren));
m_inited = false;
@@ -121,30 +121,30 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
{
if (pmapped)
{
- m_children[i].current_time = &(pmapped[i].current_time);
- m_children[i].duration = &(pmapped[i].duration);
- m_children[i].md = &(pmapped[i].md);
+ m_tqchildren[i].current_time = &(pmapped[i].current_time);
+ m_tqchildren[i].duration = &(pmapped[i].duration);
+ m_tqchildren[i].md = &(pmapped[i].md);
- m_children[i].m_current = &(pmapped[i].m_current);
- m_children[i].m_consumed = &(pmapped[i].m_consumed);
- //m_children[i].q = pmapped[i].q;
+ m_tqchildren[i].m_current = &(pmapped[i].m_current);
+ m_tqchildren[i].m_consumed = &(pmapped[i].m_consumed);
+ //m_tqchildren[i].q = pmapped[i].q;
//for (int j=0; j<NUM_SCOPEBUFS; j++)
//{
- // m_children[i].q[j].allocd = false;
- // m_children[i].q[j].buf = pmapped[i].b[j];
+ // m_tqchildren[i].q[j].allocd = false;
+ // m_tqchildren[i].q[j].buf = pmapped[i].b[j];
//}
}
- err = pipe(m_children[i].m_pipeA);
- err |= pipe(m_children[i].m_pipeB);
- if ( !err && (iamparent = fork()) )
+ err = pipe(m_tqchildren[i].m_pipeA);
+ err |= pipe(m_tqchildren[i].m_pipeB);
+ if ( !err && (iamtqparent = fork()) )
{
- // parent
- print2stderr("%%%%%% parent initializes player %d\n", i);
+ // tqparent
+ print2stderr("%%%%%% tqparent initializes player %d\n", i);
- // parent's m_pid remains 0
- m_children[i].m_pid = iamparent;
- close(m_children[i].m_pipeA[1]); // parent uses A for reading
- close(m_children[i].m_pipeB[0]); // and B for writing
+ // tqparent's m_pid remains 0
+ m_tqchildren[i].m_pid = iamtqparent;
+ close(m_tqchildren[i].m_pipeA[1]); // tqparent uses A for reading
+ close(m_tqchildren[i].m_pipeB[0]); // and B for writing
}
else if (!err)
{
@@ -153,17 +153,17 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
cerr << "%%%%%% child initializes as player " << i << endl;;
m_index = i; // child's index is saved
- close(m_children[i].m_pipeA[0]); // child uses A for writing
- close(m_children[i].m_pipeB[1]); // and B for reading
+ close(m_tqchildren[i].m_pipeA[0]); // child uses A for writing
+ close(m_tqchildren[i].m_pipeB[1]); // and B for reading
break;
}
}
- if (!iamparent) // children stay here, parents return
+ if (!iamtqparent) // tqchildren stay here, tqparents return
{
- int rfd = m_children[m_index].m_pipeB[0];
- int wfd = m_children[m_index].m_pipeA[1];
+ int rfd = m_tqchildren[m_index].m_pipeB[0];
+ int wfd = m_tqchildren[m_index].m_pipeA[1];
int n;
struct timeval timeout;
HSPPlayerControlled *player = 0;
@@ -237,7 +237,7 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
if (m_inited)
{
if (pmapped)
- *m_children[m_index].current_time = 0;
+ *m_tqchildren[m_index].current_time = 0;
if (sz == sizeof(unsigned long) + 1)
{
@@ -353,7 +353,7 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
cerr << "CHILD " << m_index << " sz not right in ENABLEEQ, sz=" << sz << endl;
}
break;
- case UPDATEEQGAINS:
+ case UPDATEETQGAINS:
{
int i, n, k;
@@ -367,7 +367,7 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
player->m_preamp = m_preamp;
}
else
- cerr << "CHILD " << m_index << " sz not right in UPDATEEQGAINS, sz=" << sz << endl;
+ cerr << "CHILD " << m_index << " sz not right in UPDATEETQGAINS, sz=" << sz << endl;
if ((unsigned)sz == sizeof(m_preamp) + sizeof(int) + n * sizeof(int))
{
@@ -388,7 +388,7 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
}
}
else
- cerr << "CHILD " << m_index << " sz not right in UPDATEEQGAINS, sz=" << sz << endl;
+ cerr << "CHILD " << m_index << " sz not right in UPDATEETQGAINS, sz=" << sz << endl;
}
}
break;
@@ -397,7 +397,7 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
{
player->clearScopeQ(0);
if (pmapped)
- *m_children[m_index].m_consumed = *m_children[m_index].m_current = 0;
+ *m_tqchildren[m_index].m_consumed = *m_tqchildren[m_index].m_current = 0;
}
break;
case TEARDOWN:
@@ -413,7 +413,7 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
cerr << "CHILD " << m_index << " sz not right in TEARDOWN, sz=" << sz << endl;
break;
- default: // send an error to the parent
+ default: // send an error to the tqparent
cerr << "CHILD " << m_index << " received unhandled message, sz=" << sz << endl;
break;
}
@@ -437,36 +437,36 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
playing = false;
if (pmapped)
{
- *m_children[m_index].current_time = 0;
- *m_children[m_index].duration = 0;
+ *m_tqchildren[m_index].current_time = 0;
+ *m_tqchildren[m_index].duration = 0;
}
}
if (pmapped)
{
- *m_children[m_index].current_time = player->where(0);
- *m_children[m_index].duration = player->duration(0);
+ *m_tqchildren[m_index].current_time = player->where(0);
+ *m_tqchildren[m_index].duration = player->duration(0);
HelixSimplePlayer::metaData *md = player->getMetaData(0);
if (md)
- memcpy((void *) m_children[m_index].md, (void *) md, sizeof(HelixSimplePlayer::metaData));
+ memcpy((void *) m_tqchildren[m_index].md, (void *) md, sizeof(HelixSimplePlayer::metaData));
struct DelayQueue *item;
//int j;
while ((item = player->getScopeBuf(0)))
{
- //j = (*m_children[m_index].m_current + 1) % NUM_SCOPEBUFS;
+ //j = (*m_tqchildren[m_index].m_current + 1) % NUM_SCOPEBUFS;
//cerr << "player:" << m_index << " j=" << j << " time=" << item->time << " etime=" << item->etime << " len=" << item->len << endl;
- //m_children[m_index].q[j].len = item->len;
- //m_children[m_index].q[j].time = item->time;
- //m_children[m_index].q[j].etime = item->etime;
- //m_children[m_index].q[j].nchan = item->nchan;
- //m_children[m_index].q[j].bps = item->bps;
- //m_children[m_index].q[j].tps = item->tps;
- //m_children[m_index].q[j].spb = item->spb;
- //memcpy((void *)m_children[m_index].q[j].buf, (void *) item->buf, item->len );
- //*m_children[m_index].m_current = j;
+ //m_tqchildren[m_index].q[j].len = item->len;
+ //m_tqchildren[m_index].q[j].time = item->time;
+ //m_tqchildren[m_index].q[j].etime = item->etime;
+ //m_tqchildren[m_index].q[j].nchan = item->nchan;
+ //m_tqchildren[m_index].q[j].bps = item->bps;
+ //m_tqchildren[m_index].q[j].tps = item->tps;
+ //m_tqchildren[m_index].q[j].spb = item->spb;
+ //memcpy((void *)m_tqchildren[m_index].q[j].buf, (void *) item->buf, item->len );
+ //*m_tqchildren[m_index].m_current = j;
//cerr << "player:" << m_index << " time=" << item->time << " etime=" << item->etime << endl;
sendscopebuf(wfd, item);
delete item;
@@ -488,15 +488,15 @@ void PlayerControl::init(const char *corelibpath, const char *pluginslibpath, co
sendsetdevice();
sendinit();
- // wait for ready from children
+ // wait for ready from tqchildren
while (!done && !dead)
{
dispatch();
done = true;
for (i=0; i<numPlayers; i++)
{
- done &= m_children[i].isready;
- dead |= m_children[i].isdead;
+ done &= m_tqchildren[i].isready;
+ dead |= m_tqchildren[i].isdead;
}
}
@@ -534,18 +534,18 @@ int PlayerControl::initDirectSS()
void PlayerControl::tearDown()
{
int tmp;
- if (iamparent)
+ if (iamtqparent)
{
for (int i = 0; i < nNumPlayers; i++)
{
if (m_inited)
{
- sendteardown(m_children[i].m_pipeB[1]);
- close(m_children[i].m_pipeB[1]);
- close(m_children[i].m_pipeA[0]);
- cerr << "About to waitpid for pid " << m_children[i].m_pid << endl;
- kill(m_children[i].m_pid, SIGTERM);
- waitpid(m_children[i].m_pid, &tmp, 0);
+ sendteardown(m_tqchildren[i].m_pipeB[1]);
+ close(m_tqchildren[i].m_pipeB[1]);
+ close(m_tqchildren[i].m_pipeA[0]);
+ cerr << "About to waitpid for pid " << m_tqchildren[i].m_pid << endl;
+ kill(m_tqchildren[i].m_pid, SIGTERM);
+ waitpid(m_tqchildren[i].m_pid, &tmp, 0);
}
}
}
@@ -553,16 +553,16 @@ void PlayerControl::tearDown()
void PlayerControl::start(int playerIndex, bool fadein, unsigned long fadetime)
{
- m_children[playerIndex].isplaying = true;
+ m_tqchildren[playerIndex].isplaying = true;
if (pmapped)
- *m_children[playerIndex].m_consumed = *m_children[playerIndex].m_current = 0;
- sendstart(m_children[playerIndex].m_pipeB[1], fadein, fadetime);
+ *m_tqchildren[playerIndex].m_consumed = *m_tqchildren[playerIndex].m_current = 0;
+ sendstart(m_tqchildren[playerIndex].m_pipeB[1], fadein, fadetime);
}
int PlayerControl::setURL(const char *url, int playerIndex, bool islocal)
{
- m_children[playerIndex].islocal = islocal;
- if (sendsetURL(m_children[playerIndex].m_pipeB[1], url, islocal))
+ m_tqchildren[playerIndex].islocal = islocal;
+ if (sendsetURL(m_tqchildren[playerIndex].m_pipeB[1], url, islocal))
return 0;
return -1;
@@ -570,7 +570,7 @@ int PlayerControl::setURL(const char *url, int playerIndex, bool islocal)
bool PlayerControl::done(int playerIndex)
{
- return (!m_children[playerIndex].isplaying);
+ return (!m_tqchildren[playerIndex].isplaying);
}
void PlayerControl::stop(int playerIndex)
@@ -582,30 +582,30 @@ void PlayerControl::stop(int playerIndex)
}
else
{
- m_children[playerIndex].isplaying = false;
- sendstop(m_children[playerIndex].m_pipeB[1]);
+ m_tqchildren[playerIndex].isplaying = false;
+ sendstop(m_tqchildren[playerIndex].m_pipeB[1]);
}
}
void PlayerControl::pause(int playerIndex)
{
- sendpause(m_children[playerIndex].m_pipeB[1]);
+ sendpause(m_tqchildren[playerIndex].m_pipeB[1]);
}
void PlayerControl::resume(int playerIndex)
{
- sendresume(m_children[playerIndex].m_pipeB[1]);
+ sendresume(m_tqchildren[playerIndex].m_pipeB[1]);
}
void PlayerControl::seek(unsigned long pos, int playerIndex)
{
- sendmessage(m_children[playerIndex].m_pipeB[1], SEEK, (unsigned char *) &pos, sizeof(unsigned long));
+ sendmessage(m_tqchildren[playerIndex].m_pipeB[1], SEEK, (unsigned char *) &pos, sizeof(unsigned long));
}
unsigned long PlayerControl::where(int playerIndex) const
{
if (pmapped)
- return *m_children[playerIndex].current_time;
+ return *m_tqchildren[playerIndex].current_time;
else
return 0;
}
@@ -613,7 +613,7 @@ unsigned long PlayerControl::where(int playerIndex) const
unsigned long PlayerControl::duration(int playerIndex) const
{
if (pmapped)
- return *m_children[playerIndex].duration;
+ return *m_tqchildren[playerIndex].duration;
else
return 0;
}
@@ -627,7 +627,7 @@ void PlayerControl::setVolume(unsigned long vol)
{
m_volume = vol;
for (int i = 0; i < nNumPlayers; i++)
- sendsetvolume(m_children[i].m_pipeB[1], vol);
+ sendsetvolume(m_tqchildren[i].m_pipeB[1], vol);
}
void PlayerControl::dispatch()
@@ -647,8 +647,8 @@ void PlayerControl::dispatch()
for (i=0; i<nNumPlayers; i++)
{
- rfd = m_children[i].m_pipeA[0];
- wfd = m_children[i].m_pipeB[1];
+ rfd = m_tqchildren[i].m_pipeA[0];
+ wfd = m_tqchildren[i].m_pipeB[1];
FD_SET(rfd, &rdset);
FD_SET(wfd, &wrset); // really should check to see if we can write, but not gonna
if (rfd > n)
@@ -661,8 +661,8 @@ void PlayerControl::dispatch()
ntot = select(n + 1, &rdset, 0, 0, &timeout);
for (i=0; ntot && i < nNumPlayers; i++)
{
- rfd = m_children[i].m_pipeA[0];
- wfd = m_children[i].m_pipeB[1];
+ rfd = m_tqchildren[i].m_pipeA[0];
+ wfd = m_tqchildren[i].m_pipeB[1];
if ( FD_ISSET(rfd, &rdset) )
{
msgid m;
@@ -675,14 +675,14 @@ void PlayerControl::dispatch()
{
case READY:
print2stderr("CHILD %d is READY\n", i);
- m_children[i].isready = true;;
+ m_tqchildren[i].isready = true;;
break;
case DONE:
print2stderr("CHILD %d is DONE\n", i);
if (!sz)
{
- m_children[i].isplaying = false;
+ m_tqchildren[i].isplaying = false;
clearScopeQ(i);
play_finished(i);
}
@@ -852,7 +852,7 @@ void PlayerControl::dispatch()
}
else
{
- m_children[i].isdead = true;
+ m_tqchildren[i].isdead = true;
return; // should never happen
}
}
@@ -860,16 +860,16 @@ void PlayerControl::dispatch()
for (i=0; pmapped && i<nNumPlayers; i++)
{
- while (*m_children[i].m_consumed != *m_children[i].m_current)
+ while (*m_tqchildren[i].m_consumed != *m_tqchildren[i].m_current)
{
- addScopeBuf(&m_children[i].q[*m_children[i].m_consumed], i);
+ addScopeBuf(&m_tqchildren[i].q[*m_tqchildren[i].m_consumed], i);
- //cerr << "j=" << *m_children[i].m_consumed <<
- // " time=" << m_children[i].q[*m_children[i].m_consumed].time <<
- // " etime=" << m_children[i].q[*m_children[i].m_consumed].etime <<
- // " len=" << m_children[i].q[*m_children[i].m_consumed].len << endl;
+ //cerr << "j=" << *m_tqchildren[i].m_consumed <<
+ // " time=" << m_tqchildren[i].q[*m_tqchildren[i].m_consumed].time <<
+ // " etime=" << m_tqchildren[i].q[*m_tqchildren[i].m_consumed].etime <<
+ // " len=" << m_tqchildren[i].q[*m_tqchildren[i].m_consumed].len << endl;
- *m_children[i].m_consumed = (*m_children[i].m_consumed + 1) % NUM_SCOPEBUFS;
+ *m_tqchildren[i].m_consumed = (*m_tqchildren[i].m_consumed + 1) % NUM_SCOPEBUFS;
}
}
}
@@ -881,37 +881,37 @@ void PlayerControl::cleanUpStream(int playerIndex)
bool PlayerControl::isPlaying(int playerIndex) const
{
- return m_children[playerIndex].isplaying;
+ return m_tqchildren[playerIndex].isplaying;
}
bool PlayerControl::isLocal(int playerIndex) const
{
- return m_children[playerIndex].islocal;
+ return m_tqchildren[playerIndex].islocal;
}
void PlayerControl::setFadeout(bool fadeout, unsigned long fadelength, int playerIndex)
{
- sendsetfade(m_children[playerIndex].m_pipeB[1], fadeout, fadelength);
+ sendsetfade(m_tqchildren[playerIndex].m_pipeB[1], fadeout, fadelength);
}
void PlayerControl::addScopeBuf(struct DelayQueue *item, int playerIndex)
{
if (playerIndex >=0 && playerIndex < nNumPlayers)
{
- if (m_children[playerIndex].scopebuftail)
+ if (m_tqchildren[playerIndex].scopebuftail)
{
item->fwd = 0;
- m_children[playerIndex].scopebuftail->fwd = item;
- m_children[playerIndex].scopebuftail = item;
- m_children[playerIndex].scopecount++;
+ m_tqchildren[playerIndex].scopebuftail->fwd = item;
+ m_tqchildren[playerIndex].scopebuftail = item;
+ m_tqchildren[playerIndex].scopecount++;
}
else
{
item->fwd = 0;
- m_children[playerIndex].scopebufhead = item;
- m_children[playerIndex].scopebuftail = item;
- m_children[playerIndex].scopecount = 1;
+ m_tqchildren[playerIndex].scopebufhead = item;
+ m_tqchildren[playerIndex].scopebuftail = item;
+ m_tqchildren[playerIndex].scopecount = 1;
}
}
}
@@ -920,14 +920,14 @@ DelayQueue *PlayerControl::getScopeBuf(int playerIndex)
{
if (playerIndex >=0 && playerIndex < nNumPlayers)
{
- struct DelayQueue *item = m_children[playerIndex].scopebufhead;
+ struct DelayQueue *item = m_tqchildren[playerIndex].scopebufhead;
if (item)
{
- m_children[playerIndex].scopebufhead = item->fwd;
- m_children[playerIndex].scopecount--;
- if (!m_children[playerIndex].scopebufhead)
- m_children[playerIndex].scopebuftail = 0;
+ m_tqchildren[playerIndex].scopebufhead = item->fwd;
+ m_tqchildren[playerIndex].scopecount--;
+ if (!m_tqchildren[playerIndex].scopebufhead)
+ m_tqchildren[playerIndex].scopebuftail = 0;
}
return item;
}
@@ -937,15 +937,15 @@ DelayQueue *PlayerControl::getScopeBuf(int playerIndex)
int PlayerControl::getScopeCount(int playerIndex)
{
- return (playerIndex >= 0 && playerIndex < nNumPlayers ? m_children[playerIndex].scopecount : 0);
+ return (playerIndex >= 0 && playerIndex < nNumPlayers ? m_tqchildren[playerIndex].scopecount : 0);
}
int PlayerControl::peekScopeTime(unsigned long &t, int playerIndex)
{
if (playerIndex >=0 && playerIndex < nNumPlayers)
{
- if (m_children[playerIndex].scopebufhead)
- t = m_children[playerIndex].scopebufhead->time;
+ if (m_tqchildren[playerIndex].scopebufhead)
+ t = m_tqchildren[playerIndex].scopebufhead->time;
else
return -1;
return 0;
@@ -962,7 +962,7 @@ void PlayerControl::clearScopeQ(int playerIndex)
}
else
{
- sendscopeclear(m_children[playerIndex].m_pipeB[1]);
+ sendscopeclear(m_tqchildren[playerIndex].m_pipeB[1]);
struct DelayQueue *item;
while ((item = getScopeBuf(playerIndex)))
if (item->allocd)
@@ -976,7 +976,7 @@ void PlayerControl::enableEQ(bool enabled)
unsigned char c = (char) enabled;
for (i=0; i<nNumPlayers; i++)
- sendmessage(m_children[i].m_pipeB[1], ENABLEEQ, (unsigned char *) &c, 1);
+ sendmessage(m_tqchildren[i].m_pipeB[1], ENABLEEQ, (unsigned char *) &c, 1);
m_eq_enabled = enabled;
}
@@ -1021,7 +1021,7 @@ int PlayerControl::getMimeListLen() const
HelixSimplePlayer::metaData *PlayerControl::getMetaData(int playerIndex )
{
- return m_children[playerIndex].md;
+ return m_tqchildren[playerIndex].md;
}
bool PlayerControl::sendsetoutputsink()
@@ -1031,7 +1031,7 @@ bool PlayerControl::sendsetoutputsink()
bool ok = false;
for (i=0; i<nNumPlayers; i++)
- ok |= sendmessage(m_children[i].m_pipeB[1], OUTPUTSINK, (unsigned char *) &c, 1);
+ ok |= sendmessage(m_tqchildren[i].m_pipeB[1], OUTPUTSINK, (unsigned char *) &c, 1);
return ok;
}
@@ -1045,7 +1045,7 @@ bool PlayerControl::sendsetdevice()
bool ok = false;
for (i=0; i<nNumPlayers; i++)
- ok |= sendmessage(m_children[i].m_pipeB[1], DEVICE, (unsigned char *) m_device, len + 1);
+ ok |= sendmessage(m_tqchildren[i].m_pipeB[1], DEVICE, (unsigned char *) m_device, len + 1);
return ok;
}
@@ -1056,7 +1056,7 @@ bool PlayerControl::sendinit()
bool ok = false;
for (i=0; i<nNumPlayers; i++)
- ok |= sendrequest(m_children[i].m_pipeB[1], INIT);
+ ok |= sendrequest(m_tqchildren[i].m_pipeB[1], INIT);
return ok;
}
@@ -1077,12 +1077,12 @@ bool PlayerControl::sendupdateeqgains()
memcpy((void *)&buf[ sizeof(m_preamp) + (i+1) * sizeof(int) ], (void *) &bandGain, sizeof(int));
}
for ( i = 0; i < (uint) nNumPlayers; i++ )
- ok |= sendmessage(m_children[i].m_pipeB[1], UPDATEEQGAINS, buf, sizeof(m_preamp) + (m_equalizerGains.size()+1) * sizeof(int));
+ ok |= sendmessage(m_tqchildren[i].m_pipeB[1], UPDATEETQGAINS, buf, sizeof(m_preamp) + (m_equalizerGains.size()+1) * sizeof(int));
return ok;
}
-// children send this!
+// tqchildren send this!
bool PlayerControl::sendnotifyuser(unsigned long code, const char *moreinfo, const char *moreinfourl)
{
int len1 = strlen(moreinfo), len2 = strlen(moreinfourl), len;
@@ -1095,10 +1095,10 @@ bool PlayerControl::sendnotifyuser(unsigned long code, const char *moreinfo, con
memcpy( (void *) &buf[ len ], (void *) moreinfourl, len2 + 1);
len += len2 + 1;
- return (sendmessage(m_children[m_index].m_pipeA[1], NOTIFYUSER, buf, len));
+ return (sendmessage(m_tqchildren[m_index].m_pipeA[1], NOTIFYUSER, buf, len));
}
-// children send this!
+// tqchildren send this!
bool PlayerControl::sendinterruptuser(unsigned long code, const char *moreinfo, const char *moreinfourl)
{
int len1 = strlen(moreinfo), len2 = strlen(moreinfourl), len;
@@ -1111,21 +1111,21 @@ bool PlayerControl::sendinterruptuser(unsigned long code, const char *moreinfo,
memcpy( (void *) &buf[ len ], (void *) moreinfourl, len2 + 1);
len += len2 + 1;
- return (sendmessage(m_children[m_index].m_pipeA[1], INTERRUPTUSER, buf, len));
+ return (sendmessage(m_tqchildren[m_index].m_pipeA[1], INTERRUPTUSER, buf, len));
}
-// children send this!
+// tqchildren send this!
bool PlayerControl::sendcontacting(const char *host)
{
int len = strlen(host);
- return (sendmessage(m_children[m_index].m_pipeA[1], CONTACTING, (unsigned char *) host, len + 1));
+ return (sendmessage(m_tqchildren[m_index].m_pipeA[1], CONTACTING, (unsigned char *) host, len + 1));
}
-// children send this!
+// tqchildren send this!
bool PlayerControl::sendbuffering(int percentage)
{
- return (sendmessage(m_children[m_index].m_pipeA[1], BUFFERING, (unsigned char *) &percentage, sizeof(unsigned long)));
+ return (sendmessage(m_tqchildren[m_index].m_pipeA[1], BUFFERING, (unsigned char *) &percentage, sizeof(unsigned long)));
}