Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Generate a sound signal

Discussion in 'Audio & Video' started by 9STREB, Mar 30, 2015.

  1. 9STREB

    9STREB

    Joined:
    Mar 30, 2015
    Posts:
    2
    HI!
    Tell me, please.
    as to generate a sound signal of a certain frequency based on sinus.?
     
  2. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    I'd say... sneeze into a microphone?
     
    cariaga likes this.
  3. 9STREB

    9STREB

    Joined:
    Mar 30, 2015
    Posts:
    2
    No, I mean, how to play an array of bytes that I programmatically generates
     
  4. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    I have no idea, haha. I was just making a [bad] joke.
     
    cariaga likes this.
  5. gregzo

    gregzo

    Joined:
    Dec 17, 2011
    Posts:
    795
    OnAudioFilterRead or Native audio SDK
     
  6. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,256
    AudioClip has a setData function. You can use that.
     
  7. gregzo

    gregzo

    Joined:
    Dec 17, 2011
    Posts:
    795
    Not real time, and only from the main thread, but can be useful in some cases.