Ticket #7757: 7757-winaudio_48k.2.patch

File 7757-winaudio_48k.2.patch, 547 bytes (added by Jeff Lu <jll544@…>, 11 years ago)

Oops, last one got CRLF mangled. Try again.

  • libs/libmyth/audiooutputwin.cpp

     
    144144    // so just return a set of standard rates
    145145    const int srates[] = { 11025, 22050, 44100, 48000 };
    146146    vector<int> rates(srates, srates + sizeof(srates) / sizeof(int) );
     147    if (audio_passthru || audio_enc)
     148    {
     149        rates.clear();
     150        rates.push_back(48000);
     151    }
    147152    return rates;
    148153}
    149154