Merge pull request #36 from kevinrenskers/master
Added mute and unmute methods, increased version to 0.0.8
This commit is contained in:
commit
87953193be
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -191,6 +191,8 @@ AudioQueueBufferRefLookupEntry;
|
|||
-(void) resume;
|
||||
-(void) stop;
|
||||
-(void) flushStop;
|
||||
-(void) mute;
|
||||
-(void) unmute;
|
||||
-(void) dispose;
|
||||
-(NSObject*) currentlyPlayingQueueItemId;
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue