19.02.2012, 09:48
Hello there,
PlayAudioStreamForPlayer is a fairly new feature, and I am using it for the first time. It seems that however I'm having trouble with setting it up. The native client green message appears that the stream is playing, however I cannot hear it. As researched, some people had trouble with Audio apparently being totally quiet, however mine's set to full and I'm lost about where I could have gone wrong. I'd appreciate any help, cheers.
PlayAudioStreamForPlayer is a fairly new feature, and I am using it for the first time. It seems that however I'm having trouble with setting it up. The native client green message appears that the stream is playing, however I cannot hear it. As researched, some people had trouble with Audio apparently being totally quiet, however mine's set to full and I'm lost about where I could have gone wrong. I'd appreciate any help, cheers.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == RADIO) { if(response) { if(listitem == 0)// (BBC Radio 1) { ShowPlayerDialog(playerid, RADIO_CONFIRM, DIALOG_STYLE_MSGBOX,"BBC Radio 1 (United Kingdom)","{3399FF}You are now tuned into BBC Radio 1\n{FFFFFF}The Best New Music And Entertainment\n(98.1FM San Andreas)", "OK", ""); PlayAudioStreamForPlayer(playerid, "http://www.bbc.co.uk/radio/listen/live/r1.pls"); } // rest of stations // .............. if(listitem == 8) // (STOP RADIO) { StopAudioStreamForPlayer(playerid); } return 1; }