|
5 | 5 | // Created by Matt Gallagher on 27/09/08.
|
6 | 6 | // Copyright 2008 Matt Gallagher. All rights reserved.
|
7 | 7 | //
|
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. |
13 | 22 | //
|
14 | 23 |
|
15 | 24 | #import "AudioStreamer.h"
|
@@ -566,7 +575,7 @@ - (BOOL)isIdle
|
566 | 575 | //
|
567 | 576 | + (AudioFileTypeID)hintForFileExtension:(NSString *)fileExtension
|
568 | 577 | {
|
569 |
| - AudioFileTypeID fileTypeHint = kAudioFileMP3Type; |
| 578 | + AudioFileTypeID fileTypeHint = kAudioFileAAC_ADTSType; |
570 | 579 | if ([fileExtension isEqual:@"mp3"])
|
571 | 580 | {
|
572 | 581 | fileTypeHint = kAudioFileMP3Type;
|
@@ -651,6 +660,13 @@ - (BOOL)openReadStream
|
651 | 660 | return NO;
|
652 | 661 | }
|
653 | 662 |
|
| 663 | + // |
| 664 | + // Handle proxies |
| 665 | + // |
| 666 | + CFDictionaryRef proxySettings = CFNetworkCopySystemProxySettings(); |
| 667 | + CFReadStreamSetProperty(stream, kCFStreamPropertyHTTPProxy, proxySettings); |
| 668 | + CFRelease(proxySettings); |
| 669 | + |
654 | 670 | //
|
655 | 671 | // Handle SSL connections
|
656 | 672 | //
|
|
0 commit comments