Subversion Repositories Kolibri OS

Rev

Rev 7166 | Rev 7182 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7166 Rev 7177
Line 32... Line 32...
32
 
32
 
33
//simple open dialog data
33
//simple open dialog data
34
char default_dir[] = "/rd/1";
34
char default_dir[] = "/rd/1";
Line 35... Line 35...
35
od_filter filter2 = { 8, "MP3\0\0" };
35
od_filter filter2 = { 8, "MP3\0\0" };
36
 
36
 
Line 37... Line 37...
37
#define ABOUT_MESSAGE "'Pixies Player v2.3
37
#define ABOUT_MESSAGE "'Pixies Player v2.4
38
A tiny MP3 folder player.
38
A tiny MP3 folder player.
39
 
39
 
Line 357... Line 357...
357
		current_playing_file_n = 0; 
357
		current_playing_file_n = 0; 
358
		return; 
358
		return; 
359
	}
359
	}
360
	playback_mode = PLAYBACK_MODE_PLAYING;
360
	playback_mode = PLAYBACK_MODE_PLAYING;
361
	strlcpy(#current_filename, Getcur_yItemName(), sizeof(current_filename));
361
	strlcpy(#current_filename, Getcur_yItemName(), sizeof(current_filename));
362
	sprintf(#item_path,"\"%s/%s\"",#work_folder,#current_filename);
362
	sprintf(#item_path,"-h %s/%s",#work_folder,#current_filename);
363
	DrawPlayList();
363
	DrawPlayList();
364
	DrawTopPanel();
364
	DrawTopPanel();
365
	if (strcmpi(#item_path+strlen(#item_path)-4,".mp3")) player_run_id = RunProgram(abspath("minimp3"), #item_path);	
365
	if (strcmpi(#item_path+strlen(#item_path)-3,".mp3")) player_run_id = RunProgram("/sys/media/ac97snd", #item_path);	
366
	sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename);
366
	sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename);
367
	for (i=2; i
367
	for (i=2; i
368
	notify_run_id = notify(#notify_message);
368
	notify_run_id = notify(#notify_message);
369
}
369
}