Re: question about sampling rate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Grace Baldonasa wrote:
> yes, i did set the alternate setting. The currrent endpoint should be able
> to handle the stream data since the maxpacketsize is 56, the max sampling
> rate it support is 55kHz, but as I mentioned in my previous email, it's only
> noise that I can hear from the speaker.

What is the output of "lsusb -v" for this device?

> I used a converted raw data in hex format, I am not really sure what is the
> sampling bit, sampling rate or number of channels used when conversion was
> made to the raw data, I am in doubt the sampling bit / channels does  not
> fit with my experimentations.
> 
> Can you recommend some application that will allow me to convert small wav
> to hex as array of characters that I could use to stream.

Some Python script like this:

f = open("something.wav", "rb")
while 1:
	c = f.read(1)
	if not c:
		break
	print "0x%02x," % ord(c)
f.close()


HTH
Clemens

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux