Re: live radio or televisyon channel on BGT?
yeah. cool radio player. i trying to add play/pause but, i can't figureout how to do it. i read the bass.dll documention and added the handel for pause to the streem.bgt.
and, i add the code to the example.bgt for play/pause. but, its not working.
here is the handel to pause.
//trying to add a pause.
void pause_file(long handle)
{
bass.call("void BASS_ChannelPause(long,long);",handle,0);
}
and, i do something like this in the example.bgt.
bool file_playing;
i added it to the start of the file after the include.
and, i do something in to the play/loading of file.
long handle=load_stream_url("http://"+link);
play_file(handle);
file_playing=true;
and to the key pressing.
if (key_pressed(KEY_SPACE) and file_playing==true)
{
pause_file(handle);
file_playing=false;
}
else
{
play_file(handle);
file_playing=true;
}
but, its not working. there is something rong with the code?
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector