Only output silence to active channels
This commit is contained in:
parent
56c3e9da95
commit
1580fa66b7
1 changed files with 3 additions and 2 deletions
5
asio.c
5
asio.c
|
@ -1264,8 +1264,9 @@ static inline int jack_process_callback(jack_nframes_t nframes, void *arg)
|
|||
/* output silence if the ASIO callback isn't running yet */
|
||||
if (This->asio_driver_state != Running)
|
||||
{
|
||||
for (i = 0; i < This->asio_active_outputs; i++)
|
||||
bzero(jack_port_get_buffer(This->output_channel[i].port, nframes), sizeof (jack_default_audio_sample_t) * nframes);
|
||||
for (i = 0; i < This->wineasio_number_outputs; i++)
|
||||
if (This->output_channel[i].active == ASIOTrue)
|
||||
bzero(jack_port_get_buffer(This->output_channel[i].port, nframes), sizeof (jack_default_audio_sample_t) * nframes);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue