+SetChannelsReset::SetChannelsReset(SetFormatThread *thread, int x, int y, const char *text)
+ : BC_GenericButton(x, y, text)
+{
+ this->thread = thread;
+}
+
+int SetChannelsReset::handle_event()
+{
+ int channels = thread->new_settings->session->audio_channels;
+ int *achannels = thread->new_settings->session->achannel_positions;
+ for( int i=0; i<MAX_CHANNELS; ++i )
+ achannels[i] = default_audio_channel_position(i, channels);
+ thread->window->canvas->draw();
+ return 1;
+}