[visionegg] Re: sound and visionegg (e.g. portaudio): demo codeavailable?

  • From: Christoph Lehmann <lehmann@xxxxxxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Tue, 13 Jan 2004 13:12:11 +0100

sorry, this was for Christophe Pallier

...

Cheers

Christoph
On Tue, 2004-01-13 at 13:04, Christoph Lehmann wrote:
> many thanks, Christophe, for the C program
> 
> I start with auditory fMRI experiments and your code might be an
> excellent starting point, especially with the possibility to wait for a
> TTL signal on the LPT.... fMRI-ready!!
> 
> am I right in the assumption, that your code is (more or less)
> platform-independent, since you are using SDL?
> what IDE do you use for programming?
> 
> did you already try the 2.6 kernel?
> 
> cheers
> 
> christoph
> On Mon, 2003-12-15 at 09:27, Christophe Pallier wrote:
> > Christoph Lehmann wrote:
> > 
> > >Christophe, I was just playing around with your python code for sound
> > >presentation:
> > >one question: what does the 
> > >
> > >  
> > >
> > >>        while time.get_ticks()-start > n*SOA:
> > >>                time.delay(10)
> > >>    
> > >>
> > >
> > >..I can comment it out, and nothing happens. It is a delay of 10ms, yes,
> > >just if the onset of the n-th stimulus is later than it "should"
> > >(assuming that on each SOA=2000s the next stimulus shall be played)
> > >  
> > >
> > 
> > 
> > Ooops, sorry, this should be
> > 
> > while time.get_ticks()-start < n*SOA:
> >                 time.delay(10)
> > 
> > 
> > which will wait by steps of 10 msec until the time is reached for playing 
> > the file.
> > As I said the timing with this is not precise!
> > 
> > I attach playlist.tar.gz, a small C program using SDL and SDL_mixer that 
> > does about the same
> > but with better control of the timing. Please tell me if you have any 
> > problem with it.
> > 
> > 
> > Christophe
-- 
Christoph Lehmann <lehmann@xxxxxxxxxxxx>
University Hospital of Clinical Psychiatry

======================================
The Vision Egg mailing list
Archives: //www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: