Andrew Kosovich
9aed1b082a
Ported error handling from the previous Audjustable player.
...
STKDataSource is designed to return values < 0 in case of error, but new STKAudioPlayer doesn't handle that, which causes crash few lines later when calling AudioFileStreamParseBytes with read<0.
2014-02-14 13:37:43 +02:00
Thong Nguyen
6eb149f83a
Progress now returns 0 if player is stopped
2014-02-13 22:24:26 +00:00
Thong Nguyen
1243dbf0e1
setDataSource now immediately stops whatever is currently playing. STKAutoRecoveringHTTPDataSource watchdog timer improvements
2014-02-13 22:02:48 +00:00
Thong Nguyen
a15c2c27ff
Fixed stream not set to nil when error occurs when opening
2014-02-13 18:06:24 +00:00
Thong Nguyen
aa441045aa
Fixed pendingQueue and mostRecentlyQueuedStillPendingItem returning STKQueueEntry instead of queueItemId
2014-02-13 17:54:24 +00:00
Thong Nguyen
569764d869
Added watchdog to STKAutoRecoveringHTTPDataSource to catch TCP timeouts which otherwise would not raise an error since we aren't do any writes to the socket
2014-02-13 17:33:45 +00:00
Thong Nguyen
511b756694
Fixed pendingQueue and mostRecentlyQueuedStillPendingItem returning STKQueueEntry instead of original queueItemId
2014-02-13 11:58:19 +00:00
Thong Nguyen
ab0c4d1315
STKAutoRecoveringHTTPDataSource now stops retrying to connect if DataSource no longer has an event loop
2014-02-13 11:34:05 +00:00
Thong Nguyen
6216abb0ab
Changed STKCoreFoundationDataSource to not open in registerForEvents (delay open and registration)
2014-02-12 23:09:53 +00:00
Thong Nguyen
8c5b4fb298
Fixed openForSeek on STKHTTPDataSource potentially handling old URLs if URL provider is async
2014-02-12 19:53:21 +00:00
Thong Nguyen
03e9b8b208
Updated README
2014-02-11 23:13:34 +00:00
Thong Nguyen
60d48a0682
Added the ability to dynamically remove or add EQ unit to save battery when EQ unit is not needed
2014-02-11 19:24:41 +00:00
Thong Nguyen
dee6322751
Set default kAudioUnitProperty_MaximumFramesPerSlice on all audio units to 4096 to fix playback problems on lockscreen
2014-02-10 23:14:32 +00:00
Thong Nguyen
5e3048a7bf
Merge branch 'nbandeq'
2014-02-10 14:15:37 +00:00
Thong Nguyen
ac7aabf746
Removed EQ support for OSX < 10.9
2014-02-10 14:14:59 +00:00
Thong Nguyen
ce30f0de57
New AudioGraph creation code mostly done. EQ working on iOS and OSX
2014-02-10 13:25:17 +00:00
Thong Nguyen
a58269fcdb
Got EQ working (iOS5 and OSX 10.9). Changed OSX projects to use 10.9 SDK
2014-02-09 23:32:49 +00:00
Thong Nguyen
3ecba8c8b4
Some more EQ work
2014-02-07 18:30:54 +00:00
Thong Nguyen
c98b673064
Refactoring how the graph and nodes are created
2014-02-07 09:43:47 +00:00
Thong Nguyen
13fc64baa2
Merge pull request #77 from AndrewKosovich/master
...
Fixed crash in the STKHTTPDataSource.
2014-02-06 17:20:17 +00:00
Andrew Kosovich
5e4b500785
Fixed crash in the STKHTTPDataSource.
2014-02-06 18:33:03 +02:00
Thong Nguyen
693c5ed059
Started adding EQ
2014-02-05 20:22:29 +00:00
Thong Nguyen
a15405b6c5
Fixed audio thread may set the state to playing even in certain conditions even if the player has been user-paused or stopped (race condition)
2014-02-05 19:05:47 +00:00
Thong Nguyen
ce6f2b9512
Fixed audio thread may set the state to playing even in certain conditions even if the player has been user-paused or stopped (race condition)
2014-02-05 18:05:47 +00:00
Thong Nguyen
63bb19747f
Changed STKAudioPlayerOptions to be a struct rather than enum. Most values that can be tweaked can be provided in constructor. Fixed deadlock if createAudioGraph fails
2014-02-05 14:18:37 +00:00
Thong Nguyen
0a6e1d4534
Added volume support via volume property using mixer on iOS and mixer or standard output unit volume property on OSX
2014-02-04 16:46:30 +00:00
Thong Nguyen
d49e2849eb
Removed unnecessary synthesized properties. Made STKFrameFilterEntry public readonly. Removed AudioUnit framework requirement for iOS n podspec
2014-02-03 17:23:53 +00:00
Thong Nguyen
f725ed0b2c
Added additional queue/play methods
2014-02-03 13:50:15 +00:00
Thong Nguyen
55a96578b4
Updated README
2014-02-03 13:37:10 +00:00
Thong Nguyen
16855e81dc
Updated README
2014-02-03 13:33:40 +00:00
Thong Nguyen
fed674d774
Updated README
2014-02-02 23:51:44 +00:00
Thong Nguyen
c6e1b113dc
Updated README
2014-02-02 15:33:15 +00:00
Thong Nguyen
43a9f8b26f
Updated README
2014-02-02 15:30:34 +00:00
Thong Nguyen
db5b9d92ed
Updated README
2014-02-02 15:24:36 +00:00
Thong Nguyen
5398bfcedb
Updated podspecs to include OSX
2014-02-02 15:15:48 +00:00
Thong Nguyen
d63a99b5fb
Merged new AudioUnit based STKAudioPlayer back into master
2014-02-02 14:27:20 +00:00
Thong Nguyen
1c78dc5867
Changed canonical format to fixed point for all platforms. Added metering view on ExampleAppMac
2014-02-02 14:19:12 +00:00
Thong Nguyen
4df5a84569
Added OSX build targets and ExampleAppMac. Added AudioUnit as a dependent framework in podspec
2014-02-02 13:14:37 +00:00
Thong Nguyen
70368a09ba
Added pendingQueue, pendingQueueCount, mostRecentlyQueuedStillPendingItem. Added more documentation comments. Changed STKAudioPlayerInternalState to be private/hidden
2014-02-02 12:48:24 +00:00
Thong Nguyen
018da7a2eb
Slight layout fix for AudioPlayerView
2014-02-01 23:29:39 +00:00
Thong Nguyen
d347e5e80c
Added mute/unmute support
2014-02-01 23:24:06 +00:00
Thong Nguyen
4d73784338
Added audio frame filtering and level metering support using Audio Units
2014-02-01 23:04:55 +00:00
Thong Nguyen
98c7d9b8f0
STKAudioPlayer:dataSourceFromURL uses case insensitive scheme compare
2014-02-01 00:29:02 +00:00
Thong Nguyen
56b2dd4ace
Better range/length handling in STKHTTPDataSource. Handles out-of-range requests gracefully
2014-02-01 00:23:23 +00:00
Thong Nguyen
a9b1e143a0
queueDataSource shold let playback thread automatically start the audio unit
2014-01-31 23:19:29 +00:00
Thong Nguyen
c4a7251d19
Fixed potential crash when OutputRenderCallback is called with no items in the queue or playing
2014-01-31 23:07:49 +00:00
Thong Nguyen
ae63d04b87
Don't stop audio player immediately when finished playing---wait until next runloop
2014-01-31 23:02:19 +00:00
Thong Nguyen
dd7165b3d2
Fixed player somtimes waiting in buffering state for very small files
2014-01-31 22:58:07 +00:00
Thong Nguyen
8c94b9ba5c
Added WAV file test to test app
2014-01-31 22:45:17 +00:00
Thong Nguyen
c2fe2c68b2
Started adding framefilter support for EQ etc. Fixed seek bug with WAV files
2014-01-31 22:18:09 +00:00