mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
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:
parent
6b7875de1e
commit
b12f865a4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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};
|
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 ?!
|
// TODO use separate int device_input, int device_output ?!
|
||||||
if (device_id == -1) {
|
if (device_id == -1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue