2011-01-18 15:00:30 +00:00
|
|
|
//
|
|
|
|
// SongReader.m
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 18.1.11.
|
|
|
|
// Copyright 2011 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "SongReader.h"
|
|
|
|
|
|
|
|
#import "Retronator.Xni.Framework.Content.h"
|
|
|
|
#import "Retronator.Xni.Framework.Media.h"
|
|
|
|
#import "Retronator.Xni.Framework.Content.Pipeline.Processors.h"
|
|
|
|
#import "Retronator.Xni.Framework.Content.Pipeline.Audio.h"
|
|
|
|
|
|
|
|
#import "SongContent+Internal.h"
|
|
|
|
#import "Song+Internal.h"
|
|
|
|
|
|
|
|
@implementation SongReader
|
|
|
|
|
|
|
|
- (id) readFromInput:(ContentReader *)input into:(id)existingInstance {
|
|
|
|
SongContent *content = input.content;
|
2011-10-24 11:22:32 +00:00
|
|
|
|
|
|
|
Song *song = [[[Song alloc] initWithUrl:content.url] autorelease];
|
2011-01-18 15:00:30 +00:00
|
|
|
|
|
|
|
return song;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@end
|