HISE Logo Forum
    • Categories
    • Register
    • Login

    "resting session" and audio buffer

    Scheduled Pinned Locked Moved Bug Reports
    22 Posts 5 Posters 1.3k 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.
    • Dan KorneffD
      Dan Korneff @d.healey
      last edited by

      @d-healey Cubase 10

      Dan Korneff - Producer / Mixer / Audio Nerd

      1 Reply Last reply Reply Quote 0
      • Dan KorneffD
        Dan Korneff @Christoph Hart
        last edited by

        @Christoph-Hart the files do reside on a (internal) harddrive that is separate from my OS drive. Same drive that I keep all of my other sample libraries on, but I don't seem to have this issue with other samplers.

        Dan Korneff - Producer / Mixer / Audio Nerd

        1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff
          last edited by Dan Korneff

          This actually seems to be happening in other situations as well, not just when the system is resting. Here's what happens when I export audio mixdown in Cubase:

          not in real time

          CYMBALS BUFFER.png

          real time

          real time.png

          This was on a completely different system. Streaming from SSD.
          Here's what my buffer settings are set to in the samplers:
          sampler settings.png

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

            What happens if you deactivate streaming (set the preload size to -1)?

            It might be possible that Cubase 10 doesn't wait for the streaming thread to fetch the data (if it calculates the audio as quickly as possible, it might be the case the the streaming thread can't keep up with it).

            Dan KorneffD 2 Replies Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @Christoph Hart
              last edited by

              @Christoph-Hart I'll give that a test today. Thanks!

              Dan Korneff - Producer / Mixer / Audio Nerd

              1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff @Christoph Hart
                last edited by

                @Christoph-Hart Setting to -1 made the memory usage jump thru the roof... but setting the buffer and preload to 200,000 worked like a charm! I had no idea they need to be set so high?

                Dan Korneff - Producer / Mixer / Audio Nerd

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Dan Korneff
                  last edited by

                  @dustbro -1 = no disk streaming, so everything is loaded into RAM

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  1 Reply Last reply Reply Quote 1
                  • Christoph HartC
                    Christoph Hart
                    last edited by

                    200000 is about 5 seconds so you just don‘t hear the cutoff.

                    Is this also „solving“ the export issue?

                    Dan KorneffD 1 Reply Last reply Reply Quote 0
                    • Dan KorneffD
                      Dan Korneff @Christoph Hart
                      last edited by

                      @Christoph-Hart said in "resting session" and audio buffer:

                      Is this also „solving“ the export issue?

                      It's gotten much better. Realtime export is still much more reliable, but non-realtime is considerably better. I'm gonna crank up the buffer more and see what happens.

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • T
                        tomekslesicki
                        last edited by tomekslesicki

                        I'm experiencing the same issue on export - the instrument plays fine but when I render from Ableton, I'm getting these drops in the audio. What's the best way to remedy this? I'd rather not set the preload to -1 because the samples I'm loading are quite heavy at times.

                        Dan KorneffD 1 Reply Last reply Reply Quote 0
                        • Dan KorneffD
                          Dan Korneff @tomekslesicki
                          last edited by

                          @tomekslesicki Increase the buffer and preload time. That worked for me

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          bendursoB 1 Reply Last reply Reply Quote 1
                          • Christoph HartC
                            Christoph Hart
                            last edited by

                            Alright, I try to come up with a proper solution. AFAIK there's an API call isRenderingOffline() and if yes I can make the audio rendering stall until the streaming thread is ready.

                            T 1 Reply Last reply Reply Quote 2
                            • T
                              tomekslesicki @Christoph Hart
                              last edited by

                              @Christoph-Hart ok, so would it be possible to add a script that would increase the preload and buffer during rendering and keep it lower for normal use? If so, how?

                              Thanks!

                              1 Reply Last reply Reply Quote 0
                              • Christoph HartC
                                Christoph Hart
                                last edited by

                                No, the proper solution is to query the host whether the rendering is being done in realtime and if it isn't, make the rendering wait until the streaming thread has fetched the samples.

                                Everything else is just shifting the point where it starts to break.

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  tomekslesicki @Christoph Hart
                                  last edited by

                                  @Christoph-Hart said in "resting session" and audio buffer:

                                  No, the proper solution is to query the host whether the rendering is being done in realtime and if it isn't, make the rendering wait until the streaming thread has fetched the samples.

                                  Everything else is just shifting the point where it starts to break.

                                  Ok! How can I do that?

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tomekslesicki
                                    last edited by

                                    ...or is it something @Christoph-Hart has to do behind the scenes?

                                    d.healeyD 1 Reply Last reply Reply Quote 1
                                    • d.healeyD
                                      d.healey @tomekslesicki
                                      last edited by

                                      @tomekslesicki

                                      ...or is it something @Christoph-Hart has to do behind the scenes?

                                      @Christoph-Hart said in "resting session" and audio buffer:

                                      I try to come up with a proper solution

                                      I take that to mean Christoph will implement a solution.

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      1 Reply Last reply Reply Quote 0
                                      • bendursoB
                                        bendurso @Dan Korneff
                                        last edited by

                                        @Dan-Korneff said in "resting session" and audio buffer:

                                        Increase the buffer and preload time. That worked for me

                                        Is this safe to release a plugin like that? A user is having problems with the plugin's audio in the DAW.

                                        Or is it safer to create a combobox in the GUI to increase the buffer and preload if they have problems?

                                        Dan KorneffD 1 Reply Last reply Reply Quote 0
                                        • Dan KorneffD
                                          Dan Korneff @bendurso
                                          last edited by

                                          @bendurso I can't remember. It's been years since I dealt with sample libraries.

                                          Dan Korneff - Producer / Mixer / Audio Nerd

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

                                          25

                                          Online

                                          1.7k

                                          Users

                                          11.8k

                                          Topics

                                          103.2k

                                          Posts