src/audio/SDL_audio.c
changeset 7678 286c42d7c5ed
parent 7518 febc83bc2a43
child 7719 31b5f9ff36ca
equal deleted inserted replaced
7677:871d43c6968a 7678:286c42d7c5ed
   417                 if (device->convert.needed) {
   417                 if (device->convert.needed) {
   418                     SDL_ConvertAudio(&device->convert);
   418                     SDL_ConvertAudio(&device->convert);
   419                     if (istream == NULL) {
   419                     if (istream == NULL) {
   420                         istream = device->fake_stream;
   420                         istream = device->fake_stream;
   421                     }
   421                     }
   422                     /*SDL_memcpy(istream, device->convert.buf, device->convert.len_cvt); */
   422                     /* SDL_memcpy(istream, device->convert.buf, device->convert.len_cvt); */
   423                     SDL_StreamWrite(&device->streamer, device->convert.buf,
   423                     SDL_StreamWrite(&device->streamer, device->convert.buf,
   424                                     device->convert.len_cvt);
   424                                     device->convert.len_cvt);
   425                 } else {
   425                 } else {
   426                     SDL_StreamWrite(&device->streamer, istream, istream_len);
   426                     SDL_StreamWrite(&device->streamer, istream, istream_len);
   427                 }
   427                 }