Csound Csound-dev Csound-tekno Search About

[Csnd] problems with .ogg and Mac

Date2012-01-24 18:09
FromMichele Nasti
Subject[Csnd] problems with .ogg and Mac
Hi, 
I'm using CSound since about 1 year now, and I really appreciate it :) 
I'm using CSound with a Java application via csnd.jar . It works flowlessy on Windows. My app writes a .csd file on the fly and then CSound will play it. 

In the csd file I load into memory wav, aif and ogg files with GEN 01 functions. This works very good on Windows, but on Mac I'm having a lot of problems wih OGG files: I can't play them.

Also, If I try to use channel 2 of a stereo OGG file, it says that the file just has one channel. I also can't hear anything from channel 1. I have this problems only on Mac;  on Windows everything works fine. I have tried several opcodes to play sounds from function tables, they all answer like this: 

error: req chan 2, file /Users/michelenasti/Dropbox/netbeans/MusicaParlata2/mpp2project/GattoVolpe10.ogg has only 1

ftable 101: Failed to open file

f101 0.00 0.00 1.00 "/Users/michelenasti/Dropbox/netbeans/MusicaParlata2/mpp2project/GattoVolpe10.ogg" ...

INIT ERROR in instr 0: ftgen error

giSoundFile ftgen 0 0 0 1 "/Users/michelenasti/Dropbox/netbeans/MusicaParlata2/mpp2project/GattoVolpe10.ogg" 0 0 2 


Do you have any ideas on what's going on? The system I'm using is OS X 10.6 . I tried CSound 5.15 and 5.14 with the same result. 

Michele Nasti