int IPhoneSoundDevice::GetVolume() { AudioQueueParameterValue value; AudioQueueGetParameter(m_haq, kAudioQueueParam_Volume, &value); return (int)(value * 255.0); }
float AudioQueueStreamOut::GetVolume() { if(mInfo.mQueue) AudioQueueGetParameter(mInfo.mQueue, kAudioQueueParam_Volume,&m_Volume); return m_Volume; }
float Audio_Queue::volume() { if (!m_outAQ) { return 1.0; } float vol; OSStatus err = AudioQueueGetParameter(m_outAQ, kAudioQueueParam_Volume, &vol); if (!err) { return vol; } return 1.0; }