Csound Csound-dev Csound-tekno Search About

Re: [Csnd] problems with .ogg and Mac

Date2012-01-24 18:14
From"Art Hunkins"
SubjectRe: [Csnd] problems with .ogg and Mac
<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 


Date2012-01-24 18:17
FromVictor
SubjectRe: [Csnd] problems with .ogg and Mac
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 


Date2012-01-24 18:21
FromMichele Nasti
SubjectRe: [Csnd] problems with .ogg and Mac
Is there any way to change this behavior? 

(stupid question) Can I change the libsndfile manually, if there exist one that can deal with ogg files?  

what kind of compressed audio file type is supported from all the 3 major OSes ? 

Thank you all. 

Michele Nasti


2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 



Date2012-01-24 18:54
FromVictor
SubjectRe: [Csnd] problems with .ogg and Mac
It is not a behaviour. Libsndfile has external dependencies to deal with ogg files and these are not present in the current binary release of csound.

If you build and install libsndfile, replacing the bundled one in /usr/local/lib, you can have your own customly configured one.

On 24 Jan 2012, at 18:21, Michele Nasti <michele.nasti@gmail.com> wrote:

Is there any way to change this behavior? 

(stupid question) Can I change the libsndfile manually, if there exist one that can deal with ogg files?  

what kind of compressed audio file type is supported from all the 3 major OSes ? 

Thank you all. 

Michele Nasti


2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 



Date2012-01-24 20:14
FromMichele Nasti
SubjectRe: [Csnd] problems with .ogg and Mac
As I read from the Mega-Nerd.com website (mantainers of libsndfile):
" Fortunately, Ogg Vorbis exists as an alternative to MP3. Support for Ogg Vorbis was added to libsndfile (mostly due to the efforts of John ffitch of the Csound project) in version 1.0.18"
Since John Ffitch is very active on the mailing list, this makes me wonder why you choose to not distribute this "external dependencies" with the Mac release, if I'm not asking too much.
Michele Nasti

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
It is not a behaviour. Libsndfile has external dependencies to deal with ogg files and these are not present in the current binary release of csound.

If you build and install libsndfile, replacing the bundled one in /usr/local/lib, you can have your own customly configured one.

On 24 Jan 2012, at 18:21, Michele Nasti <michele.nasti@gmail.com> wrote:

Is there any way to change this behavior? 

(stupid question) Can I change the libsndfile manually, if there exist one that can deal with ogg files?  

what kind of compressed audio file type is supported from all the 3 major OSes ? 

Thank you all. 

Michele Nasti


2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 




Date2012-01-24 20:44
FromVictor
SubjectRe: [Csnd] problems with .ogg and Mac
I did not choose anything, just did not add the external dependency, as it complicated the build which is already complicated. Erik reminded me I could use static links, which I will investigate for the next release. 
You have two choices: build it yourself or use other formats like mp3, which is supported for reading by specific opcodes and GEN. Or use another libsndfile-supported format.


ElfOn 24 Jan 2012, at 20:14, Michele Nasti <michele.nasti@gmail.com> wrote:
Eet cotigate
As I read from the Mega-Nerd.com website (mantainers of libsndfile):
" Fortunately, Ogg Vorbis exists as an alternative to MP3. Support for Ogg Vorbis was added to libsndfile (mostly due to the efforts of John ffitch of the Csound project) in version 1.0.18"
Since John Ffitch is very active on the mailing list, this makes me wonder why you choose to not distribute this "external dependencies" with the Mac release, if I'm not asking too much.
Michele Nasti

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
It is not a behaviour. Libsndfile has external dependencies to deal with ogg files and these are not present in the current binary release of csound.

If you build and install libsndfile, replacing the bundled one in /usr/local/lib, you can have your own customly configured one.

On 24 Jan 2012, at 18:21, Michele Nasti <michele.nasti@gmail.com> wrote:

Is there any way to change this behavior? 

(stupid question) Can I change the libsndfile manually, if there exist one that can deal with ogg files?  

what kind of compressed audio file type is supported from all the 3 major OSes ? 

Thank you all. 

Michele Nasti


2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 




