mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 02:56:35 +01:00
fix return value for playback/capture buffer loads on audio tracks with no channels
This commit is contained in:
parent
d3447dfd15
commit
91f2f46a0a
1 changed files with 3 additions and 3 deletions
|
|
@ -2237,7 +2237,7 @@ AudioDiskstream::playback_buffer_load () const
|
|||
boost::shared_ptr<ChannelList> c = channels.reader();
|
||||
|
||||
if (c->empty ()) {
|
||||
return 0;
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
return (float) ((double) c->front()->playback_buf->read_space()/
|
||||
|
|
@ -2250,7 +2250,7 @@ AudioDiskstream::capture_buffer_load () const
|
|||
boost::shared_ptr<ChannelList> c = channels.reader();
|
||||
|
||||
if (c->empty ()) {
|
||||
return 0;
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
return (float) ((double) c->front()->capture_buf->write_space()/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue