BufferQueueNode** ppNode;
for( ppNode = &m_pBusyBuffersHead; (*ppNode); )
{
DWORD dwStatus;
(*ppNode)->pBuffer->GetStatus( &dwStatus );
// If the buffer is playing
if((dwStatus & DSBSTATUS_PAUSED))
{
(*ppNode)->pBuffer->Pause(DSBPAUSE_RESUME);
}
else
{
ppNode = &(*ppNode)->pNext;
}
}
dx8 sound sample using a double pointer to traverse list question!
The source below traverses a linked list of directsound8 buffers and resumes them all for playback.
my question:
why did they use...
BufferQueueNode** ppNode;
instead of...
BufferQueueNode* ppNode;
...?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement