13
0

Fix for PortAudioBackend::available_sample_rates

Was being called without initializing PA. PA should probably be initialized in
ctor but PA backend also needs to support hot-plugging devices at some point so
this will do for now
This commit is contained in:
Tim Mayberry 2015-05-19 13:58:35 +10:00
parent 6b7875de1e
commit b12f865a4a

View File

@ -63,7 +63,7 @@ PortAudioIO::available_sample_rates(int device_id, std::vector<float>& sampleRat
{
static const float ardourRates[] = { 8000.0, 22050.0, 24000.0, 44100.0, 48000.0, 88200.0, 96000.0, 176400.0, 192000.0};
assert(_initialized);
if (!initialize_pa()) return -1;
// TODO use separate int device_input, int device_output ?!
if (device_id == -1) {