Compare commits

...

8 Commits

Author SHA1 Message Date
Thong Nguyen c213f8809a Merge pull request #36 from kevinrenskers/master
Added mute and unmute methods, increased version to 0.0.8
2013-10-15 18:06:54 -07:00
Kevin Renskers 01629e7fdf Update podspec version 0.0.8 2013-10-10 13:10:27 +00:00
Kevin Renskers 1283cb31cc Added mute and unmute methods 2013-10-10 13:09:18 +00:00
Thong Nguyen 1a0b463a32 Udpated podspec to 0.0.7 2013-08-30 19:43:53 +02:00
Thong Nguyen aeb1ee1b7c Merge pull request #34 from ablinov/master
Removed test code
2013-08-30 10:40:10 -07:00
Alexey Blinov ec8b82b28f Removed test code 2013-08-30 18:34:57 +01:00
Thong Nguyen c84db3bcab Merge pull request #32 from terryso/master
Fixed AudioPlayer not calling the didEncounterError: method when an error occured
2013-08-04 16:03:26 -07:00
terryso cf14a035f6 Fixed AudioPlayer not calling the didEncounterError: method when an error occured 2013-08-01 10:12:19 +08:00
3 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Audjustable"
s.version = "0.0.6"
s.version = "0.0.8"
s.summary = "A fast and extensible audio streamer for iOS and OSX with support for gapless playback and custom (non-HTTP) sources."
s.homepage = "http://tumtumtum.github.com/audjustable/"
s.license = 'MIT'
@@ -191,6 +191,8 @@ AudioQueueBufferRefLookupEntry;
-(void) resume;
-(void) stop;
-(void) flushStop;
-(void) mute;
-(void) unmute;
-(void) dispose;
-(NSObject*) currentlyPlayingQueueItemId;
+16 -1
View File
@@ -961,7 +961,7 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
}
}
if (signal || YES)
if (signal)
{
pthread_cond_signal(&queueBufferReadyCondition);
}
@@ -1097,6 +1097,11 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
{
errorCode = errorCodeIn;
self.internalState = AudioPlayerInternalStateError;
dispatch_async(dispatch_get_main_queue(), ^
{
[self.delegate audioPlayer:self didEncounterError:errorCode];
});
}
-(void) createAudioQueue
@@ -2138,6 +2143,16 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
}
}
-(void) mute
{
AudioQueueSetParameter(audioQueue, kAudioQueueParam_Volume, 0);
}
-(void) unmute
{
AudioQueueSetParameter(audioQueue, kAudioQueueParam_Volume, 1);
}
-(void) dispose
{
[self stop];