View Single Post
Old 07-04-2007, 07:09 AM   #15
wzpc
Newbie
 
Join Date: Jun 2007
Posts: 4
Sourcecode? Link

For an ADS/Silabs USBRadio.dll you have to edit some files...

"FMRadioDevice.h"
//Device data
#define silabs_FMRADIO_VID 0x10C4
#define silabs_FMRADIO_PID 0x818A
#define adstech_FMRADIO_VID 0x06e1
#define adstech_FMRADIO_PID 0xa155


"FMRadioDevice.cpp"
int CFMRadioDevice::GetAudioDeviceIndex()
{
...
//If FM Radio is found, open the radio immediately, this is our device
if (!strcmp(waveInputCapabilities.szPname, "FM Radio") || !strcmp(waveInputCapabilities.szPname, "ADS InstantFM Music"))
{
...


"FMRadioDevice.cpp"

bool CFMRadioDevice::OpenFMRadioData()
{
...
//Check that the VID and PID match
if ((hidDeviceAttributes.VendorID == silabs_FMRADIO_VID) && (hidDeviceAttributes.ProductID == silabs_FMRADIO_PID) || (hidDeviceAttributes.VendorID == adstech_FMRADIO_VID) && (hidDeviceAttributes.ProductID == adstech_FMRADIO_PID))


Ciao

Steffen
wzpc is offline   Reply With Quote