Started on: 2007-11-12
last update: 2007-11-12
Summary:
Code change to allow the use of last.fm radio with an external player like PureAudio.
Area:
Last.fm radio
Description:
A small change in code will allow the last.fm radio to be used in conjunction with any external player supporting webstreams. Currently the last.fm radio hooks directly into the BASS player:
Now when moving this:
from the BassAudioEngine class to the IPlayer class, this call can be changed into:
This will do the trick. The external player is then responsible for raising LastFMSync. No further changes are needed for the BASS player as far as i can see.
Regards,
Symphy
last update: 2007-11-12
Summary:
Code change to allow the use of last.fm radio with an external player like PureAudio.
Area:
Last.fm radio
Description:
A small change in code will allow the last.fm radio to be used in conjunction with any external player supporting webstreams. Currently the last.fm radio hooks directly into the BASS player:
Code:
BassMusicPlayer.Player.LastFMSync += new BassAudioEngine.LastFMSyncReceived(OnLastFMSyncReceived);
Code:
public delegate void LastFMSyncReceived(object sender, DateTime syncTime);
public event LastFMSyncReceived LastFMSync;
Code:
g_Player.Player.LastFMSync += new IPlayer.LastFMSyncReceived(OnLastFMSyncReceived);
This will do the trick. The external player is then responsible for raising LastFMSync. No further changes are needed for the BASS player as far as i can see.
Regards,
Symphy