Merge pull request #36 from kevinrenskers/master

Added mute and unmute methods, increased version to 0.0.8
This commit is contained in:
Thong Nguyen 2013-10-15 18:06:54 -07:00
commit 87953193be
3 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Audjustable"
s.version = "0.0.7"
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'

View File

@ -191,6 +191,8 @@ AudioQueueBufferRefLookupEntry;
-(void) resume;
-(void) stop;
-(void) flushStop;
-(void) mute;
-(void) unmute;
-(void) dispose;
-(NSObject*) currentlyPlayingQueueItemId;

View File

@ -2143,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];