21 May '13 - 14:30 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Rewire Support could be yours  (Read 1736 times)
BaseHead
Posts: 91


« on: 18 Aug '07 - 18:44 »
Reply with quoteQuote

Some might have read earlier posts that we were looking for someone to make BASS run with Rewire.
We Found someone and hired him long time ago and he did it and Finished it but my programmer/partner got really sick when he finished it and didn't get around to looking at the implementation for 3 months and in that time the REWIRE programmer disappeared (i think something bad happend to him) and we never got the source code cuz we were waiting to check it first and do changes.

Long Story short of what I need:
We have the Rewire engine DLL and the installer and the test app works fine that he made.
We have all the docs too!! (see below)
but when we try to load the DLL in or old VB6 program it doesn't load for some reason.
He is too busy to figure it out right now and we are willing to give this plugin to the first few guys that respond to this to see if they can get it running in their app and to tell us the tricks.

So Basically
Make it run in your app, tell us what we did wrong and get a Free Rewire Plugin for BASS...... Grin
shouldn't take more then 20 mins to pop it in from the look of the docs.
(See below)

We are thinking it's a VB6 problem, we are going to C# in the future but like to know if that is our problem or not.
the only downfall, since it's already been compiled, your app will play thru Rewire ports named BaseHead Rewire.

Email me to get the full kit
Cya!!

Steve
www.BaseHeadInc.com





-------------
Exported functions


 
int  BHRW_GetLastErrorCode()      
Retrieves the error code for the most recent function call.
      
BOOL BHRW_Init()      
Initializes an BHRWEngine.
      
BOOL BHRW_Free()      
Frees all resources used by the BHRWEngine.
      
BOOL BHRW_SetChannel(DWORD handle)      
Plugs a BASS channel into BHRWEngine.

handle    The handle of the BASS channel. Channel must be 32-bit floating-point decoding channel.

Example:
chid = BASS_StreamCreateFile(False, FileName, 0, 0, BASS_SAMPLE_FLOAT | BASS_STREAM_DECODE);
BHRW_SetChannel(chid);
      
BOOL BHRW_RemoveChannel()      
Unplugs a BASS channel from BHRWEngine.
      
BOOL BHRW_ResamplerEnable()      
Enable resampler.
BHRWEngine will resample source channel to match ReWire mixer application’s output sample rate.
      
BOOL BHRW_ResamplerDisable()      
Disable resampler.
      
BOOL BHRW_Play()      
Sends “Play” command to ReWire mixer application.
      
BOOL BHRW_Stop()      
Sends “Stop” command to ReWire mixer application.

   

Return values

All functions (except first one) returns TRUE if successful, FALSE otherwise, use BHRW_GetLastErrorCode() to get the error code.
Error codes


 
BHRW_ERROR_OK      
Duno what's that Smiley
      
BHRW_ERROR_INIT      
BHRW_Init has not been successfully called.
      
BHRW_ERROR_MEM      
Buy more RAM Smiley
      
BHRW_ERROR_PORT      
The communications port is not currently connected.
      
BHRW_ERROR_ILLPARAM      
Invalid parameter.
      
BHRW_ERROR_UNKNOWN      
Unknown error.
      
BHRW_ERROR_NOTFOUND      
The ReWire system DLL could not be found.
      
BHRW_ERROR_VERSION      
Installed ReWire system is to old for this ReWire implementation.
      
BHRW_ERROR_LOAD       
Failed to load the ReWire DLL.
      
BHRW_ERROR_ALREADY      
ReWire.dll already loaded.
      
BHRW_ERROR_CORRUPT      
Failed to read the ReWire dll from disk.
      
BHRW_ERROR_MIXERAPP      
Mixer application currently not running.
      
BHRW_ERROR_SIGNATURE      
Invalid signature.
      
BHRW_ERROR_HANDLE      
Invalid BASS channel handle.
      
BHRW_ERROR_CHANS      
Invalid number of channels. Only 1 (mono), 2 (stereo) and 6 (5.1) channels are supported.
      
BHRW_ERROR_RESAMPLER      
Can’t init resampler.
   

Example


 
Init, open, play…      
// Initialise Bass… "no sound" device - playing thru ReWire…
BASS_SetConfig(BASS_CONFIG_UPDATEPERIOD, 0);
BASS_SetConfig(BASS_CONFIG_FLOATDSP, 1);
BASS_Init(0, 44100, 0, Handle, nil);
// Initialise BHRW…
BHRW_Init();
// Open file as decoding channel…
chid = BASS_StreamCreateFile(False, FileName, 0, 0, BASS_SAMPLE_FLOAT | BASS_STREAM_DECODE);
//… and plug into BHRW…
BHRW_SetChannel(chid);
// Play…
BHRW_Play();
      
Stop, close, free…      
// Stop and unplug channel form BHRW…
BHRW_Stop();
BHRW_RemoveChannel();
// Free stream …
BASS_StreamFree(chid);
// Free BHRW…
BHRW_Free();
// Free BASS…
BASS_Free();   


Requirements

- bass.dll 2.3
- bassmix.dll 2.3 beta
- BHRWDevice.dll




Registering BHRWDevice

If you, for example, install BHRWDevice.dll into C:\Program Files\BaseHead\ReWire\ folder you have to create following key in registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Propellerhead Software\ReWire\BaseHead ReWire]
"Device Path"="C:\\Program Files\\BaseHead\\ReWire\\BHRWDevice.dll"



« Last Edit: 18 Aug '07 - 18:53 by BaseHead » Logged
BaseHead
Posts: 91


« Reply #1 on: 7 Mar '09 - 02:58 »
Reply with quoteQuote

Hey!
we thought we had it figured out but haven't had time fully make it work still since we got caught up in other things.

This offer is back on the table for anyone looking to get Rewire Support with Bass in their app.

PM or Email me for the kit of files we have.
Just make sure you send us all your findings and results to help us out once we get around to it implementing it again.

If you want to use it in a commercial product we can work something out too!



Steve

Logged
radio42
Posts: 4012


« Reply #2 on: 7 Mar '09 - 10:19 »
Reply with quoteQuote

Rewire sounds like a really nice option.
But I guess it would be much nicer, if this one could become globally available for everybody as a regular plugin.
Logged
JM-DG
Posts: 112


« Reply #3 on: 7 Mar '09 - 16:29 »
Reply with quoteQuote

I would be interested, if you could explain more what the problem really is... ??
As i understood you're not able to make it run. Are you asking us to make it run?? Smiley

I was also wondering was it ever capable to run??
If not could we debug the dll to make it work??
Logged
martin
Posts: 34


« Reply #4 on: 16 Mar '09 - 11:03 »
Reply with quoteQuote

any news about this?

regards
martin
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines