IPB

Welcome Guest ( Log In | Register )

Winamp 2 Kernel Streaming Output Plugin, Wanna try out my KS output plugin for WA
Chun-Yu
post Nov 29 2002, 01:52
Post #1





Group: Developer
Posts: 359
Joined: 29-October 02
Member No.: 3652



I just wrote a simple Kernel Streaming output plugin for WA2 - check it out at http://www.cs.indiana.edu/~cshei/out_ks.dll. It's very experimental right now - it just uses the first output device it finds, and it's currently hard-coded to use 10 output buffers (so it might skip if you have all those WinXP visual effects enabled). Source code is at http://www.cs.indiana.edu/~cshei/out_ks.zip (a VC++ .NET project - sorry VC++ 6 users). I just wrote it this afternoon, because Microsoft released a Kernel Streaming demo today smile.gif. I'll be adding tons of stuff soon, including SSRC resampling (for those who are blessed with fixed sampling rate DACs wink.gif ) and selection of output device and # of buffers.

Annuka: using Kernel Streaming should prevent ALL other programs from using the sound device, which should solve the "Silence Flash" problem.

Edit: By the way, if you do give it a try, give me some comments/suggestions

This post has been edited by Chun-Yu: Nov 29 2002, 01:54
Go to the top of the page
+Quote Post
 
Start new topic
Replies
hustbaer
post Jun 29 2004, 01:05
Post #2


HeadPlug Developer


Group: Developer
Posts: 46
Joined: 28-March 03
From: where no man has gone before
Member No.: 5706



@ricky_casson:

ahm. i wouldn't want to use c# for such a thing, but if you really really want...
...just pack it into a nice COM interface and use COM interop.

(creating a COM component is really pretty simple using VS2003 and attributed C++ code)

that way you'll at least get rid of the damed "managed" stuff and be fine with knowing when what happens and why in advance and not only after spending 100s of hours in the debugger.

i mean .net ist sure a neat thing for applications, but trying to pack something that handles hardware stuff at a pretty low leven (as compared to typical .net code) is nothing i'd ever want to do.

just make sure your component is at least free threaded and that you don't do any "nasty" stuff from event-handlers up in the managed code.
(e.g. making an existing control visible for the first time from a COM interop event handler is not a good thing. locks up your code - need to call .CreateControl() first because of threading issues. thanks MS)

EDIT:

anyone knows what's the official way to get those KS utility-classes from MS? are they DDK, SDK, ... ? (DX SDK summer 2003 don't even mention them)

regards,
hustbaer

This post has been edited by hustbaer: Jun 29 2004, 01:07


--------------------
use headphones? give HeadPlug dsp plungin a try:
http://www.stereo-balance.net
Go to the top of the page
+Quote Post

