Skip to content

Commit

Permalink
Channel 1 starts faded up
Browse files Browse the repository at this point in the history
  • Loading branch information
njh committed Dec 27, 2005
1 parent e01cfbb commit 430948b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions minimix.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,15 @@ jmm_channel_t* init_channels( int chan_count )

snprintf( channels[c].label, CHANNEL_LABEL_LEN, "Channel %d", c+1 );

// Faders start faded down
channels[c].current_gain=-90.0f;
channels[c].desired_gain=-90.0f;
if (c==0) {
// Channel 1 starts with gain of 0
channels[c].current_gain=0.0f;
channels[c].desired_gain=0.0f;
} else {
// Other channels start faded down
channels[c].current_gain=-90.0f;
channels[c].desired_gain=-90.0f;
}

// Create the JACK input ports
channels[c].left_port = create_input_port( "left", c );
Expand Down

0 comments on commit 430948b

Please sign in to comment.