Commit Graph

182 Commits

Author SHA1 Message Date
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
Thong Nguyen 83bc40d5fc More documentation. STKAutoRecoveringHTTPDataSource is now default for HTTP 2014-01-31 20:46:41 +00:00
Thong Nguyen b903ee58cc Formatting fixes 2014-01-31 20:39:51 +00:00
Thong Nguyen 70fe37cd4a Added missing status checks 2014-01-31 20:35:44 +00:00
Thong Nguyen f321f1a0d7 More code tidy-ups 2014-01-31 20:33:15 +00:00
Thong Nguyen a0a9553631 Big refactor to remove remanents of AudioQueue code. Added safety locks when working with 64bit floats and ints across threads 2014-01-31 20:20:20 +00:00
Thong Nguyen ddc6cf4b2f Fixed newly set datasource is not immediately loaded because render callback changes resets the STKAudioPlayerInternalStatePendingNext state 2014-01-31 15:12:30 +00:00
Thong Nguyen 22e954a5e2 Added AudioUnit based progress/seek and queueing support 2014-01-31 14:40:20 +00:00
Thong Nguyen e7a952d248 Progress and seek now supported 2014-01-31 12:22:22 +00:00
Thong Nguyen 511185c929 More Audio Units work 2014-01-30 18:22:31 +00:00
Thong Nguyen 15b18069e3 Started removing legacy AudioQueue code 2014-01-30 12:46:41 +00:00
Thong Nguyen 6df11418f7 Started removing legacy AudioQueue code 2014-01-30 12:46:26 +00:00
Thong Nguyen 9e04cc9e72 Merge branch 'master' of https://github.com/tumtumtum/StreamingKit 2014-01-29 23:31:34 +00:00
Thong Nguyen cdb6f27a53 Disabled input IO when creating Audio Unit 2014-01-29 22:40:34 +00:00
Thong Nguyen b8528e30c5 Added remote control event handling to AppDelegate so that example app will show play icon in status bar 2014-01-29 22:30:52 +00:00
Thong Nguyen d5e531c602 Removed AudioUnit kAudioUnitScope_Output init code 2014-01-29 22:26:31 +00:00
Thong Nguyen 8d61f3a3e3 Removed AudioUnit kAudioUnitScope_Output init code 2014-01-29 22:25:25 +00:00
Thong Nguyen b0466171f6 Removed AudioUnit kAudioUnitScope_Output init code 2014-01-29 22:22:23 +00:00
Thong Nguyen 10d799a35f Got basic playback mostly working using AudioUnits 2014-01-29 22:09:38 +00:00
Thong Nguyen 08eaa7e85b Some more test work with using Audio Units 2014-01-29 18:41:29 +00:00
Thong Nguyen cd0dd97ebf Started experimenting with using AudioUnits rather than AudioQueues 2014-01-29 09:38:24 +00:00
Thong Nguyen b2eeb76c90 Fix STKAutoRecoveringHTTPDataSource not passing on unregisterForEvents. Fix STKCoreFoundationDataSource not unregisteringForEvents on dealloc 2014-01-29 09:27:51 +00:00
Thong Nguyen 5a6d93d7c1 Started experimenting with using AudioUnits rather than AudioQueues 2014-01-28 20:53:03 +00:00
Thong Nguyen 8dd611c2ac Prefixed all enum names and values 2014-01-28 14:04:58 +00:00
Thong Nguyen 4a0f944550 Removed some logging 2014-01-28 13:55:00 +00:00
Thong Nguyen 0b5b6ada88 Return 0 duration and progress if stop was requested 2014-01-27 22:34:25 +00:00
Thong Nguyen f60e16c804 Tidied up some field types. Changed duration to return progress if progress is larger than duration and there is a duration 2014-01-27 21:33:10 +00:00
Thong Nguyen f3f52cf1cd Allow progress to be returned if the duration is 0 2014-01-27 19:46:35 +00:00
Thong Nguyen 53667f8a35 New lower-latecy rebuffering support 2014-01-27 19:38:32 +00:00
Thong Nguyen 6beebca443 Fixed deadlock on stopThread and dataSourceEof not always setting currentlReadingEntry to nil 2014-01-27 16:28:38 +00:00
Thong Nguyen 6af12221e5 Fixed potential crash in handleAudioPackets 2014-01-27 16:22:51 +00:00
Thong Nguyen ca80243083 Optimised seekToTime to avoid using the player thread mutex to allow smoother scrubbing 2014-01-27 02:00:01 +00:00
Thong Nguyen 804aa9dd6e All stopAudioQueue calls are now directed via the playback thread to reduce the need to have locks inside handleAudioQueueOutput. Added autorelease pool around regular processRunLoop call to fix STKDataSources not being freed (amongst other things). Fixed sometimes seeking to the very end of a slow loading track causes the didFinishPlayingQueueItemId event to not be raised 2014-01-27 01:23:18 +00:00
Thong Nguyen 0fdb461d90 Fixed bug in last commit that cuased playback to pause when seeking a file that's already fully buffered 2014-01-27 00:26:36 +00:00