Output Underflowed

View: New views
1 Messages — Rating Filter:   Alert me  

Output Underflowed

by Hao Zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm very new to portaudio and DSP. My program is used in a my Vst host. My intension is to send a midi note to VSTi plugin and to render sample data callback from this VSTi plugin by portaudio. I'm using BlockingStream class in C++ interface. Here is part of my code:
      portaudio::DirectionSpecificStreamParameters outParams(outdev, outdev.maxOutputChannels(),
           portaudio::FLOAT32, false, outdev.defaultLowOutputLatency(), NULL);
      portaudio::StreamParameters params(portaudio::DirectionSpecificStreamParameters::null(), outParams,
           samplerate, 64, paClipOff); 
      m_pBlockingStream = new portaudio::BlockingStream(params);
      m_pStream->write((const void *)outputbuffer,64);

I always got a "Output Under Flow" problem when I call write function. I know it has something to do with sample rate, buffer size and frame per buffer. Can anyone explain to me what the "Frame Per Buffer" is and tell me what the relationship among sample rate, buffer size and frame per buffer?
Thanks,
Frank


     
_______________________________________________
Portaudio mailing list
Portaudio@...
http://techweb.rfa.org/mailman/listinfo/portaudio
LightInTheBox - Buy quality products at wholesale price