Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to use iom_attach_input to attach the input from USB devices?: (2 Items)
   
How to use iom_attach_input to attach the input from USB devices?  
Hello all,

We use io-media to play stream data from Smartphone devices in our project. If the stream data is from Bluetooth phone, 
I could use the following setting to play.

          iom_attach_input(graphId, "snd:/dev/snd/pcmC3D0c", fid );

Since it is different for smartphone which gets stream data from USB port, I don't know how to set url. 

          iom_attach_input(graphId, url, fid );

Thanks for your advices,
Jeff Sheng
Re: How to use iom_attach_input to attach the input from USB devices?  
The only thing that changes is the URL.  The URL of the capture device 
will depend on where the audio should come from.  We can talk specifics 
for your project directly.

In general, if it is an io-audio capture device you'll use a similar 
snd: URL.  You would have to know which capture device to use.  Some 
io-audio drivers will setup a link from a "known" name to the capture 
device.  For example, our iPod driver for io-audio has a "cap_name" 
argument for this.

-- 
Ryan J. Allen
QNX Software Systems


On 10-09-24 04:50 PM, Jeff Sheng wrote:
> Hello all,
>
> We use io-media to play stream data from Smartphone devices in our project. If the stream data is from Bluetooth phone
, I could use the following setting to play.
>
>            iom_attach_input(graphId, "snd:/dev/snd/pcmC3D0c", fid );
>
> Since it is different for smartphone which gets stream data from USB port, I don't know how to set url.
>
>            iom_attach_input(graphId, url, fid );
>
> Thanks for your advices,
> Jeff Sheng
>