![]() |
|
|||||||
| XBMC Development Developers forums for XBMC related development. Programmers/Coders only! No end-user support, no bug reports, and no feature/function requests here! Please, add platform prefix for suggestions that are not platform-independent!: Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]" |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 | |
|
Team MediaPortal
Join Date: Sep 2003
Posts: 509
![]() |
hi,
i'm setting up an architecture which allows other devs to develop a visualisation plugin for xbmc from the settings->music the end-user can select which visz. he/she wants and xbmc will use that one. so how does it work? first : 1. visz. plugins are normal .dlls but with the extension .vis 2. visz. plugins should b copied into the visualisations/ subdirectory on your xbox 3. visz. plugins must use a minimal set of dependencies. they should not depend on windows kernel/gdi or other things! so how to program one? here's a skeleton of a visz. plugin .dll: Quote:
xbmc will first call get_module() to retrieve the visualisation struct. the plugin will give xbmc the visualisation struct filled with function pointers to all visz. routines needed by xbmc well thats it for now. remember this is all premature. no plugins are available yet, but hopefully we'll see one soon frodo
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal |
|
|
|
|
|
|
#2 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 15,077
![]() |
frodo:
what a great interface! i wonder how long it will take me to port the spectrum analyser... ![]() perhaps having the possibility to transfer other information regarding the audio would be a good feature - things such as track, album, artist info etc. might be an idea? i'll look at compiling up the spectrum analyser plugin - the only other dependencies are xmldocument for loading the config file iirc. cheers, jonathan
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first.
|
|
|
|
|
|
#3 |
|
Team MediaPortal
Join Date: Sep 2003
Posts: 509
![]() |
hehehe, yeah i must admit i copied the ideas from you visz. classes :d
about copying more info, i'll see if i can come up with something frodo
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal |
|
|
|
|
|
#4 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 15,077
![]() |
that's cool. have you implemented the fft code + delay stuff? if so, i'll look at having a play with getting the sa into a dll. (i haven't done any dll based stuff before, so this should be an adventure - i may ask some questions when i get stuck)
cheers, jonathan
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first.
|
|
|
|
|
|
#5 | |
|
Team MediaPortal
Join Date: Sep 2003
Posts: 509
![]() |
Quote:
anyway i forgot 2 add a method to pass the vis_info struct. its added now (see updated skeleton above) when we got a basic plugin working i'll add other things like the album/artist etc info. about the dll, yes its tricky. compiling a .dll is easy, but we dont want any dependencies on windows. so i'm writing my own import libraries now which you can use. when its working i'll put it in cvs together with an complete working example plugin project frodo
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal |
|
|
|
|
|
|
#6 |
|
Team-XBMC Project Manager
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
![]() |
very cool, but just wondering how the customizable part in viz such as jmarshall's spectrum analyzer gonna work?
(maybe add a set of parameters inside that can be selected from within gui, and/or a seprate xml file for it?)
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
|
|
|
|
|
#7 | |
|
Team MediaPortal
Join Date: Sep 2003
Posts: 509
![]() |
Quote:
frodo
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal |
|
|
|
|
|
|
#8 | ||
|
Team-XBMC Project Manager
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
![]() |
Quote:
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
||
|
|
|
|
|
#9 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 15,077
![]() |
sounds good, frodo.
the vis_info struct i figured might be the way to transfer info in the future, but i hadn't really thought about it all that much, though. i had a play with doing some dll stuff last night. i basically just generated a .dll project, then "modified" it via editing the .vcproj file to use xbox stuff. had to muck around with .lib files to include when linking + still didn't get all the stuff it needed - i was kind of shooting in the dark to be honest! let me know when you have some import libraries sorted + the example project and i'll do the sa. cheers, jonathan
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first.
|
|
|
|
|
|
#10 |
|
Team MediaPortal
Join Date: Sep 2003
Posts: 509
![]() |
well here's the status so far.
1. i ported your spectrum analyser to a visz. dll 2. xbmc can load it 3. all the function calls seem 2 work (create/stop/start/render...) but the 2nd time i call render() it crashes my guess is that there's something wrong with the directx linking, so i'll look into it frodo
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LinVDR video/control client built-into XBMC (ex. streamdev plugin) | Boxler | XBMC Feature Suggestions | 31 | 2008-09-11 17:14 |
| Xbmc locks on to one plugin | tigerclaw | XBMC for Xbox Specific Support | 2 | 2005-08-13 03:56 |
| G-Force vis-plugin porting to XBMC, need help plz | questor/fused | XBMC Development | 24 | 2004-04-15 16:21 |
| Audioscrobbler plugin for xbmc | italic_dj | XBMC Feature Suggestions | 0 | 1970-01-01 02:00 |