Forum

    • Register
    • Login
    • Search
    • Categories

    Can a buffer be resized?

    General Questions
    1
    3
    86
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustk
      ustk last edited by ustk

      @Christoph-Hart Can a buffer be resized?
      I currently creating a buffer 4 times longer than what I need to prevent from exceeding the index when operating on it.
      So if one sets a very large sample rate, I'm quite protected up to 192KHz. But this doesn't seem to be the most efficient way, right?
      And What if I want to record longer, or dynamically change the size anyway?

      What are the different methods for buffers? they aren't in the API list nor in the doc...

      ustk 1 Reply Last reply Reply Quote 0
      • ustk
        ustk @ustk last edited by ustk

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • ustk
          ustk last edited by ustk

          @Christoph-Hart Thanks for the last Buffer additions 😉
          It seems that indexOfPeak returns the index of the last non-zero value instead of peak one.

          Screenshot 2021-11-07 at 23.48.19.png

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          8
          Online

          1.2k
          Users

          7.0k
          Topics

          64.8k
          Posts