• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Detecting if sounds are playing in Crash Landing iPhone App sample sound Engine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting if sounds are playing in Crash Landing iPhone App sample sound Engine


  • Subject: Detecting if sounds are playing in Crash Landing iPhone App sample sound Engine
  • From: "Keith Comito" <email@hidden>
  • Date: Fri, 21 Nov 2008 17:31:27 -0500

Hello All,

 

     I am developing for the iPhone and am curious if there is some sort of way to detect if any sound is currently playing in utilizing the soundengine.cpp sound engine present in the Crash Landing app sample. I don't need to know if it is a specific sound; I just need to know if any sound at all is playing.  I know that I can detect whether an individual sound is playing, loop through and check each one, but that is not desirable with my current setup.  There must be some kind of way of determining if buffers are currently being used for playback or some such.  I was looking at the kAudioQueueProperty_IsRunning property which I believe will return 0 if no sound is active and some nonezero number if a sound is active. This value always seems to be nonzero for me however, probably because I am always recording audio in as well (to monitor the ambient sound level). I need some kind of version of this that is only for audio playback, without being affected by audio recording.  If this is not possible, can you please tell me how I can detect if a given, specific, sound is playing?  I believe it has to do with alSourcei but I couldn’t find it.   Thanks.

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Detecting if sounds are playing in Crash Landing iPhone App sample sound Engine
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Example of minimal CoreMidi code to play MIDI through the built in synth?
  • Next by Date: Re: Example of minimal CoreMidi code to play MIDI through the built in synth?
  • Previous by thread: Re: wow, Pandora rocks ... how to make make my iPhone
  • Next by thread: Re: Detecting if sounds are playing in Crash Landing iPhone App sample sound Engine
  • Index(es):
    • Date
    • Thread