Date2012-01-24 20:48
FromMichele Nasti
SubjectRe: [Csnd] problems with .ogg and Mac
Mp3 has never worked flawlessy on my computers, so I think I will switch to FLAC. However, I wish that Ogg will be supported soon, it would be great for my project and for portability issues.
Thank you!

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
I did not choose anything, just did not add the external dependency, as it complicated the build which is already complicated. Erik reminded me I could use static links, which I will investigate for the next release. 
You have two choices: build it yourself or use other formats like mp3, which is supported for reading by specific opcodes and GEN. Or use another libsndfile-supported format.


ElfOn 24 Jan 2012, at 20:14, Michele Nasti <michele.nasti@gmail.com> wrote:
Eet cotigate
As I read from the Mega-Nerd.com website (mantainers of libsndfile):
" Fortunately, Ogg Vorbis exists as an alternative to MP3. Support for Ogg Vorbis was added to libsndfile (mostly due to the efforts of John ffitch of the Csound project) in version 1.0.18"
Since John Ffitch is very active on the mailing list, this makes me wonder why you choose to not distribute this "external dependencies" with the Mac release, if I'm not asking too much.
Michele Nasti

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
It is not a behaviour. Libsndfile has external dependencies to deal with ogg files and these are not present in the current binary release of csound.

If you build and install libsndfile, replacing the bundled one in /usr/local/lib, you can have your own customly configured one.

On 24 Jan 2012, at 18:21, Michele Nasti <michele.nasti@gmail.com> wrote:

Is there any way to change this behavior? 

(stupid question) Can I change the libsndfile manually, if there exist one that can deal with ogg files?  

what kind of compressed audio file type is supported from all the 3 major OSes ? 

Thank you all. 

Michele Nasti


2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 





Date2012-01-24 20:54
FromVictor
SubjectRe: [Csnd] problems with .ogg and Mac
Flac is not yet supported in the osx release, like ogg.



On 24 Jan 2012, at 20:48, Michele Nasti <michele.nasti@gmail.com> wrote:

Mp3 has never worked flawlessy on my computers, so I think I will switch to FLAC. However, I wish that Ogg will be supported soon, it would be great for my project and for portability issues.
Thank you!

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
I did not choose anything, just did not add the external dependency, as it complicated the build which is already complicated. Erik reminded me I could use static links, which I will investigate for the next release. 
You have two choices: build it yourself or use other formats like mp3, which is supported for reading by specific opcodes and GEN. Or use another libsndfile-supported format.


ElfOn 24 Jan 2012, at 20:14, Michele Nasti <michele.nasti@gmail.com> wrote:
Eet cotigate
As I read from the Mega-Nerd.com website (mantainers of libsndfile):
" Fortunately, Ogg Vorbis exists as an alternative to MP3. Support for Ogg Vorbis was added to libsndfile (mostly due to the efforts of John ffitch of the Csound project) in version 1.0.18"
Since John Ffitch is very active on the mailing list, this makes me wonder why you choose to not distribute this "external dependencies" with the Mac release, if I'm not asking too much.
Michele Nasti

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
It is not a behaviour. Libsndfile has external dependencies to deal with ogg files and these are not present in the current binary release of csound.

If you build and install libsndfile, replacing the bundled one in /usr/local/lib, you can have your own customly configured one.

On 24 Jan 2012, at 18:21, Michele Nasti <michele.nasti@gmail.com> wrote:

Is there any way to change this behavior? 

(stupid question) Can I change the libsndfile manually, if there exist one that can deal with ogg files?  

what kind of compressed audio file type is supported from all the 3 major OSes ? 

Thank you all. 

Michele Nasti


2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 





Date2012-01-24 21:13
FromMichele Nasti
SubjectRe: [Csnd] problems with .ogg and Mac
So I have to try Mp3 ??? It doesn't work well with ftgen ... I mean, I have never succeded in doing 
giSoundFile ftgen 0 0 0 49 "/Users/michelenasti/Dropbox/netbeans/MusicaParlata2/mpp2project/GattoVolpe10.ogg" 0 0 2  

It is very strange that the only universal codec used in all csound distributions is MP3, that is a patented codec, and others (ogg, flac...) are not working... 

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
Flac is not yet supported in the osx release, like ogg.



On 24 Jan 2012, at 20:48, Michele Nasti <michele.nasti@gmail.com> wrote:

