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
crashes.
where do I am wrong ?

Code:

Sub initialize(b as Boolean)
SaveToFile°
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
timer1.Mode=timer1.ModeMultiple
startTime = New Date
else
MsgBox "Failed to start."
end if
else
MsgBox "Failed to initialize."
end if

End Sub

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