[vlc-devel] [Patch] Windows WaveOut
Andre Weber
WeberAndre at gmx.de
Thu Feb 28 20:56:24 CET 2008
Hello,
ok I made so far I know -- all request changes from courmisch -- without breaking too
much on the working code of waveout.c
And simplified the code a little bit more, in case that the aout Queue runs out of buffers,
there is not need to deal twice with the same problem - made code smaller and easier
to understand. (I hope)
-- removed the C-Code from initialization (because List refresh now works in QT, its
not longer necessary to have it)
-- changed some variable stuff to use the convinient macros :-)
André
---
Atmo
----- Original Message -----
From: "Andre Weber" <WeberAndre at gmx.de>
To: "Mailing list for VLC media player developers" <vlc-devel at videolan.org>
Sent: Tuesday, February 26, 2008 7:40 PM
Subject: Re: [vlc-devel] [Patch] Windows WaveOut
Hallo,
>> Seems like you are missing a change_need_restart() statement...
mmh - where is this statement to put in? (ok will look into other modules using it)
>>Also please DO
>>NOT put normal C code in the plugin header. This has already caused very
>>weird or difficult to trace bugs, and it makes any change to the plugin
>>macros very difficult. Besides, I suspect your patch will break the plugins
>>cache if the device lists changes later on.
currently its the problem - the list of sound devices, needs to be initialziled
based on the windows config, before showing it - how shall I do this later?
allways force the user to push the button for updating? and choosing another device?
Especially with hotplugable audio usb devices? -- I have there the button to update
the list - but this doesn't work currently - inside QT gui, with WxWidgets it
works like expected.
>>As a side note, there are shortcuts for var_Create/var_Get nowadays.
may be the current trunk version of waveout.c still used these may be "old functions"
- so I wasn't in the mood to change this -- but you self know the documentation
is very less in this area - so its not easy for me to find allways the best solution
in means of VLC api - to write clean code. -- most information is retrieved
through looking into other modules, and copy from there, but if there are too many
ways to achieve things... its not easy to choose the most up to date method...
(without a very good up to date, api list - showing functions not to use, or macros
to use as replacement ...)
André
-------
Atmo
Le Tuesday 26 February 2008 20:20:47 Andre Weber, vous avez écrit :
> Hallo,
>
> this time without attached .zip *g* but with link to zipped diff file -
> because its too big for the mailing list...
> http://eldo.gotdns.com/waveout.zip (only for short time available, if you
> see me on IRC the file will be available..)
Seems like you are missing a change_need_restart() statement... Also please DO
NOT put normal C code in the plugin header. This has already caused very
weird or difficult to trace bugs, and it makes any change to the plugin
macros very difficult. Besides, I suspect your patch will break the plugins
cache if the device lists changes later on.
As a side note, there are shortcuts for var_Create/var_Get nowadays.
--
Rémi Denis-Courmont
http://www.remlab.net/
----- Original Message -----
From: "Rémi Denis-Courmont" <rdenis at simphalempin.com>
To: <vlc-devel at videolan.org>
Sent: Tuesday, February 26, 2008 7:29 PM
Subject: Re: [vlc-devel] [Patch] Windows WaveOut
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: waveout.diff
Type: text/x-diff
Size: 30486 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080228/54b0490b/attachment.diff>
More information about the vlc-devel
mailing list