kloppen@gmdzi.gmd.de (Jelske Kloppenburg) (06/16/91)
Hello,
in System Release 2.0
SndMusicDSP/Reference/02_Classes/SoundKit/Sound.rtf
the Instance Method
convertToFormat:samplingRate:channelCount:
is described:
Convert the receiver's sound to the given format, sampling rate,
and number of channels. An error code is returned.
I dared to use it:
err = [theSound convertToFormat:SND_FORMAT_LINEAR_8
samplingRate:SND_RATE_LOW
channelCount:1];
Now I get always err = 21.
Finally in <sound/sounderror.h> I found:
SND_ERR_NOT_IMPLEMENTED = 21
If this error code is always returned by convertToFormat:..., would it not
have been better to write in the Reference
convertToFormat:... is not implemented?
j.k.
Jelske Kloppenburg, kloppen@gmdzi.gmd.de, (++49 2241) 14-2433
German National Research Center for Computer Science (GMD)eps@toaster.SFSU.EDU (Eric P. Scott) (06/17/91)
In article <4926@gmdzi.gmd.de> kloppen@gmdzi.gmd.de (Jelske Kloppenburg) writes: > err = [theSound convertToFormat:SND_FORMAT_LINEAR_8 >Now I get always err = 21. > SND_ERR_NOT_IMPLEMENTED = 21 No conversions involving SND_FORMAT_LINEAR_8 are supported. The supported conversions are listed in the documentation for SNDConvertSound(), and the man page sndconvert(1). See the description of SNDRunDSP() for one way to perform unsupported conversions. I agree that the convertToFormat: reference isn't complete. -=EPS=-