Subversion Repositories Kolibri OS

Rev

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

Rev 7051 Rev 7177
Line 18... Line 18...
18
#include "..\lib\obj\libimg.h"
18
#include "..\lib\obj\libimg.h"
19
#include "..\lib\obj\libini.h"
19
#include "..\lib\obj\libini.h"
Line 20... Line 20...
20
 
20
 
Line 21... Line 21...
21
#include "..\lib\patterns\libimg_load_skin.h"
21
#include "..\lib\patterns\libimg_load_skin.h"
22
 
22
 
23
#define ABOUT_MESSAGE "'Pixies Player v1.33\n\nOpen file: O key\nChange skin: F1/F2
23
#define ABOUT_MESSAGE "'Pixies Player v1.4\n\nOpen file: O key\nChange skin: F1/F2
24
Play/Stop: Space or P key\nStart playing selected file: Enter
24
Play/Stop: Space or P key\nStart playing selected file: Enter
Line 25... Line 25...
25
Goto next/previous track: Ctrl + Left/Right
25
Goto next/previous track: Ctrl + Left/Right
Line 313... Line 313...
313
	if (!list.count) { NotifyAndBackFocus("'Pixie Player\nPress O key to open MP3 file' -St"); return; }
313
	if (!list.count) { NotifyAndBackFocus("'Pixie Player\nPress O key to open MP3 file' -St"); return; }
314
	if (current_playing_file_n > list.count) { current_playing_file_n = list.count; return; }
314
	if (current_playing_file_n > list.count) { current_playing_file_n = list.count; return; }
315
	if (current_playing_file_n < 0) { current_playing_file_n = 0; return; }
315
	if (current_playing_file_n < 0) { current_playing_file_n = 0; return; }
316
	playback_mode = PLAYBACK_MODE_PLAYING;
316
	playback_mode = PLAYBACK_MODE_PLAYING;
317
	strlcpy(#current_filename, Getcur_yItemName(), sizeof(current_filename));
317
	strlcpy(#current_filename, Getcur_yItemName(), sizeof(current_filename));
318
	sprintf(#item_path,"\"%s/%s\"",#work_folder,#current_filename);
318
	sprintf(#item_path,"-h %s/%s",#work_folder,#current_filename);
319
	DrawPlayList();
319
	DrawPlayList();
320
	DrawTopPanel();
320
	DrawTopPanel();
321
	if (strcmpi(#item_path+strlen(#item_path)-4,".mp3")) player_run_id = RunProgram(abspath("minimp3"), #item_path);	
321
	if (strcmpi(#item_path+strlen(#item_path)-3,".mp3")) player_run_id = RunProgram("/sys/media/ac97snd", #item_path);
322
	sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename);
322
	sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename);
323
	for (i=2; i
323
	for (i=2; i
324
	notify_run_id = NotifyAndBackFocus(#notify_message);
324
	notify_run_id = NotifyAndBackFocus(#notify_message);
325
}
325
}