Skip to content

Commit bf263da

Browse files
author
Matt Gallagher
committed
Updated to newest version of TripleJ stream.
1 parent 92d4f1b commit bf263da

11 files changed

+351
-97
lines changed

Classes/AudioStreamer.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 27/09/08.
66
// Copyright 2008 Matt Gallagher. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#if TARGET_OS_IPHONE

Classes/AudioStreamer.m

+22-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 27/09/08.
66
// Copyright 2008 Matt Gallagher. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#import "AudioStreamer.h"
@@ -566,7 +575,7 @@ - (BOOL)isIdle
566575
//
567576
+ (AudioFileTypeID)hintForFileExtension:(NSString *)fileExtension
568577
{
569-
AudioFileTypeID fileTypeHint = kAudioFileMP3Type;
578+
AudioFileTypeID fileTypeHint = kAudioFileAAC_ADTSType;
570579
if ([fileExtension isEqual:@"mp3"])
571580
{
572581
fileTypeHint = kAudioFileMP3Type;
@@ -651,6 +660,13 @@ - (BOOL)openReadStream
651660
return NO;
652661
}
653662

663+
//
664+
// Handle proxies
665+
//
666+
CFDictionaryRef proxySettings = CFNetworkCopySystemProxySettings();
667+
CFReadStreamSetProperty(stream, kCFStreamPropertyHTTPProxy, proxySettings);
668+
CFRelease(proxySettings);
669+
654670
//
655671
// Handle SSL connections
656672
//

Classes/MacStreamingPlayerController.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 28/10/08.
66
// Copyright Matt Gallagher 2008. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#import <Cocoa/Cocoa.h>

Classes/MacStreamingPlayerController.m

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 28/10/08.
66
// Copyright Matt Gallagher 2008. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#import "MacStreamingPlayerController.h"

Classes/iPhoneStreamingPlayerAppDelegate.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 28/10/08.
66
// Copyright Matt Gallagher 2008. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#import <UIKit/UIKit.h>

Classes/iPhoneStreamingPlayerAppDelegate.m

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 28/10/08.
66
// Copyright Matt Gallagher 2008. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#import "iPhoneStreamingPlayerAppDelegate.h"

Classes/iPhoneStreamingPlayerViewController.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 28/10/08.
66
// Copyright Matt Gallagher 2008. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#import <UIKit/UIKit.h>

Classes/iPhoneStreamingPlayerViewController.m

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
// Created by Matt Gallagher on 28/10/08.
66
// Copyright Matt Gallagher 2008. All rights reserved.
77
//
8-
// Permission is given to use this source code file, free of charge, in any
9-
// project, commercial or otherwise, entirely at your risk, with the condition
10-
// that any redistribution (in part or whole) of source code must retain
11-
// this copyright and permission notice. Attribution in compiled projects is
12-
// appreciated but not required.
8+
// This software is provided 'as-is', without any express or implied
9+
// warranty. In no event will the authors be held liable for any damages
10+
// arising from the use of this software. Permission is granted to anyone to
11+
// use this software for any purpose, including commercial applications, and to
12+
// alter it and redistribute it freely, subject to the following restrictions:
13+
//
14+
// 1. The origin of this software must not be misrepresented; you must not
15+
// claim that you wrote the original software. If you use this software
16+
// in a product, an acknowledgment in the product documentation would be
17+
// appreciated but is not required.
18+
// 2. Altered source versions must be plainly marked as such, and must not be
19+
// misrepresented as being the original software.
20+
// 3. This notice may not be removed or altered from any source
21+
// distribution.
1322
//
1423

1524
#import "iPhoneStreamingPlayerViewController.h"

0 commit comments

Comments
 (0)