|
Ionut Cristea
Posts: 1372
|
 |
« Reply #1680 on: 30 Aug '11 - 16:26 » |
Quote
|
Try with this
|
Bin.zip (92.04 KB - downloaded 28 times.)
|
|
|
Logged
|
|
|
|
|
Alpha_
Posts: 70
|
 |
« Reply #1681 on: 30 Aug '11 - 19:28 » |
Quote
|
hello,
have you any news/update concerning the problem i encounter with mod files ? simply load bass_dshow.dll and open a mod file (*.it, *.xm, *.s3m, *.umx, *.mod, *.mo3)
thanks
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1372
|
 |
« Reply #1682 on: 30 Aug '11 - 19:33 » |
Quote
|
I will post an update tommorow night.
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1683 on: 31 Aug '11 - 08:25 » |
Quote
|
Thanks man I will try tonight... Also I just see you are change BASS_DSHOW_ChannelGetInfo(HSTREAM chan,VideoInfo **nfo); xVideo_ChannelGetInfo(HSTREAM chan,xVideo_ChannelInfo *info); Bravo... I Also have a problem with **nfo  I hope this will work.
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1684 on: 1 Sep '11 - 06:11 » |
Quote
|
NOpe, nothing after library written 28.10.2010 DON'T work when I call your functions from bass... In a fact, my dll do NOT work when I import any of your library ( written after 28.10.2010)... Version BASS_DSHOW written just 2 days before 28.10, works perfectly , I have problem with 3-4 functions, and of course DVD don't work at all. And one more... I can't use any of function who export 'void' result.  It's ok, when expected result is TRUE or FALSE, but problem is when result seem's to be some info. Precise info will be... Version from your site 2.4.2 Do not work.. Link is http://surodev.com/downloads/BASS_DSHOW2.4.2.zipBut version from BASS forum http://surodev.com/downloads/BASS_DSHOW.zip works how I expect... ( with common problem what I tell before) I must mention to you, I do same think in both cases... and every time, version from BASS forum works, any other newer DO NOT. An one more think... WE NEED help files... Help file from forum is not for version which is for download from bass forum. Can you wrote to me here, example code ,how to retrieve channel_info ( with "VideoInfo **nfo" stuff?)
|
|
|
|
« Last Edit: 1 Sep '11 - 10:41 by zmmaj »
|
Logged
|
|
|
|
|
Chris
Posts: 1501
|
 |
« Reply #1685 on: 1 Sep '11 - 15:06 » |
Quote
|
BASS_DSHOW_ChannelGetInfo(HSTREAM chan,VideoInfo **nfo); xVideo_ChannelGetInfo(HSTREAM chan,xVideo_ChannelInfo *info);
hi should be BASS_DSHOW_ChannelGetInfo(HSTREAM chan,VideoInfo *info); xVideo_ChannelGetInfo(HSTREAM chan,xVideo_ChannelInfo *info); chris
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1686 on: 1 Sep '11 - 15:29 » |
Quote
|
Oh... I make for GM ( Game Maker) community a wrapper for BASS dll For now, I was implement almost all plugins whithout any problems. NOw gmbass.dll have more than 130 functions.,That is my goal...
I was think to implement and DSHOW dll in a same way, with your help...
If is that NOT possible due restrictions, or something else restrictions, no problem.
Simply... implementation of DSHOW.dll was been possible until you are publish version 2.4.2... That is a border of usability your plugin with BASS.dll... Second story is usability bass.dll with your DSHOW.dll I dont wana load your plugin with function LOadPlugin, my idea was been to implement all in one. So, I was tell you before, NOTHING after version DSHOW.dll wont work with bass. dll( include that 2.4.2 version)...
Thank you for your post, but please read post before your.
|
|
|
|
|
Logged
|
|
|
|
|
Latch
Posts: 89
|
 |
« Reply #1687 on: 2 Sep '11 - 04:58 » |
Quote
|
I see in the documentation there is support for adding a second display of the same video. How is this accomplished? Our app needs to display a small video on screen one and a second "copy" of the video playing on a second screen on a different window. Setting the video window only moves the same video around to different windows. How do you display a second copy? Do I need to create a second stream? You sent me the documentation for xVideo which I see has a ChannelAddWindow method. Is this not an option in BassDSHOW?
I remember when we first added the Bass engine to our app 5 years ago, there were plenty of samples in the forum on the exact steps for opening and playing a file. Bass_DSHOW needs something like this. It's all trial and error at this point for us. We're using VB.Net and we're glad the Bass.Net finally caught up with your 2.4.2 version and we're trying to implement it and replace our old BassVideo DLL, but the Bass.Net does supply code samples except for individual methods. What we need is the order in which each method should be called one after another..etc... I got a video to play with sound but the size is too small so I guess I'm implementing the video resize method incorrectly. Again, code samples would be nice.
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1372
|
 |
« Reply #1688 on: 2 Sep '11 - 06:52 » |
Quote
|
Yes, BASS_DSHOW supports too a infinite number of new added video windows using xVIdeo_ChannelAddWindow Function. Here are some delphi samples that show some features of xVideo/BASS_DSHOW. Best regards. Ionut http://surodev.com/downloads/Delphi.zip
|
|
|
|
|
Logged
|
|
|
|
|
Latch
Posts: 89
|
 |
« Reply #1689 on: 2 Sep '11 - 16:02 » |
Quote
|
Unfortunately Bass.Net doesn't support xVideo calls. You really should merge the two into one DLL with one config option set to use Bass or not to use Bass. That would make things a lot easier for everyone, including yourself since you'd only have one code base. Also, I notice you sent me an updated BassDSHOW DLL in a message and the file date is newer (Aug 2011), but when looking at the file in windows, it shows no version number AND when attempting to use it, Visual Studio stops and reports immediately on the BassDShow.BASS_DSHOW_Init call that there is no entry point in the DLL for the INIT call. So, I stuck with the latest official 2.4.2 version, but even that has many issues. For example, it crashes on the StreamFree call. Also, the video continues to play when calling the pause or stop functions. I'm sending the resize method the correct window size, but still shows a tiny image. I know they're the correct height and widths because the same measurements sent to the old BassVideo DLL show the video at the exact size we ask of it.
I would take the time to write a .Net wrapper class myself for the xVideo DLL but I need to see that this thing actually works before investing any more time. Keep working on it. I'm sure there are a lot of developers like our company that are just dying to send you the money for the commercial license once you get it working.
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1690 on: 2 Sep '11 - 17:25 » |
Quote
|
"I stuck with the latest official 2.4.2 version" That I said exactly. For me is functional version written 3 days before version 2.4.2...
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1372
|
 |
« Reply #1691 on: 2 Sep '11 - 19:20 » |
Quote
|
Insert Quote Unfortunately Bass.Net doesn't support xVideo calls. You really should merge the two into one DLL with one config option set to use Bass or not to use Bass. That would make things a lot easier for everyone, including yourself since you'd only have one code base. Also, I notice you sent me an updated BassDSHOW DLL in a message and the file date is newer (Aug 2011), but when looking at the file in windows, it shows no version number AND when attempting to use it, Visual Studio stops and reports immediately on the BassDShow.BASS_DSHOW_Init call that there is no entry point in the DLL for the INIT call. So, I stuck with the latest official 2.4.2 version, but even that has many issues. For example, it crashes on the StreamFree call. Also, the video continues to play when calling the pause or stop functions. I'm sending the resize method the correct window size, but still shows a tiny image. I know they're the correct height and widths because the same measurements sent to the old BassVideo DLL show the video at the exact size we ask of it.
I would take the time to write a .Net wrapper class myself for the xVideo DLL but I need to see that this thing actually works before investing any more time. Keep working on it. I'm sure there are a lot of developers like our company that are just dying to send you the money for the commercial license once you get it working. Ok...so for all users: the new BASS_DSHOW is a "lite" version of xVideo,because audio precessing is made with BASS. I've decided to let the same functions like in xVideo so when i update xVideo, BASS version of it can be update easily too. About .NET version, i've already talked with Bernd to implement it, so users that use .NET have to wait for it  Latest official BASS_DSHOW version is this: http://surodev.com/downloads/BASS_DSHOW.zip
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1692 on: 2 Sep '11 - 21:52 » |
Quote
|
Nope... This version 'Lite' (or something else) is unusable with BASS.dll Second story is if your library can't work without bass, but, definitely bass.dll can't work with your new library. Please just fix your old library from date 14.06.2010 in 12.01min ... simply nothing after that date and time wana work. every never version make unusable all bass.dll when I import BASS_DSHOW library Better is if we can use something from BASS_DSHOW than nothing If is that not possible Ok, and Thank you. I don't wana loose my time any more with this BASS plugin.
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1372
|
 |
