void CSimpleSource::initPhysicalSource() { CAudioMixerUser *mixer = CAudioMixerUser::instance(); CTrack *track = mixer->getFreeTrack(this); if (track != NULL) { nlassert(track->hasPhysicalSource()); _Track = track; } }
void CStreamSource::initPhysicalSource() { CAudioMixerUser *mixer = CAudioMixerUser::instance(); CTrack *track = mixer->getFreeTrack(this); if (track != NULL) { nlassert(track->hasPhysicalSource()); m_Track = track; getPhysicalSource()->setStreaming(true); } }