FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Sound
(Moderators: pitaru, REAS)
   sonia doesn't like me
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: sonia doesn't like me  (Read 1765 times)
stof

Email
sonia doesn't like me
« on: Jan 31st, 2005, 4:55pm »

I just started learning processing and I have lots of problem with it!
I finally sorted out most of the problem I've had so far but now I'm really stuck!
 
I just try to play a song with Sonia but it doesn't work:
 
Sample mySample;  
 
void setup() {  
  size(100,100);  
  Sonia.start(this);  
  mySample = new Sample("angryClouds.wav");  
  mySample.play(); // play the sample once.  
}  
 
// safely stop the Sonia engine upon shutdown.  
public void stop(){  
  Sonia.stop();  
  super.stop();  
}  
 
 
The song angryClouds is in the folder data so it should work...
 
But there is apparently a problem:
 
JSyn using native library JSynV142
 
PortAudio on WMME - Latency = 18432 frames, 417 msec
 
Input Device #0: Mappeur de sons Microsoft - Input has 2 channels
 
Input Device #3: Mappeur de sons Microsoft - Output has 2 channels
 
 
java.io.EOFException: Cue chunk too short!
 
 
com.softsynth.jsyn.SynthException: JSyn error: Invalid token.  -  Data, 0x0=0, 0x0=0
 
 
 
 
Could someone help me please!!? I've also installed Jsyn plug-in!! I really dont know what 2 do now!
Thanks in advance for your help
 
pitaru


WWW Email
Re: sonia doesn't like me
« Reply #1 on: Feb 2nd, 2005, 2:51pm »

first, try adding the loop() event (you can leave it empty). If that doesn't work, try your code with other samples (such as the sine.aiff file on the sonia site).  
remember that the samples need to be 16bit.
 
amit
 
Pages: 1 

« Previous topic | Next topic »