« Reply #1693 on: 2 Sep '11 - 22:05 » |
Quote
|
I simply don't understand how do you say that don't work. Just simply Load this new version as a BASS plugin and all will work just fine 
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1694 on: 2 Sep '11 - 22:20 » |
Quote
|
Simply in game maker that is not possible. That is way I make a wraper... So, until now i was import almost all plugins AND your DSHOW without problem until you something change in library... That change make my wraper unusable completely. I was wrote in post before last date of DSHOW who WORK with minor problems ( DLL don't work, and some functions like Get_ChannelInfo (with VideoInfo **nfo stuff)). After that date nothing work at all. Possible problem is next line : #define xVideoDEF(f) WINAPI f You haven't nothing similar in working version of DSHOW. Hmmm, I think I understand what you mean when you told me to load in as plugin... that I was never try... But i will now  Yes i was try, and nothing happend. Only place where i can call load_plugin is wraper itself ( a gmbass.dll) , in that case I again must to load and your library and all is unusable, again. 
|
|
|
|
« Last Edit: 2 Sep '11 - 22:38 by zmmaj »
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1372
|
 |
« Reply #1695 on: 2 Sep '11 - 22:26 » |
Quote
|
Can you tell me how you declare some of the functions that don't work?
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1696 on: 2 Sep '11 - 22:40 » |
Quote
|
After I load your new library in wraper, my wraper dll won't work at all... With old library work...
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1697 on: 2 Sep '11 - 22:44 » |
Quote
|
just for example here it is some code from wraper
//this is from FX plugin export double GM_BASS_FXGetParametersEQ(double handle,double params){ BASS_DX8_PARAMEQ p; BASS_FXGetParameters( (DWORD)handle,&p); if (params==0){ return (double)(DWORD) p.fCenter;} if (params==1){ return (double)(DWORD) p.fBandwidth;} if (params==2){ return (double)(DWORD) p.fGain;}
return (double)1; }
// DVD *********************************************************************** export double GM_xVideo_Init(double handle,double type){ DWORD resenje; if (type==0){resenje=(xVideo_Init((HWND)(DWORD) handle,0));} //normal mode if (type==1){resenje=(xVideo_Init((HWND)(DWORD) handle,xVideo_MultiThread));} //normal mode return (double)(DWORD)resenje; }
in this way WONT work BUT:
export double GM_BASS_DSHOW_ChannelGetLength(double chan){ return (double)(QWORD)(BASS_DSHOW_ChannelGetLength((HSTREAM)(DWORD) chan)); }
export double GM_BASS_DSHOW_ChannelGetPosition(double chan){ return (double)(QWORD)(BASS_DSHOW_ChannelGetPosition((HSTREAM)(DWORD)chan)); }
export void GM_BASS_DSHOW_ChannelSetPosition(double chan ,double pos){ return BASS_DSHOW_ChannelSetPosition((HSTREAM)(DWORD) chan ,(QWORD) pos); }
export void GM_BASS_DSHOW_ChannelResizeWindow(double chan,double left,double top, double right, double bottom){ return BASS_DSHOW_ChannelResizeWindow((HSTREAM)(DWORD) chan,(int)left,(int) top, (int) right, (int) bottom); }
export double GM_BASS_DSHOW_ChannelPause(double chan){ return (double)(DWORD) BASS_DSHOW_ChannelPause((HSTREAM)(DWORD) chan); }
export void GM_BASS_DSHOW_ChannelSetFullscreen(double chan,double value){ return (BASS_DSHOW_ChannelSetFullscreen((HSTREAM)(DWORD) chan, value)); }
THIS CODE WORK LIKE CHARM ...
AND THIS IS Start of main.cpp
#pragma warning(disable : 4996)
#define WIN32_LEAN_AND_MEAN #define NOGDI #define BUFFER_SIZE 256 #include <windows.h> #include <iostream> #include <commctrl.h> #include <mmsystem.h> #include <stdlib.h> #include <bassmix.h> //<-- inside I call bass.h, so I call bass.h only once and herre #include <bassenc.h> #include "basswma.h" //#include <BASS_DSHOW.h> // this #include <xVideo.h> // and this I change with every new library #include <stdio.h> #include <math.h> #include <string.h> #include <fstream>
HWND winhandle; using namespace std; #define MAX_LOADSTRING 100 #define export extern "C" __declspec (dllexport) bla bla bla...
In both cases I can compile gmbass.dll without errors... but that compiled gmbass.dll work only with old DSHOW library and DSHOW.dll. and DSHOW.h With never version i can't even initialise gmbass.dll, that mean , nothing work at all.
|
|
|
|
« Last Edit: 2 Sep '11 - 23:12 by zmmaj »
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1372
|
 |
« Reply #1698 on: 3 Sep '11 - 07:16 » |
Quote
|
Try not to calll xVideo_Init function. In most cases it is called automatically inside.
|
|
|
|
|
Logged
|
|
|
|
|
zmmaj
Posts: 80
|
 |
« Reply #1699 on: 3 Sep '11 - 21:53 » |
Quote
|
NO NO... I don't need to call any of new functions... I was going step by step, and check... In the moment when Load any of you new library ( BASS_DSHOW.lib ver 2.4.2 or this nevest, and without calling any of functions, when I compile dll, they stop working.
BUT if I load your OLD library ( in a same way as new), my dll works fine.
Today I was import new plugin in gmbass.dll that is VST plugin. But I am stock with your plugin.
|
|
|
|
« Last Edit: 3 Sep '11 - 22:17 by zmmaj »
|
Logged
|
|
|
|
|