Commit Graph

242 Commits

Author SHA1 Message Date
Thong Nguyen e805e4740c More Spectrum Analyzer work 2014-04-24 18:22:40 +01:00
Thong Nguyen 484285df84 Started work on Spectrum Analyzer 2014-04-23 18:03:23 +01:00
Thong Nguyen a9dfb2eddf Fixed thread related crashes in OutputRenderCallback 2014-04-07 15:28:34 +01:00
Thong Nguyen 3fcf054a23 Fix STKAudioPlayer.progress property thread-related crash 2014-04-07 15:15:36 +01:00
Thong Nguyen a615419404 Fixed deployment target min should be 4.3 not 6.0 2014-04-05 13:15:43 +01:00
Thong Nguyen e43a4613f8 startInternal now cleans up audio resources when the playback thread is finished. Added fix for undefned DBL_MAX 2014-04-05 13:08:58 +01:00
Thong Nguyen ca928dfe1e Removed buffering work (now in different branch) 2014-03-24 16:32:38 +00:00
Thong Nguyen d7d583c3ba Some chunking/paging buffering data source work 2014-02-24 17:05:54 +00:00
Thong Nguyen 7540045361 Some buffering data source tests/work 2014-02-20 17:10:51 +00:00
Thong Nguyen 972ae0e15b Some more buffering data source work 2014-02-18 19:02:47 +00:00
Thong Nguyen e3ed6c6dee Removed AudioDataSource (for now). Changed all int64_t and long long types to SInt64. Started adding Buffered data source 2014-02-18 13:38:03 +00:00
Thong Nguyen 3398e8c64e Explicitly wakeup playback thread if a delayed seek was queued 2014-02-16 17:07:39 +00:00
Thong Nguyen f99201f54d Explicitly wakeup playback thread if a delayed seek was queued 2014-02-16 17:07:10 +00:00
Thong Nguyen 44b9e7d2d1 Removed errant NSLog 2014-02-16 16:50:54 +00:00
Thong Nguyen 7aae2bcb6b Allow queueing of a seek request for a file before it has loaded 2014-02-16 16:50:12 +00:00
Thong Nguyen 5a8068b859 STKAutoRecoveringHTTPDataSource shouldn't retry if inner data source no longer is registered 2014-02-16 11:57:23 +00:00
Thong Nguyen 728fc5bb21 More controllable grace period for waiting for data after seek 2014-02-16 11:43:01 +00:00
Thong Nguyen c4053c964e Smaller setting for STK_CYCLES_REQUIRED_BEFORE_SEEK_BECOMES_PLAYING 2014-02-16 01:49:23 +00:00
Thong Nguyen c31df15a43 STKAudioPlayerInternalStateWaitingForDataAfterSeek no longer considered a buffering state externally. STKAudioPlayerInternalStateWaitingForDataAfterSeek turns into a playing state after a certain period. Prevents flapping between states when seeking tracks 2014-02-16 01:24:08 +00:00
Thong Nguyen 923baf5b89 STKAudioPlayerInternalStatePendingNext and STKAudioPlayerInternalStateWaitingForDataAfterSeeks are both now considered STKAudioPlayerStateBuffering states externally 2014-02-15 22:02:56 +00:00
Thong Nguyen 9199785202 Better backgroundTask start/stopping using blocks to safely avoid referencing STKAudioPlayer 2014-02-15 17:04:52 +00:00
Thong Nguyen 0618027252 Fixed iOS background task holding onto a reference to STKAudioPlayer and preventing it from being dealloc immediately 2014-02-15 16:55:16 +00:00
Thong Nguyen 188f880f5a Tidied up some warnings 2014-02-14 22:19:41 +00:00
Thong Nguyen ae9cee68f0 Slightly better bitrate calculation for VBR files 2014-02-14 22:06:46 +00:00
Thong Nguyen eeece64417 Changed duration calculation to work better with short files 2014-02-14 18:34:55 +00:00
Thong Nguyen 243dc1f8a2 Fixed STKAudioPlayer:stop sometimes blocking too long 2014-02-14 14:49:08 +00:00
Thong Nguyen 8c608440ae Merge pull request #81 from AndrewKosovich/master
Ported error handling from the previous Audjustable player.
2014-02-14 12:16:10 +00:00
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