Audiofile Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in Audiofile.h

Overview

Represents an audio track. Instances of this become available via the [AdaptrAudioPlayer currentItem] property.

  name

Track name

@property (readonly) NSString *name

Declared In

Audiofile.h

  artist

Artist

@property (readonly) NSString *artist

Declared In

Audiofile.h

  album

Album

@property (readonly) NSString *album

Declared In

Audiofile.h

  station

Station the play was created from

@property Station *station

Declared In

Audiofile.h

  metadata

Arbitrary metadata attached to this song

@property (readonly) NSDictionary *metadata

Declared In

Audiofile.h

  duration

Track duration in seconds

@property (readonly) NSTimeInterval duration

Declared In

Audiofile.h

  liked

If track is liked

@property (readonly) BOOL liked

Declared In

Audiofile.h

  disliked

If track is disliked

@property (readonly) BOOL disliked

Declared In

Audiofile.h

  replayGain

Used internally to keep perceived volume levels equal

@property (readonly) double replayGain

Declared In

Audiofile.h

  preGain

Used internally to pre-boost the volume of this song

@property double preGain

Declared In

Audiofile.h

– initWithJSON:

Creates Audiofile from the JSON provided.

- (id)initWithJSON:(id)jsonDictionary

Parameters

jsonDictionary

JSON dictionary

Return Value

returns new Audiofile instance

Declared In

Audiofile.h

– initWithJSON:station:

Creates Audiofile from the JSON and station provided.

- (id)initWithJSON:(id)jsonDictionary station:(Station *)station

Parameters

jsonDictionary

JSON dictionary

station

Station that the play was created in

Return Value

returns new Audiofile instance

Declared In

Audiofile.h