Mp3 has never worked flawlessy on my computers, so I think I will switch to FLAC. However, I wish that Ogg will be supported soon, it would be great for my project and for portability issues.
Thank you!

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
I did not choose anything, just did not add the external dependency, as it complicated the build which is already complicated. Erik reminded me I could use static links, which I will investigate for the next release. 
You have two choices: build it yourself or use other formats like mp3, which is supported for reading by specific opcodes and GEN. Or use another libsndfile-supported format.


ElfOn 24 Jan 2012, at 20:14, Michele Nasti <michele.nasti@gmail.com> wrote:
Eet cotigate
As I read from the Mega-Nerd.com website (mantainers of libsndfile):
" Fortunately, Ogg Vorbis exists as an alternative to MP3. Support for Ogg Vorbis was added to libsndfile (mostly due to the efforts of John ffitch of the Csound project) in version 1.0.18"
Since John Ffitch is very active on the mailing list, this makes me wonder why you choose to not distribute this "external dependencies" with the Mac release, if I'm not asking too much.
Michele Nasti

2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
It is not a behaviour. Libsndfile has external dependencies to deal with ogg files and these are not present in the current binary release of csound.

If you build and install libsndfile, replacing the bundled one in /usr/local/lib, you can have your own customly configured one.

On 24 Jan 2012, at 18:21, Michele Nasti <michele.nasti@gmail.com> wrote:

Is there any way to change this behavior? 

(stupid question) Can I change the libsndfile manually, if there exist one that can deal with ogg files?  

what kind of compressed audio file type is supported from all the 3 major OSes ? 

Thank you all. 

Michele Nasti


2012/1/24 Victor <Victor.Lazzarini@nuim.ie>
The libsndfile binary currently bundled with csound does not support ogg files.



On 24 Jan 2012, at 18:14, Art Hunkins <abhunkin@uncg.edu> wrote:

<no flame>
FWIW, I'm happy to hear that someone is having problems with Mac, and is not having problems with Windows.
</no flame>
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, January 24, 2012 1:09 PM
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 






Date2012-01-24 22:03
FromErik de Castro Lopo
SubjectRe: [Csnd] problems with .ogg and Mac
Michele Nasti wrote:

> So I have to try Mp3 ??? It doesn't work well with ftgen ... I mean, I have
> never succeded in doing
> 
> giSoundFile ftgen 0 0 0 49 "/Users/michelenasti/Dropbox/
> netbeans/MusicaParlata2/mpp2project/GattoVolpe10.ogg" 0 0 2
> 
> 
> It is very strange that the only universal codec used in all csound
> distributions is MP3, that is a patented codec, and others (ogg, flac...)
> are not working...

Unfortunately, complaining about it isn't going to fix it and its only
going to annoy the people who said they will look into fixing it when
then can.

In the meantime, Victor has suggested you compile libsndfile yourself
(doing all libsndfile's dependencies first) and install it in /usr/local/lib.

Erik

Date2012-01-24 22:39
FromMichele Nasti
SubjectRe: [Csnd] problems with .ogg and Mac
Hi Erik, I was not complaining, you should read my sentence with a "what a surprise!" tone... because I never use Apple computers and I just thought it was just going to work. 
Honestly, I'm not a C expert, so it is very difficoult for me trying to compile it or test it. That's why if I get a sponsor for my program I'll help CSound to become greater. 
Michele 

2012/1/24 Erik de Castro Lopo <mle+la@mega-nerd.com>
Michele Nasti wrote:

> So I have to try Mp3 ??? It doesn't work well with ftgen ... I mean, I have
> never succeded in doing
>
> giSoundFile ftgen 0 0 0 49 "/Users/michelenasti/Dropbox/
> netbeans/MusicaParlata2/mpp2project/GattoVolpe10.ogg" 0 0 2
>
>
> It is very strange that the only universal codec used in all csound
> distributions is MP3, that is a patented codec, and others (ogg, flac...)
> are not working...

Unfortunately, complaining about it isn't going to fix it and its only
going to annoy the people who said they will look into fixing it when
then can.

In the meantime, Victor has suggested you compile libsndfile yourself
(doing all libsndfile's dependencies first) and install it in /usr/local/lib.

Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"