Commit Graph

54 Commits

Author SHA1 Message Date
Mostafa Torbjørn Berg 3780b2a2bd Removed an iOS7 Deprecated function
Minor code change to avoid using CFReadStreamCopyProperty and also fail if an error occurs
2014-01-14 14:30:32 +01:00
John Boiles eeab471c42 Fixing playback for short clips 2013-12-03 16:12:43 -08:00
Thong Nguyen d76c1c2160 Fix AutoRecoveringHttpDataSource raising even with wrong source ref 2013-11-18 16:01:41 +00:00
Thong Nguyen 8e90aed1a1 Added logging to catch potential HTTP data source errors 2013-11-18 15:20:42 +00:00
Thong Nguyen 4a38a20c3a Changed AutoRecoveringHttpDataSource to handle and recover from interrupted streams where CoreFoundation returns EOF rather than an error 2013-11-18 15:15:09 +00:00
Thong Nguyen 4a37599866 Added logging support 2013-11-15 15:51:50 +00:00
Thong Nguyen 6ac8851b9e Tidied up code 2013-10-23 11:24:59 +13:00
Thong Nguyen 062a320de6 Merge pull request #37 from johnboiles/master
Adding level metering APIs. Adding casts to get rid of Xcode warnings.
2013-10-22 15:17:43 -07:00
John Boiles 05f50e11d0 Adding level metering APIs, similar to those in AVAudioPlayer. 2013-10-15 18:26:01 -07:00
John Boiles 5baa7a07c2 Adding some casts to get rid of Xcode warnings. 2013-10-15 13:49:40 -07:00
Kevin Renskers 1283cb31cc Added mute and unmute methods 2013-10-10 13:09:18 +00:00
Alexey Blinov ec8b82b28f Removed test code 2013-08-30 18:34:57 +01:00
terryso cf14a035f6 Fixed AudioPlayer not calling the didEncounterError: method when an error occured 2013-08-01 10:12:19 +08:00
Thong Nguyen ee387dc098 Fixed deadlock 2013-07-17 15:48:18 +01:00
Thong Nguyen c2d5d4000d Fixed playerMutex not being released sometimes (bug from last commit) 2013-07-16 16:31:45 +01:00
Thong Nguyen 65c1715269 Fix potential threading crash in [AudioPlayer duration] (I think). Moved to Apple provided spinlock implementation 2013-07-16 16:09:52 +01:00
Thong Nguyen 08287bc6a7 Merge pull request #24 from gangverk/master
Add support for HE-AAC
2013-05-17 11:26:45 -07:00
Piers f8887b7ff1 Add support for HE-AAC
The code for handling HE-AAC has been copied from Matt Gallagher's
AudioStreamer library.

