0
0

hi,

i’ve tried fmod ex 4.00.33 with xcode 2.1 and when i import “fmod.h” i get this error:

“redefinition of typedef ‘FMOD_CODEC'”

[code:3mlki6tw]
typedef struct FMOD_CODEC
{
int numsubsounds; /* [in] Number of ‘subsounds’ in this sound. Anything other than 0 makes it a ‘container’ format (ie CDDA/DLS/FSB etc which contain 1 or more su bsounds). For most normal, single sound codec such as WAV/AIFF/MP3, this should be 0 as they are not a container for subsounds, they are the sound by itself. /
FMOD_CODEC_WAVEFORMAT *waveformat; /
[in] Pointer to an array of format structures containing information about each sample. The number of entries here must equal the number of subsounds defined in the subsound parameter. If numsubsounds = 0 then there should be 1 instance of this structure. /
void *userdata; /
[in/out] User created data the codec plugin writer wants to attach to this object. */

void                       *filehandle;    /* [out] Do not modify.  This will return an internal FMOD file handle to use with the callbacks provided.  */
unsigned int                filesize;      /* [out] Do not modify.  This will contain the size of the file in bytes. */
FMOD_FILE_READCALLBACK      fileread;      /* [out] Do not modify.  This will return a callable FMOD file function to use from codec. */
FMOD_FILE_SEEKCALLBACK      fileseek;      /* [out] Do not modify.  This will return a callable FMOD file function to use from codec.  */
FMOD_CODEC_METADATACALLBACK metadata;      /* [out] Do not modify.  This will return a callable FMOD metadata function to use from codec.  */

} FMOD_CODEC;
[/code:3mlki6tw]

“previous declaration of ‘FMOD_CODEC’ was here”

[code:3mlki6tw]typedef struct FMOD_CODEC FMOD_CODEC;[/code:3mlki6tw]

i’ve searched on this forum, google and xcode documentation, but i haven’t found any solutions ๐Ÿ˜ฅ

thanks for your help ๐Ÿ˜‰

bye

  • You must to post comments
0
0

Thanks! Works fine ๐Ÿ˜€

I’ve noticed that the unmodified fmod.h works with xcode 2.1 in a cocoa project only if I set the source .m (that import this header) as “sourcecode.c.c” instead of default “sourcecode.c.objc”.

Now it’s OK.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.