mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-22 15:50:01 +01:00
reloaded fixes
git-svn-id: svn://code.dyne.org/veejay/trunk@1192 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
BIN
veejay-current/veejay-client/share/button_back.png
Normal file
BIN
veejay-current/veejay-client/share/button_back.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 837 B |
BIN
veejay-current/veejay-client/share/button_next.png
Normal file
BIN
veejay-current/veejay-client/share/button_next.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 841 B |
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 928 B |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 188 B |
@@ -2772,7 +2772,10 @@ on_spin_samplebank_select_value_changed
|
|||||||
if(page >= max_page){ /* @mvh I know this is not pretty but why make it difficult */
|
if(page >= max_page){ /* @mvh I know this is not pretty but why make it difficult */
|
||||||
page = 0;
|
page = 0;
|
||||||
gtk_spin_button_set_value(spinbutton, page);
|
gtk_spin_button_set_value(spinbutton, page);
|
||||||
}//if
|
} else if( page < 0 ) {
|
||||||
|
page = max_page;
|
||||||
|
gtk_spin_button_set_value(spinbutton,page);
|
||||||
|
}
|
||||||
gtk_notebook_set_current_page(samplebank, page);
|
gtk_notebook_set_current_page(samplebank, page);
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -19,10 +19,6 @@
|
|||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* If you are reading this code , you are insane.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -2744,7 +2740,7 @@ static void update_current_slot(int *history, int pm, int last_pm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Actions for stream */
|
/* Actions for stream */
|
||||||
if( pm != last_pm && pm == MODE_STREAM )
|
if( ( info->status_tokens[CURRENT_ID] != history[CURRENT_ID] || pm != last_pm ) && pm == MODE_STREAM )
|
||||||
{
|
{
|
||||||
/* Is a solid color stream */
|
/* Is a solid color stream */
|
||||||
if( info->status_tokens[STREAM_TYPE] == STREAM_WHITE )
|
if( info->status_tokens[STREAM_TYPE] == STREAM_WHITE )
|
||||||
@@ -2758,10 +2754,11 @@ static void update_current_slot(int *history, int pm, int last_pm)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
update_label_str( "label_currentsource", "Stream" );
|
|
||||||
gchar *time = format_time( info->status_frame,info->el.fps );
|
gchar *time = format_time( info->status_frame,info->el.fps );
|
||||||
update_label_str( "label_curtime", time );
|
update_label_str( "label_curtime", time );
|
||||||
g_free(time);
|
g_free(time);
|
||||||
|
|
||||||
|
update_label_str( "playhint", "Streaming");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Actions for sample */
|
/* Actions for sample */
|
||||||
@@ -2865,6 +2862,13 @@ static void update_current_slot(int *history, int pm, int last_pm)
|
|||||||
if( speed < 0 ) info->play_direction = -1; else info->play_direction = 1;
|
if( speed < 0 ) info->play_direction = -1; else info->play_direction = 1;
|
||||||
if( speed < 0 ) speed *= -1;
|
if( speed < 0 ) speed *= -1;
|
||||||
update_spin_value( "spin_samplespeed", speed);
|
update_spin_value( "spin_samplespeed", speed);
|
||||||
|
|
||||||
|
if( pm == MODE_SAMPLE ) {
|
||||||
|
if( speed == 0 )
|
||||||
|
update_label_str( "playhint", "Paused" );
|
||||||
|
else
|
||||||
|
update_label_str( "playhint", "Playing");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( history[FRAME_DUP] != info->status_tokens[FRAME_DUP] )
|
if( history[FRAME_DUP] != info->status_tokens[FRAME_DUP] )
|
||||||
@@ -2890,8 +2894,6 @@ static void update_current_slot(int *history, int pm, int last_pm)
|
|||||||
gchar *time = format_selection_time( 0, len );
|
gchar *time = format_selection_time( 0, len );
|
||||||
g_free(time);
|
g_free(time);
|
||||||
|
|
||||||
update_label_str( "label_currentsource", "Sample");
|
|
||||||
|
|
||||||
update_spin_value( "spin_samplestart", info->status_tokens[SAMPLE_START]);
|
update_spin_value( "spin_samplestart", info->status_tokens[SAMPLE_START]);
|
||||||
update_spin_value( "spin_sampleend", info->status_tokens[SAMPLE_END]);
|
update_spin_value( "spin_sampleend", info->status_tokens[SAMPLE_END]);
|
||||||
|
|
||||||
@@ -3902,6 +3904,7 @@ static void load_samplelist_info(gboolean with_reset_slotselection)
|
|||||||
|
|
||||||
if( with_reset_slotselection )
|
if( with_reset_slotselection )
|
||||||
reset_samplebank();
|
reset_samplebank();
|
||||||
|
|
||||||
multi_vims( VIMS_SAMPLE_LIST,"%d", 0 );
|
multi_vims( VIMS_SAMPLE_LIST,"%d", 0 );
|
||||||
gint fxlen = 0;
|
gint fxlen = 0;
|
||||||
gchar *fxtext = recv_vims(5,&fxlen);
|
gchar *fxtext = recv_vims(5,&fxlen);
|
||||||
@@ -5487,6 +5490,7 @@ static void update_status_accessibility(int old_pm, int new_pm)
|
|||||||
enable_widget( streamwidgets[i].name);
|
enable_widget( streamwidgets[i].name);
|
||||||
|
|
||||||
update_label_str( "label_current_mode", "Stream");
|
update_label_str( "label_current_mode", "Stream");
|
||||||
|
update_label_str( "label_current_mode", "Stream");
|
||||||
}
|
}
|
||||||
|
|
||||||
if( new_pm == MODE_SAMPLE )
|
if( new_pm == MODE_SAMPLE )
|
||||||
@@ -5499,6 +5503,8 @@ static void update_status_accessibility(int old_pm, int new_pm)
|
|||||||
enable_widget( samplewidgets[i].name);
|
enable_widget( samplewidgets[i].name);
|
||||||
|
|
||||||
update_label_str( "label_current_mode", "Sample");
|
update_label_str( "label_current_mode", "Sample");
|
||||||
|
update_label_str( "label_currentsource", "Sample" );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( new_pm == MODE_PLAIN)
|
if( new_pm == MODE_PLAIN)
|
||||||
@@ -5511,6 +5517,8 @@ static void update_status_accessibility(int old_pm, int new_pm)
|
|||||||
enable_widget( plainwidgets[i].name);
|
enable_widget( plainwidgets[i].name);
|
||||||
|
|
||||||
update_label_str( "label_current_mode","Plain");
|
update_label_str( "label_current_mode","Plain");
|
||||||
|
update_label_str( "label_currentsource", "Plain" );
|
||||||
|
|
||||||
}
|
}
|
||||||
GtkWidget *n = glade_xml_get_widget_( info->main_window, "panels" );
|
GtkWidget *n = glade_xml_get_widget_( info->main_window, "panels" );
|
||||||
int page_needed = 0;
|
int page_needed = 0;
|
||||||
@@ -5573,6 +5581,7 @@ static void update_globalinfo(int *history, int pm, int last_pm)
|
|||||||
|
|
||||||
select_slot( info->status_tokens[PLAY_MODE] );
|
select_slot( info->status_tokens[PLAY_MODE] );
|
||||||
|
|
||||||
|
|
||||||
#ifdef STRICT_CHECKING
|
#ifdef STRICT_CHECKING
|
||||||
if( pm != MODE_PLAIN )
|
if( pm != MODE_PLAIN )
|
||||||
assert( info->selected_slot != NULL );
|
assert( info->selected_slot != NULL );
|
||||||
@@ -5692,6 +5701,12 @@ veejay_msg(0, "%s",time);
|
|||||||
else
|
else
|
||||||
info->play_direction = 1;
|
info->play_direction = 1;
|
||||||
if( plainspeed < 0 ) plainspeed *= -1;
|
if( plainspeed < 0 ) plainspeed *= -1;
|
||||||
|
if( plainspeed == 0 ) {
|
||||||
|
update_label_str( "playhint", "Paused");
|
||||||
|
} else {
|
||||||
|
update_label_str( "playhint", "Playing");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7471,8 +7486,10 @@ static gboolean on_slot_activated_by_mouse (GtkWidget *widget, GdkEventButton *e
|
|||||||
if( event->type == GDK_2BUTTON_PRESS )
|
if( event->type == GDK_2BUTTON_PRESS )
|
||||||
{
|
{
|
||||||
sample_slot_t *s = sample_banks[bank_nr]->slot[slot_nr];
|
sample_slot_t *s = sample_banks[bank_nr]->slot[slot_nr];
|
||||||
multi_vims( VIMS_SET_MODE_AND_GO, "%d %d", s->sample_type, s->sample_id);
|
multi_vims( VIMS_SET_MODE_AND_GO, "%d %d", (s->sample_type==0? 0:1), s->sample_id);
|
||||||
vj_midi_learning_vims_msg2( info->midi, NULL, VIMS_SET_MODE_AND_GO, s->sample_type, s->sample_id );
|
vj_midi_learning_vims_msg2( info->midi, NULL, VIMS_SET_MODE_AND_GO, s->sample_type, s->sample_id );
|
||||||
|
vj_msg(VEEJAY_MSG_INFO, "Start playing %s %d",
|
||||||
|
(s->sample_type==0 ? "Sample" : "Stream" ), s->sample_id );
|
||||||
}
|
}
|
||||||
else if(event->type == GDK_BUTTON_PRESS )
|
else if(event->type == GDK_BUTTON_PRESS )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user