Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation confused with echo effect

    hello guys, i mostly finished my final project from microcomputer systems, however, in one part of it , im trying to code a echo , it is basically a delay function. it delays the input while also stores the input.
    here is the code that i wrote,

    int input=0;
    Buffer[input]=ichannel0Leftin;

    input++
    if(input++>mybuffersize)// it increments the inputs location so that it uses after a little while. it makes teh code continues loop.
    input=0;

    outd1=input-D1; here i said D1 is my delay which i wrote 3200/4800 so it can be heard it is a near second.

    if(outd1<0)
    outd1=mybuffersize - outd1; this part is like a absolute value , when my delay is (-) it simply subtracts from the original buffer size which is 4800 and also defined in global variables.

    as final , ichannel0leftout=ichannel0leftin+Buffer[outd1];

    so i send everything back to left speaker.

    this code, suppose to store the audio sample and it will change its location in the array and after a second i will hear it again.

  • #2
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no one knows :S??


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •