Author Topic: Windows API sound card functions  (Read 34543 times)

0 Members and 1 Guest are viewing this topic.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Windows API sound card functions
« Reply #15 on: November 18, 2009, 07:54:26 pm »
I think it's always best to generisize as much as possible.

I also do not believe that C-Media will always be the best choice of super cheap 7.1 sound devices.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: Windows API sound card functions
« Reply #16 on: November 18, 2009, 07:56:01 pm »
I just get frustrated because I see it a lot in open source projects, lots of people re-creating the wheel when their energies could be spent toward revolutionary improvements. I don't have the desire or time to do the direct interface on my own, but feel that we could accomplish it together and learn a lot in the process.

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Windows API sound card functions
« Reply #17 on: November 18, 2009, 07:56:26 pm »
I just realized that by going to USB as you suggest for the cmedia card you would eliminate all of the windows config nightmare that I hate.  But, you are still stuck with a single driver for a single chip so I don't think it would be worth it... unless you could buy a couple hundred of them and sell them as laser DACs with your driver.  That isn't a bad idea actually.

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: Windows API sound card functions
« Reply #18 on: November 18, 2009, 08:00:31 pm »
exactly! AND it could be set up to support multiple units of the same kind at once!
No it's not a bad idea, and did you know that the cm6206 drivers also work with cm106?  there are only so many ways to slice and dice 8 channel streaming data to USB.  Their future chips I expect would only require minor changes for compatibility.  Sure it would need software buffering like what I do now but that's no big deal, it's a given. 

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Windows API sound card functions
« Reply #19 on: November 18, 2009, 08:09:59 pm »
Well, you kind of have me interested in doing it just to see if it can be done now.  I have no idea how to write to a USB port without using something like a FTDI driver or virtual com port, though.  Also, when the device is detected by Windows it will want to install a driver.  I guess you would have to make it install your fake one instead and communicate through it.  I am not sure how that works but everyone is doing it so it can't be too hard to figure out.

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: Windows API sound card functions
« Reply #20 on: November 18, 2009, 09:29:13 pm »
Looks like a DDK must be downloaded.  It includes the compiler and samples.
http://www.osronline.com/article.cfm?article=20

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Windows API sound card functions
« Reply #21 on: November 18, 2009, 09:44:42 pm »
Yea, that part is pretty well documented.  It's the part about writing to the USB port that puzzles me.  I don't recall the data sheets for those devices saying anything about it but I haven't looked at one in a long time.

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Windows API sound card functions
« Reply #22 on: November 18, 2009, 10:00:53 pm »
Well, looks like there is some sort of standard USB audio device spec for all audio USB devices.  I found this pdf http://www.usb.org/developers/devclass_docs/audio10.pdf that talks about it.  Over 100 pages of mumbo jumbo.  I think I will go back to doing what i was doing now. LOL.

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: Windows API sound card functions
« Reply #23 on: November 18, 2009, 11:22:22 pm »
The good thing is that most of that doesn't apply, for this an audio streaming endpoint and HID endpoint are what is needed.  It does look complex, there must be an audio driver example code out there that would help

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal