I tried to compile the SDL Libraries so I'd have the SDL.h and all those files, but when I compile it it says all of this:
is that a problem?
Code:
SDL_coreaudio.c:28:33: error: AudioUnit/AudioUnit.h: No such file or directory
In file included from SDL_coreaudio.c:40:
SDL_coreaudio.h:37: error: parse error before "AudioUnit"
SDL_coreaudio.h:37: warning: no semicolon at end of struct or union
SDL_coreaudio.h:39: error: parse error before "bufferOffset"
SDL_coreaudio.h:39: warning: type defaults to 'int' in declaration of 'bufferOffset'
SDL_coreaudio.h:39: warning: data definition has no type or storage class
SDL_coreaudio.h:40: error: parse error before "bufferSize"
SDL_coreaudio.h:40: warning: type defaults to 'int' in declaration of 'bufferSize'
SDL_coreaudio.h:40: warning: data definition has no type or storage class
SDL_coreaudio.c: In function 'Audio_CreateDevice':
SDL_coreaudio.c:73: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:82: error: dereferencing pointer to incomplete type
SDL_coreaudio.c: At top level:
SDL_coreaudio.c:102: error: parse error before "audioCallback"
SDL_coreaudio.c:103: error: parse error before "AudioUnitRenderActionFlags"
SDL_coreaudio.c:107: warning: return type defaults to 'int'
SDL_coreaudio.c: In function 'audioCallback':
SDL_coreaudio.c:108: error: 'inRefCon' undeclared (first use in this function)
SDL_coreaudio.c:108: error: (Each undeclared identifier is reported only once
SDL_coreaudio.c:108: error: for each function it appears in.)
SDL_coreaudio.c:109: error: 'UInt32' undeclared (first use in this function)
SDL_coreaudio.c:109: error: parse error before "remaining"
SDL_coreaudio.c:114: error: 'ioData' undeclared (first use in this function)
SDL_coreaudio.c:124: error: 'remaining' undeclared (first use in this function)
SDL_coreaudio.c:127: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:127: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:129: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:129: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:132: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:132: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:134: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:137: error: 'len' undeclared (first use in this function)
SDL_coreaudio.c:137: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:137: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:140: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:140: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:143: error: dereferencing pointer to incomplete type
SDL_coreaudio.c: In function 'Core_CloseAudio':
SDL_coreaudio.c:167: error: 'OSStatus' undeclared (first use in this function)
SDL_coreaudio.c:167: error: parse error before "result"
SDL_coreaudio.c:168: error: storage size of 'callback' isn't known
SDL_coreaudio.c:171: error: 'result' undeclared (first use in this function)
SDL_coreaudio.c:171: warning: implicit declaration of function 'AudioOutputUnitStop'
SDL_coreaudio.c:171: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:172: error: 'noErr' undeclared (first use in this function)
SDL_coreaudio.c:180: warning: implicit declaration of function 'AudioUnitSetProperty'
SDL_coreaudio.c:180: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:181: error: 'kAudioUnitProperty_SetInputCallback' undeclared (first use in this function)
SDL_coreaudio.c:182: error: 'kAudioUnitScope_Input' undeclared (first use in this function)
SDL_coreaudio.c:191: warning: implicit declaration of function 'CloseComponent'
SDL_coreaudio.c:191: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:197: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:168: warning: unused variable 'callback'
SDL_coreaudio.c: In function 'Core_OpenAudio':
SDL_coreaudio.c:209: error: 'OSStatus' undeclared (first use in this function)
SDL_coreaudio.c:209: error: parse error before "result"
SDL_coreaudio.c:210: error: 'Component' undeclared (first use in this function)
SDL_coreaudio.c:211: error: 'ComponentDescription' undeclared (first use in this function)
SDL_coreaudio.c:212: error: storage size of 'callback' isn't known
SDL_coreaudio.c:213: error: 'AudioStreamBasicDescription' undeclared (first use in this function)
SDL_coreaudio.c:213: error: parse error before "requestedDesc"
SDL_coreaudio.c:216: error: 'requestedDesc' undeclared (first use in this function)
SDL_coreaudio.c:216: error: 'kAudioFormatLinearPCM' undeclared (first use in this function)
SDL_coreaudio.c:217: error: 'kLinearPCMFormatFlagIsPacked' undeclared (first use in this function)
SDL_coreaudio.c:223: error: 'kLinearPCMFormatFlagIsSignedInteger' undeclared (first use in this function)
SDL_coreaudio.c:225: error: 'kLinearPCMFormatFlagIsBigEndian' undeclared (first use in this function)
SDL_coreaudio.c:233: error: 'desc' undeclared (first use in this function)
SDL_coreaudio.c:233: error: 'kAudioUnitComponentType' undeclared (first use in this function)
SDL_coreaudio.c:234: error: 'kAudioUnitSubType_Output' undeclared (first use in this function)
SDL_coreaudio.c:235: error: 'kAudioUnitID_DefaultOutput' undeclared (first use in this function)
SDL_coreaudio.c:239: error: 'comp' undeclared (first use in this function)
SDL_coreaudio.c:239: warning: implicit declaration of function 'FindNextComponent'
SDL_coreaudio.c:246: error: 'result' undeclared (first use in this function)
SDL_coreaudio.c:246: warning: implicit declaration of function 'OpenAComponent'
SDL_coreaudio.c:246: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:247: error: 'noErr' undeclared (first use in this function)
SDL_coreaudio.c:249: warning: implicit declaration of function 'AudioUnitInitialize'
SDL_coreaudio.c:249: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:253: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:254: error: 'kAudioUnitProperty_StreamFormat' undeclared (first use in this function)
SDL_coreaudio.c:255: error: 'kAudioUnitScope_Input' undeclared (first use in this function)
SDL_coreaudio.c:264: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:265: error: 'kAudioUnitProperty_SetInputCallback' undeclared (first use in this function)
SDL_coreaudio.c:276: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:276: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:277: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:277: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:278: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:281: warning: implicit declaration of function 'AudioOutputUnitStart'
SDL_coreaudio.c:281: error: dereferencing pointer to incomplete type
SDL_coreaudio.c:212: warning: unused variable 'callback'
make[3]: *** [SDL_coreaudio.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1