he añadido la funcion que desarrollé para mi Fruits Player del tema de emisoras de Shoutcast para recuperar emisoras en una estructura asi de este tipo que ya incluye "SnakedLibrary.h"
Código:
struct TRadio
{
AnsiString RadioName;
AnsiString URL;
int Listeners;
int Bitrate;
int ID;
};
struct TRadio Radio_Listing[3000];
la funcion es asi:
Código:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Retrieve_Radio_Stations(int indice, TRadio arr[], int max_stations)
DESCRIPTION: This function returns in a structure TRadio defined in SnakedLibrary.h
the amount of Radio Stations requested (max stations is 3000 cos the structure is defined as
Radio_Listing[3000] then only store a max of 0 to 2999 stations.
IN:
TRadio arr[] is the array defined as Radio_Listing[3000] for store the radios info and stream
int max_stations must be 3000 or less (same or less than the Radio_Listing array size)
int indice indicates the TOP STATIONS (0) or a genre defined as here:
(you only have pass to the function the number of genre
