void vsSoundSystem::Init() { for ( int i = 0; i < MAX_DEFERRED_SAMPLES; i++ ) m_deferredSample[i].m_sample = NULL; InitVolume(); }
CTSlice init_volume_and_slice() { CTVolume vol_in; /* a pointer to a structure */ CTSlice slice; if(MATH_FUNC==0) vol_in = InitVolume(Istru.type, Nstru.prefix, Nstru.suffix, Istru.beg, Istru.end, Istru.detz); else vol_in = myInitVolume16bits(Istru.type, Nstru.prefix, Nstru.suffix, Istru.beg, Istru.end, Istru.detz); if(vol_in == NULL) { fprintf(stderr,"InterpolateC1: Can not initialize input volume\n"); fprintf(stderr,"PREFIX=%s SUFFIX=%s, from %d to %d\n", Nstru.prefix, Nstru.suffix,Istru.beg, Istru.end); exit(1); } pass_volume(vol_in); if(DEBUG)print_volume_structure(vol_in); if(MATH_FUNC==0) { slice = myCTSliceRead(vol_in, Istru.beg, Istru.x1, Istru.y1,Istru.x2, Istru.y2); //slice = CTSliceRead(vol_in, Istru.beg, Istru.x1, Istru.y1,Istru.x2, Istru.y2); //KLC } else if(MATH_FUNC==4)/* special */ slice = specialCTSliceRead(vol_in, Istru.beg, Istru.x1, Istru.y1,Istru.x2, Istru.y2); else slice = myCTSliceRead(vol_in, Istru.beg, Istru.x1, Istru.y1,Istru.x2, Istru.y2); if(slice==NULL) { fprintf(stderr,"Read error in slice #%d, quit here\n",Istru.beg); exit(1); } return slice; }