Author Topic: preamp and bass  (Read 1413 times)

BASSFAN

  • Posts: 5
preamp and bass
« on: 6 Dec '10 - 18:09 »
hello! everyone, forgive me for my English.
I program in delphi and I want to know what it is or how to change the preamp as bass.dll , like the image


thank you Ian thank you Ian for this great library you're the best  ;)

radio42

  • Posts: 4576
Re: preamp and bass
« Reply #1 on: 7 Dec '10 - 06:55 »
You might for example use the BASS_FX add-on using the BASS_FX_BFX_VOLUME effect.

BASSFAN

  • Posts: 5
Re: preamp and bass
« Reply #2 on: 7 Dec '10 - 09:52 »
Hello again.
radio42 thank you for the reply. the truth is that I try to use the month of possible library with my program .. I just tried your programs Mr radio42, is really a great job. in your program ProppFrexx WebRadio Player you do not use BASS_FX and you have an amp in the equalizer window, you can explain how you doing? thank you again and good luck everyone.

radio42

  • Posts: 4576
Re: preamp and bass
« Reply #3 on: 7 Dec '10 - 12:58 »
Yes, there I am using an own little DSPPROC set via BASS_ChannelSetDSP.
The DSPPROC looks pretty much like in the C# Simple sample, something like this (assuming you are also FLOAT sample data resp. the DSP_FLOAT config option):
Code: [Select]
private unsafe void DSPGain(int handle, int channel, IntPtr buffer, int length, IntPtr user)
{
    if (_gain == 1f || length == 0 || buffer == IntPtr.Zero)
        return;

    // length is in bytes, so the number of floats to process is length/4
    int l4 = length / 4;
    // cast the given buffer IntPtr to a native pointer to float values
    float* data = (float*)buffer;
    for (int a = 0; a < l4; a++)
        data[a] *= _gain;
}

BASSFAN

  • Posts: 5
Re: preamp and bass
« Reply #4 on: 7 Dec '10 - 15:19 »
thank you very much Mr. radio42, especially for the availability and sharing :)
good luck ..

Resolved