GNOME Bugzilla – Bug 344129
[directsoundsrc] Plugin for Directsound source
Last modified: 2009-08-10 09:45:47 UTC
There is no Directsound source. I have written one. It is not complete yet, but it should work with 44100 16-bit mono/stereo. This is my first "real" GStreamer plugin so comments are very wellcome. Eighter I am not a Windows programmer. So comments and pathes please.
Created attachment 66903 [details] directsoundsrc source file Rate Directsoundsrc source files
Created attachment 66904 [details] directsoundsrc header file directsoundsrc headerfile
Comment on attachment 66903 [details] directsoundsrc source file Rare directsoundsrc source file
Created attachment 72239 [details] [review] Directsound plugin source, sink and Makefile.am patch This patch adds Directsoundsrc to directsound-plugin. There is also added Makefile.am and modified Directsoundsink to compile with DirectX7.
Created attachment 72240 [details] [review] configure.ac patch There is also directdrawsink included in this
Created attachment 72241 [details] [review] Patch to sys:s Makefile.am There is also directdrawsink included in this
Created attachment 72242 [details] [review] Makefile.am patch to DirectDraw I think there is no need to separate bug for this patch. This only adds Makefile.am to directdrawsink plugin.
There is problem with directsound capture buffers. On latest sound quality is bad and have to set sync to false if used with gst-launch. Like this gst-launch-0.10 directsoundsrc ! directsoundsink sync=false. When capture quality is fine and no sync needed. There is about 2s delay for outputting audio. I don't know is there problem with src and/or sink. If any one have some experience capturing with directsound. Help needed.
Just tested that alsasrc/sink seems to work similar way as directsoundsrc/sink. hmm. yes. No I trey to make soundquality as good as possible.
What's the status of this? Are you still working on it/improving it, or should the directsoundsrc code be added to the directsound plugin in -bad as it is in the patch? (that is assuming it works of course)
Oops, sorry, didn't realise no autotools stuff had been committed for this yet.
(In reply to comment #10) > What's the status of this? > > Are you still working on it/improving it, or should the directsoundsrc code be > added to the directsound plugin in -bad as it is in the patch? (that is > assuming it works of course) > I am workin on it as soon as I have time. I think it works but it might work better. There is some finetuning to be done. In my opinion it is not ready yet.
Are there any chances to get that working in the next month? I need to create multi-platform multimedia app and it would be nice to build it with GStreamer.
Created attachment 89085 [details] [review] New patch for directsoundsrc Better than last one, but not perfect.
Will this element get included in the next -bad release ?
> Will this element get included in the next -bad release ? Somewhat unlikely with good/ugly/bad being frozen tomorrow. Have you tested it? Does it work well for you? IIRC I asked the author on IRC if he thought it was ready to be committed and he said he'd rather work on it some more before, or something along those lines.
Nop, I didn't test it, but I can do that tomorrow (before the freeze), I have no windows machine nearby now. I think, that if it is at least a bit usable, it would be nice to include it (to -bad) so that people start contributing to it.
Yop, I have tried to test it but I get the following ERROR: from element /pipeline0/directsoundsrc0: Unable to open dsound.dll It seems the LoadLibrary("dsound.dll") failed. But it exists in system32. J.
hmm sorry it was about unicode, so the dll name was not reconized. This plugin works fine. Why this plugin is not on the plugins-bad cvs repository ? J.
Ok, I've committed this now to gst-plugins-bad. Please test if I broke anything while updating the patch. I can't unfortunately :) commit 0ddbe127eed5f5a2d5af2f9141386aea793277de Author: Joni Valtanen <joni.valtanen@movial.com> Date: Wed Jul 29 15:35:03 2009 +0200 directsoundsrc: Add DirectSound source plugin Fixes bug #344129.
ok I will do that next week.
Can be built with vs8. But I cannot check if it can be build with msys/mingw because there is no "dsound.h" in the official mingw-win32-api package. commit 4aea6354e0bddec37ac8b462e35f53a7f556abe8 Author: Julien Isorce <julien.isorce@gmail.com> Date: Mon Aug 10 11:40:13 2009 +0200 directsoundsrc: add vs8 project commit 94ece2054ca4d63a03dfa43dda8c2e9386c60c88 Author: Julien Isorce <julien.isorce@gmail.com> Date: Mon Aug 10 11:36:41 2009 +0200 directsoundsrc: LF and indent