Výsledky 1 až 14 z 14

Téma: NActeni stereovawky

Hybrid View

Předcházející příspěvek Předcházející příspěvek   Další příspěvek Další příspěvek
  1. #1
    Senior Member Avatar uživatele Anduril
    Založen
    12.10.2002
    Bydliště
    OVA, OL
    Věk
    42
    Příspěvky
    3 474
    Vliv
    323

    Standardní Re: NActeni stereovawky

    Tak jak pise mike.pr to jde, ale jak sam pise, (L-R)/2 je celkem spatny filtr..
    Vsak muzete zkusit...upravil jsem priklad z FMOD Ex baliku pro tento pripad.


    Kód:
    FMOD_RESULT F_CALLBACK myDSPCallback(FMOD_DSP_STATE *dsp_state, float *inbuffer, float *outbuffer, unsigned int length, int inchannels, int outchannels) 
    { 
        unsigned int count, userdata;
        int count2;
        char name[256]; 
        float diff = 0.0f;
        FMOD_DSP *thisdsp = dsp_state->instance; 
    
        /* 
            This redundant call just shows using the instance parameter of FMOD_DSP_STATE and using it to 
            call a DSP information function. 
        */
        FMOD_DSP_GetInfo(thisdsp, name, 0, 0, 0, 0);
    
        FMOD_DSP_GetUserData(thisdsp, (void **)&userdata);
    
        /*
            This loop assumes inchannels = outchannels, which it will be if the DSP is created with '0' 
            as the number of channels in FMOD_DSP_DESCRIPTION.  
            Specifying an actual channel count will mean you have to take care of any number of channels coming in,
            but outputting the number of channels specified.  Generally it is best to keep the channel 
            count at 0 for maximum compatibility.
        */
        for (count = 0; count < length; count++) 
        { 
            diff = (inbuffer[(count * inchannels) + 0] - inbuffer[(count * inchannels) + 1]) * 0.5f; // filtr hlasu
    
            /*
                Feel free to unroll this.
            */
            for (count2 = 0; count2 < outchannels; count2++)
            {            
                outbuffer[(count * outchannels) + count2] = diff;
            }
        } 
    
        return FMOD_OK; 
    }
    Download: http://files.cikl.eu/vr.zip
    ntb: HP EliteBook 8460p i7-2640M | 8GB RAM | 120GB SSD + 500GB HDD | ATi HD6470 | 14" HD+ | W7 PRO
    home: HP Docking Station | HP L2045W | WD 500GB Scorpio Blue USB box
    work: HP Docking Station | HP L2445W
    audio: Epiphone G-400 SG + Sounder Telecaster | E-MU 0202 | Cambridge Audio Azur 340R | Wharfedale Diamond 9.2 | Magnat Betasub 20A | Sennheiser HD555

  2. #2

    Standardní Re: NActeni stereovawky

    JJ rikal jsem ze je to spatny filtr,
    ale udelat poradny uz takova sranda neni a hodne verejne dostupnych voice removal pluginu funguje stejne takhle.

    Takze leda bud vice studovat a zkouset, protoze pokud nekdo tohle sam neresil, tak tu uz asi lepsi rada nebude

  3. #3
    Senior Member Avatar uživatele Anduril
    Založen
    12.10.2002
    Bydliště
    OVA, OL
    Věk
    42
    Příspěvky
    3 474
    Vliv
    323

    Standardní Re: NActeni stereovawky

    Ted jsem jeste zkousel plugin do foobaru - http://pelit.koillismaa.fi/plugins/show.php?id=192
    - ma pouzivat FFT, ale vysledek neni o nic moc lepsi nez predchozi zpusob..
    ntb: HP EliteBook 8460p i7-2640M | 8GB RAM | 120GB SSD + 500GB HDD | ATi HD6470 | 14" HD+ | W7 PRO
    home: HP Docking Station | HP L2045W | WD 500GB Scorpio Blue USB box
    work: HP Docking Station | HP L2445W
    audio: Epiphone G-400 SG + Sounder Telecaster | E-MU 0202 | Cambridge Audio Azur 340R | Wharfedale Diamond 9.2 | Magnat Betasub 20A | Sennheiser HD555

Informace o tématu

Users Browsing this Thread

Toto téma si právě prohlíží 1 uživatelů. (0 registrovaných a 1 anonymních)

Pravidla přispívání

  • Nemůžete zakládat nová témata
  • Nemůžete zasílat odpovědi
  • Nemůžete přikládat přílohy
  • Nemůžete upravovat své příspěvky
  •