mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-12 10:50:01 +01:00
set previous playback speed when switching sample ( pause all samples -> resume one by one, resume at sample speed), move initialization to playback cycle
This commit is contained in:
@@ -649,6 +649,9 @@ static int veejay_start_playing_sample( veejay_t *info, int sample_id )
|
|||||||
|
|
||||||
veejay_sample_resume_at( info, sample_id );
|
veejay_sample_resume_at( info, sample_id );
|
||||||
|
|
||||||
|
if( speed != 0 )
|
||||||
|
settings->previous_playback_speed = speed;
|
||||||
|
|
||||||
veejay_set_speed(info, speed);
|
veejay_set_speed(info, speed);
|
||||||
|
|
||||||
veejay_msg(VEEJAY_MSG_INFO, "Playing sample %d (FX=%x, Sl=%d, Speed=%d, Start=%d, Loop=%d)",
|
veejay_msg(VEEJAY_MSG_INFO, "Playing sample %d (FX=%x, Sl=%d, Speed=%d, Start=%d, Loop=%d)",
|
||||||
@@ -1869,8 +1872,6 @@ int veejay_init(veejay_t * info, int x, int y,char *arg, int def_tags, int gen_t
|
|||||||
settings->action_scheduler.state = 0;
|
settings->action_scheduler.state = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
settings->previous_playback_speed = 1;
|
|
||||||
|
|
||||||
int instances = 0;
|
int instances = 0;
|
||||||
char *title = NULL;
|
char *title = NULL;
|
||||||
|
|
||||||
@@ -2210,6 +2211,8 @@ static void veejay_playback_cycle(veejay_t * info)
|
|||||||
|
|
||||||
veejay_set_speed(info,1);
|
veejay_set_speed(info,1);
|
||||||
|
|
||||||
|
settings->previous_playback_speed = 1;
|
||||||
|
|
||||||
switch(info->uc->playback_mode)
|
switch(info->uc->playback_mode)
|
||||||
{
|
{
|
||||||
case VJ_PLAYBACK_MODE_PLAIN:
|
case VJ_PLAYBACK_MODE_PLAIN:
|
||||||
|
|||||||
Reference in New Issue
Block a user