Posts in this topic
- Chun-Yu   Winamp 2 Kernel Streaming Output Plugin   Nov 29 2002, 01:52
- - cynix   will kernel streaming allow me to play mp3s while ...   Nov 29 2002, 02:36
- - Peter   out_ks.dll apparently needs msvc7 dlls, which i do...   Nov 29 2002, 02:38
- - Gabriel   Sorry, but what does "kernel streaming" ...   Nov 29 2002, 09:03
- - cynix   QUOTE (Gabriel @ Nov 29 2002 - 07:03 PM)Sorry...   Nov 29 2002, 11:14
- - WaldoMonster   What are the advantages over a directsound output?   Nov 29 2002, 14:49
- - Peter   from my short IRC survey, you should give it a try...   Nov 29 2002, 15:03
- - Chun-Yu   Ok - point taken, Peter. Although I don't thi...   Nov 29 2002, 15:19
- - Peter   "low-latency output" is totally useless ...   Nov 29 2002, 15:53
- - Jasper   Actually low-latency output doesn't have to (e...   Nov 29 2002, 16:18
- - Peter   depends what else you are using the computer playi...   Nov 29 2002, 16:25
- - Chun-Yu   QUOTE (zZzZzZz @ Nov 29 2002 - 06:53 AM)...   Nov 29 2002, 16:36
- - Peter   yeah yeah. your plugin isn't creating threads,...   Nov 29 2002, 16:45
- - Chun-Yu   Ah! - now I see what you mean! My plugin ...   Nov 29 2002, 17:03
- - Peter   i believe that exact effect depends on your driver...   Nov 29 2002, 17:11
- - Chun-Yu   I'll look into it (probably just try it on a b...   Nov 29 2002, 18:14
- - Case   QUOTE (Chun-Yu @ Nov 29 2002 - 02:52 AM)...   Nov 30 2002, 14:12
- - Chun-Yu   QUOTE (Case @ Nov 30 2002 - 05:12 AM)QUOTE (C...   Dec 1 2002, 18:32
- - jrj   On my system, currently using only a Realtek AC97 ...   Dec 2 2002, 07:21
- - Chun-Yu   QUOTE (jrj @ Dec 1 2002 - 10:21 PM)On my syst...   Dec 2 2002, 14:24
|- - va3atc   QUOTE (Chun-Yu @ Dec 2 2002, 05:24 AM)QU...   Sep 11 2004, 22:24
- - jrj   After a little further experimentation, it looks l...   Dec 4 2002, 08:33
|- - krabapple   QUOTE (jrj @ Dec 4 2002, 02:33 AM)After a lit...   Dec 29 2005, 07:52
|- - Steve Monks   QUOTE (krabapple @ Dec 29 2005, 07:52 AM)How ...   Dec 31 2005, 17:14
- - c^2   Any update on your progress, Chun-yu? I'm rea...   Dec 14 2002, 05:08
- - thomaspf   Chun-Yu, great effort! A kernel streaming out...   Dec 29 2002, 20:12
- - KikeG   Ehm... any update on the plugin, Chun-Yu?   Apr 23 2003, 07:50
- - Chun-Yu   Not yet - been real busy. Should have much more t...   Apr 23 2003, 14:21
- - GaBMaTrIx   Hi, I'm really seeking forward any update to ...   Jun 1 2003, 06:43
- - Hiwi   Hi! I wanted to try the plugin, too. Using C...   Jun 23 2003, 16:58
- - Chun-Yu   I don't quite remember, but I think kernel str...   Jun 23 2003, 17:13
- - Hiwi   Thanks for your reply Chun-Yu! I was just thi...   Jun 23 2003, 23:15
- - Hiwi   Thanks for your reply Chun-Yu! I was just thi...   Jun 23 2003, 23:16
- - mackthen   wow, the improvement in sound when I use this is a...   Jul 1 2003, 19:55
- - AstralStorm   Kernel Streaming just bypasses the mixer and its v...   Jul 1 2003, 20:07
- - Geeck   QUOTE (mackthen @ Jul 1 2003 - 07:55 PM)wow, ...   Jul 1 2003, 20:22
- - mackthen   could it be that my sound levels on my system are ...   Jul 1 2003, 20:41
- - ZAKGUY   I love the concept of this plug-in 'cause like...   Aug 30 2003, 19:26
- - Chun-Yu   That's weird - it goes on to the next song jus...   Aug 30 2003, 19:34
- - ZAKGUY   I assume that this is a Winamp plugin and if so, w...   Aug 30 2003, 19:39
- - ZAKGUY   Alright I answered my own question and it is a dif...   Aug 30 2003, 19:45
- - Chun-Yu   2.91, from http://classic.winamp.com/.   Aug 30 2003, 19:48
- - ZAKGUY   I think I used to have that one and went back to a...   Aug 30 2003, 19:56
- - askoff   ZAKGUY: Maybay it's time for you to change aud...   Aug 30 2003, 21:14
- - Pio2001   I've got a problem that sound a bit similar : ...   Aug 30 2003, 21:48
- - ZAKGUY   Whoa, you're a genius that worked. Thanks a b...   Aug 31 2003, 00:57
- - Krobar   Thanks for writing that plugin Chun-Yu, I can pas...   Nov 7 2003, 18:24
- - quazi   this is weird. While using the plugin, I still go...   Nov 21 2003, 20:41
- - ricky_casson   Does anyone have any tips for what I should do to ...   Dec 18 2003, 19:02
- - neithern   I have read the source code of the output plugin, ...   Jun 16 2004, 02:43
- - Chun-Yu   The Wave volume slider may not work, but the main ...   Jun 16 2004, 15:17
- - neithern   QUOTE (Chun-Yu @ Jun 16 2004, 06:17 AM)T...   Jun 17 2004, 01:47
- - hustbaer   @ricky_casson: ahm. i wouldn't want to use c#...   Jun 29 2004, 01:05
- - hustbaer   @Chun-Yu: nice work :-) i don't know if you a...   Jun 29 2004, 02:04
- - nitecrawler   Im using WA. I'm Going Nutz... with this ...   Aug 29 2004, 22:50
- - Chun-Yu   <cough> foobar2000 </cough> Another s...   Aug 30 2004, 01:18
- - Sicter   Is there any ASIO or KS solutions for DirectShow b...   Sep 11 2004, 23:47
- - AstralStorm   As far as I know, there's none. DirectShow plu...   Sep 12 2004, 11:42
- - Sicter   Err, DirectShow plug-ins can be anything not just ...   Sep 12 2004, 12:14
- - Vertigo   Yes, you can pass directshow to winamp...otherwise...   Mar 29 2005, 04:35
- - Steve Monks   Hi, I've spent a little time reworking Chun-Yu...   Dec 5 2005, 22:17
- - Steve Monks   Looks like I spoke to soon about the stability. I...   Dec 8 2005, 01:14
|- - bansal98   QUOTE (Steve Monks @ Dec 8 2005, 05:44 AM)Loo...   Dec 8 2005, 07:42
|- - Steve Monks   I could implement the volume control, but it defea...   Dec 10 2005, 11:52
- - Steve Monks   I've fixed the pause problem mentioned above (...   Dec 10 2005, 20:10
|- - bansal98   QUOTE (Steve Monks @ Dec 11 2005, 12:40 AM)I...   Dec 12 2005, 07:14
|- - Steve Monks   Hi Manish, can you give me a little more details a...   Dec 12 2005, 23:37
|- - bansal98   Thanks Steve. The DSPs are working now. Is there a...   Dec 13 2005, 06:20
- - iTCHYmix   Hello. Good to see some progress on this (other t...   Dec 16 2005, 09:21
|- - Steve Monks   Hi iTCHYmix, thanks for the feedback. Yes, I...   Dec 16 2005, 18:21
- - Steve Monks   Hi all, there's an updated version of the Kern...   Dec 24 2005, 17:24
- - Hyperion   Thanks for your hard work,Steve!   Dec 24 2005, 23:06
|- - bansal98   Thanks a lot!   Dec 27 2005, 08:01
- - Gabes Dad   Steve, Great work. One question, does anyone els...   Dec 28 2005, 20:39
|- - Steve Monks   Hmm, I see what you mean. Looks like the plugin is...   Dec 28 2005, 21:45
- - Steve Monks   I've posted a new version of the plugin (V2.4)...   Dec 31 2005, 16:45
- - ivalladt   Is Winamp 2 still downloadable from anywhere?   Dec 31 2005, 19:07
|- - Steve Monks   QUOTE (ivalladt @ Dec 31 2005, 07:07 PM)Is Wi...   Dec 31 2005, 19:56
- - punkrockdude   Thanks for this plugin! My brother has tried t...   Dec 31 2005, 20:30
|- - Steve Monks   Your welcome, I hope it does the trick for him, al...   Dec 31 2005, 20:50
- - punkrockdude   I am using E-MU 1820M with the latest 1.81 drivers...   Jan 1 2006, 07:21
- - Steve Monks   There's a new version of the plugin (V2.5) her...   Jan 1 2006, 22:55
|- - punkrockdude   QUOTE (Steve Monks @ Jan 1 2006, 11:55 PM)I...   Jan 2 2006, 03:48
- - callmeace   Thankyou very much for your improvements and time ...   Jan 2 2006, 05:38
|- - Steve Monks   Thanks for the feedback guys, it's really appr...   Jan 2 2006, 13:00
|- - punkrockdude   QUOTE (Steve Monks @ Jan 2 2006, 02:00 PM)I...   Jan 2 2006, 16:53
|- - Steve Monks   QUOTE (punkrockdude @ Jan 2 2006, 04:53 PM)I ...   Jan 2 2006, 17:16
|- - punkrockdude   QUOTE (Steve Monks @ Jan 2 2006, 06:16 PM)QUO...   Jan 2 2006, 17:56
- - Gabes Dad   Steve, I don't know if you have used ASIO4all...   Jan 2 2006, 18:13
|- - Steve Monks   QUOTE I don't know if you have used ASIO4all o...   Jan 2 2006, 18:28
|- - Steve Monks   There's an alpha version of the new plugin ava...   Jan 3 2006, 14:47
- - punkrockdude   Great work Steve! I can't seem to get any ...   Jan 3 2006, 16:22
|- - Steve Monks   QUOTE (punkrockdude @ Jan 3 2006, 04:22 PM)Gr...   Jan 3 2006, 16:29
- - Gabes Dad   The new alpha plugin is working well here for me a...   Jan 3 2006, 16:53
|- - Steve Monks   QUOTE (Gabes Dad @ Jan 3 2006, 04:53 PM)The n...   Jan 3 2006, 17:35
- - punkrockdude   When it stuttered... What other stuff was running...   Jan 3 2006, 17:39
|- - Steve Monks   QUOTE (punkrockdude @ Jan 3 2006, 05:39 PM)Wh...   Jan 3 2006, 17:52
|- - punkrockdude   QUOTE (Steve Monks @ Jan 3 2006, 06:52 PM)Whe...   Jan 3 2006, 19:56
- - Steve Monks   Hi all. V3.0 is now available for download. This ...   Jan 3 2006, 23:10
- - Gabes Dad   QUOTE (Gabes Dad @ Jan 3 2006, 10:53 AM)Edit:...   Jan 4 2006, 17:27
4 Pages V   1 2 3 > » 


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th September 2014 - 00:20