Specifications

/* Add the song number to the start of the song name */
song_to_send_ptr += add_number_song_name(song_count,
&song_name_to_send[0]);;
}
pointer_pos++;
/* if at the end of the buffer set variable to exit */
if((song_path[pointer_pos] == '.') && (song_path[pointer_pos + 1] == 'm')
&& (song_path[pointer_pos + 2] == 'p') && (song_path[pointer_pos + 3] == '3')){
dummy = 0;
}
}
/* NULL terminate */
*song_to_send_ptr = ' ';
song_to_send_ptr++;
*song_to_send_ptr = NULL;
song_to_send_ptr++;
*song_to_send_ptr = '\n';
/* Send the song name to the ethernut */
printf("sending song name\n");
send(song_Server, &song_name_to_send[0], strlen(&song_name_to_send[0]), 0);
printf("%s\n", &song_path[0]);
}
/* opens the mp3 file passed to it as a song number */
void open_MP3 (int song){
HANDLE PlayList;
TCHAR songs[100000];
TCHAR *songs_ptr;
unsigned long bytes;
TCHAR song_name[1000];
TCHAR *song_name_ptr;
int crt_num = 1;
char net_address;
printf("opening song name\n");
/* open the playlist */
if ((PlayList = CreateFile("C:\\mp3\\playlist\\new.m3u",
GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
NULL, OPEN_EXISTING, 0, 0))
== INVALID_HANDLE_VALUE)
{
printf("Playlist failed with error %d\n", GetLastError());
}
/* set up the pointer to the buffer of the play list from
82