Пример #1
0
void AudioServerSW::driver_process(int p_frames,int32_t *p_buffer) {


    //process in chunks to make sure to never process more than INTERNAL_BUFFER_SIZE
    int todo=p_frames;
    while(todo) {

        int tomix=MIN(todo,INTERNAL_BUFFER_SIZE);
        driver_process_chunk(tomix,p_buffer);
        p_buffer+=tomix;
        todo-=tomix;
    }


}
Пример #2
0
void AudioServerSW::driver_process(int p_frames,int32_t *p_buffer) {


    _output_delay=p_frames/double(AudioDriverSW::get_singleton()->get_mix_rate());
    //process in chunks to make sure to never process more than INTERNAL_BUFFER_SIZE
    int todo=p_frames;
    while(todo) {

        int tomix=MIN(todo,INTERNAL_BUFFER_SIZE);
        driver_process_chunk(tomix,p_buffer);
        p_buffer+=tomix;
        todo-=tomix;
    }


}