src/audio/SDL_audiocvt.c
changeset 10849 bc671e6906ae
parent 10846 32efb3bc4db5
child 10851 9209506bac56
equal deleted inserted replaced
10848:7764aba2f211 10849:bc671e6906ae
   945 {
   945 {
   946     int result = 0;
   946     int result = 0;
   947     SRC_STATE *state = NULL;
   947     SRC_STATE *state = NULL;
   948 
   948 
   949     if (SRC_available) {
   949     if (SRC_available) {
   950         state = SRC_src_new(SRC_SINC_FASTEST, stream->pre_resample_channels, &result);
   950         state = SRC_src_new(SRC_converter, stream->pre_resample_channels, &result);
   951         if (!state) {
   951         if (!state) {
   952             SDL_SetError("src_new() failed: %s", SRC_src_strerror(result));
   952             SDL_SetError("src_new() failed: %s", SRC_src_strerror(result));
   953         }
   953         }
   954     }
   954     }
   955 
   955