https://github.com/mattgallagher/AudioStreamer/blob/master/Classes/AudioStreamer.m#L1605
2013-05-15 16:29:24 +00:00
Thong Nguyen 02e87c1221 Merge branch 'master' of https://github.com/tumtumtum/audjustable 2013-04-17 13:07:51 +01:00
Thong Nguyen d52c012514 Some format fixes 2013-04-17 13:07:48 +01:00
Piers 4a60b768be Merge branch 'master' into bugfix/continuous-date-allocation 2013-04-17 10:11:18 +00:00
Piers 4e019bfcf2 Fix continual allocation of auto-releaseable NSDate objects
The startInterval method of the AudioPlayer module causes a
continually increasing number of NSDate objects to be
allocated. The auto-release pool which wraps this code doesn't
drain frequently enough causing an application's memory
footprint to grow by roughly a megabyte every 5 minutes.
2013-04-17 09:37:57 +00:00
Thong Nguyen 7dca2e55ac Fix memory leak in HttpDataSource:dataAvailable 2013-04-08 20:20:09 +01:00
Alexey Blinov 25571f9830 Fixed AudioPlayer incorrectly setting the internal state to Stopping when playing two incompatible items one after another. 2013-04-08 18:14:44 +01:00
Atli Thorbjornsson cf36e20e3e AudioPlayerBuffersNeededToStart was set to high for us 2013-04-08 10:56:57 +00:00
Atli Thorbjornsson 45e6edb28e Created a new internal state - AudioPlayerInternalStateRebuffering, it's mostly cosmetic so users of Audjustable are informed when playback pauses because the buffers have dried up 2013-04-08 10:49:47 +00:00
Thong Nguyen 7abcc78b1e Small fix to HttpDataSource MIME detection 2013-04-03 16:49:08 +01:00
Thong Nguyen a6d98b350b Small fix to HttpDataSource MIME detection 2013-04-03 16:47:46 +01:00
Thong Nguyen 8ce4b1b76f Small fix to HttpDataSource MIME detection 2013-04-03 16:46:23 +01:00
Thong Nguyen 36261bae90 Merge branch 'master' of https://github.com/tumtumtum/audjustable 2013-04-03 16:41:39 +01:00
Thong Nguyen 1aeb06774f Added support for file format hint detection to DataSource, LocalFileDataSource and HttpDataSource using file extensions and mime types 2013-04-03 16:41:09 +01:00
Alexey Blinov 341bd0358b Added cancel of previous performSelector invocations to the auto-recovering http data source 2013-04-03 13:45:06 +01:00
Thong Nguyen c67999ac3c Fix memory leaks of closed CFReadStreams in CoreFoundationDataSource 2013-04-01 15:32:16 +01:00
Thong Nguyen b904edce71 Fix some potential crashes in progress & duration 2013-03-29 12:01:32 +00:00
Thong Nguyen 27d83abf57 Fix potential crash in HttpDataSource:seekToOffset 2013-03-28 10:16:56 +00:00
Thong Nguyen 195b1bf388 Fix seeking to end of some files might not cause end of file to be notified 2013-03-24 20:46:17 +00:00
Thong Nguyen e289690a25 Fixed bug where AudioPlayer may skip current track part way through if next queued track is being buffered and it has a different audio format 2013-03-24 16:23:35 +00:00
Thong Nguyen c9efe47e9d Fix CoreFoundationDataSource not releasing resources as early as possible 2013-03-22 11:40:00 +00:00
Thong Nguyen 6ec2078517 Changed default bufffer sizes to better support MP3s by default 2013-03-21 15:41:01 +00:00
Thong Nguyen cc56ab3883 Small potential mutex deadlock 2013-03-21 14:22:47 +00:00
Thong Nguyen c5a5eed997 Changed lock around currentlyPlayingEntry from playerMutex to independent spinlock 2013-03-10 17:31:26 +00:00
Thong Nguyen 771dad1ce5 Fix DataSourceWrapper not nilifying innerDataSource delegate on release. Added some sanity locks around accessing ARC-ed fields of AudioPlayer from audio queue thread 2013-03-10 16:45:28 +00:00
Raven WANG 1c799687ae Fixed a delegate selector checking bug 2013-01-29 18:55:33 +08:00
Thong Nguyen d2d9ccbf2b Fixed AudioPlayer taking a few seconds longer than necessary to start playing for first file 2013-01-20 13:25:14 +00:00
Thong Nguyen 836885b946 Fix headers 2013-01-04 11:55:36 +00:00
Thong Nguyen ad72a6d1c3 Fixed potential deadlocks due to previous battery life optimisations 2012-12-11 16:25:06 +00:00
Thong Nguyen 646ae849ba Added gitignore 2012-11-28 14:20:38 +00:00
Thong Nguyen c91b7a369d Removed iOS specific stuff for non-iOS builds 2012-11-24 14:09:58 +00:00
Thong Nguyen b15766ac18 Battery life optimisations on iOS. Increased background plyback battery life by 200-300% 2012-11-24 14:00:16 +00:00
Thong Nguyen 0d15ead581 Removed DS_Store 2012-10-17 11:59:16 +01:00