Hello,
Been using BASS in Windows for a while on personal projects and have been loving its capabilities!
Trying to port my stuff over to Linux, however, and i am not sure how to pass the X11 Window in as the fourth parameter of BASS_Init. Using SDL2 for graphics and windows handling, if anyone's familiar with that and that helps in answering my question.
Here's a snippet of my code:
SDL_SysWMinfo systemInfo;
SDL_VERSION(&systemInfo.version);
SDL_GetWindowWMInfo(gWindow, &systemInfo);
Window hwnd = systemInfo.info.x11.window;
BASS_Init(-1, 44100, 0, hwnd, NULL);
...and the error it returned:
main.cpp:100:33: error: invalid conversion from 'long unsigned int' to 'void*' [-fpermissive]
Have dabbled only a little with Linux before, but never with the programming side of it, so figured it was best to ask here, given my searches not resulting in anything obvious about how to deal with the long unsigned int <-> void * mismatch when it comes to X11 Window Handles. Looked briefly at xlib, but didn't see anything obvious there, and wasn't sure where to look beyond their usage of Window.
For comparison, the equivalent Windows (OS) code works:
SDL_SysWMinfo systemInfo;
SDL_VERSION(&systemInfo.version);
SDL_GetWindowWMInfo(gWindow, &systemInfo);
HWND hwnd = systemInfo.info.win.window;
BASS_Init(-1, 44100, 0, hwnd, NULL);
Thanks for any help anyone can provide!
TOG