USB Audio Device for audio streaming and as a HID device for FM Tuner control
USB Audio Device for audio streaming and as a HID device for FM Tuner control
When the GUI is first launched, it begins by looking for a USB FM Radio device. Once a device is found, it is opened up as a USB Audio Device for audio streaming and as a HID device for FM Tuner control. In addition, the default WAV output device is opened to playback the audio stream.
Audio StreamThe host application uses a circular buffer of 20 32 kB blocks to accept audio from the USB FM Radio device. Initially, 19 of the buffers are filled with audio data. Next, this data is sent to the WAV output device, and as streaming continues, pointers to the first free block and first playable block are incremented around the circular buffer to provide a constant and seamless flow of audio.
Audio will stream until a user action occurs such as tune, seek, or an alteration of radio settings. When this occurs, the audio stream will stop, and the commands for the requested action are sent down through the HID interface. Once the acknowledgement of the command comes back, the GUI is updated and stream playback will continue.
Device StatusIn addition to the audio streaming, the device is also polled for its current attributes such as the current station, the received signal strength, and a stereo/mono indicator. As this information changes, it will also change on the display of the GUI.
Device RemovalAudio streaming and polling will stop if the device is disconnected from the USB. In this case, all of the device handles are closed, and the host application will begin to poll for connected devices.
USB Device DriverBecause Windows has built-in drivers for USB audio and HID class devices, the USB FM Radio does not require an OEM supplied driver disk for operation. The player executable is the only required user software. A similar approach is possible for other operating systems, if they have built-in support for these two USB device classes.
Setting Up Pre Engineered Steel Structures - Is This The Right Thing To Do? Affordable Logo Design- Economical Logo Designing Option Aarkstore Enterprise Tan Chong Motor Holdings Berhad: Swot Analysis & Company Profile Making A Compensation Claim After A Car Accident Mba That Really Worth Out For Students In India And Abroad The Forex Income Engine coming next week Used Corolla Altis CNG | Toyota Used Car Affordable SEO Service is the Best Option Various car entertainment parts Broadband Deals free gifts - Rejoicing gifts with hassle free internet surfing deals Acquiring Pre-engineered Steel Buildings: Is This The Right Decision For You? Affordable Php Web Development Services At Leading Web Development Company Going With Pre-engineered Steel Shelters... Is This The Right Thing To Do?
www.yloan.com
guest:
register
|
login
|
search
IP(216.73.216.35) California / Anaheim
Processed in 0.016707 second(s), 7 queries
,
Gzip enabled
, discuz 5.5 through PHP 8.3.9 ,
debug code: 12 , 2009, 41,
USB Audio Device for audio streaming and as a HID device for FM Tuner control Anaheim