What kind of data type is this?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-05-02T12:26:39Z Indexed on 2010/05/02 12:37 UTC
Read the original article Hit count: 116

Filed under:
|
|

In an class header I have seen something like this:

enum {
    kAudioSessionProperty_PreferredHardwareSampleRate           = 'hwsr',   // Float64
    kAudioSessionProperty_PreferredHardwareIOBufferDuration     = 'iobd'   // Float32
};

Now I wonder what data type such an kAudioSessionProperty_PreferredHardwareSampleRate actually is?

I mean this looks like plain old C, but in Objective-C I would write @"hwsr" if I wanted to make it a string.

I want to pass such an "constant" or "enum thing" as argument to an method.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c