HISE Logo Forum
    • Categories
    • Register
    • Login

    Can a buffer be resized?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 1 Posters 198 Views
    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.
    • ustkU
      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...

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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • ustkU
          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

          28

          Online

          1.8k

          Users

          12.0k

          Topics

          104.1k

          Posts