Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

MBS PortAudio.rbp crashes with 44100 sample rate (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: ColumnFromXY/RowFromXY [SOLVED]
Next thread: Sandbox: automatic open of last used file?

Strange problem with legacy Sybase database memo fields   -   kev actis.com
  MBS PortAudio.rbp crashes with 44100 sample rate   -   Massimiliano Fabbri

MBS PortAudio.rbp crashes with 44100 sample rate
Date: 02.08.12 17:46 (Thu, 02 Aug 2012 18:46:28 +0200)
From: Massimiliano Fabbri
I tried to customize to my needs the PortAudio.rbp sample coming with
the MBS Audio plugin (11.2 version)
When I use a sample rate different from 8000 (eg: 44100) app on closing
where do I am wrong ?


Sub initialize(b as Boolean)
m=newMemoryBlock(4*10240) // read 10240 samples per timer loop

p=new PortAudioStreamRecorderMBS(1024*1024)

if p.OpenDefaultStream(2, 44100.0)then
if p.Startthen
startTime = New Date
MsgBox "Failed to start."
end if
MsgBox "Failed to initialize."
end if

End Sub

Thanks in advance to Christian or anyone can give me feedback.