- Timestamp:
- Aug 14, 2016 11:24:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r63444 r63445 629 629 } 630 630 631 static DECLCALLBACK(OSStatus) drvHostCoreAudioDeviceStateChanged(AudioObjectID propertyID, 632 UInt32 nAddresses, 633 const AudioObjectPropertyAddress properties[], 634 void *pvUser) 631 632 /** 633 * Implements the OS X callback AudioObjectPropertyListenerProc. 634 */ 635 static OSStatus drvHostCoreAudioDeviceStateChanged(AudioObjectID propertyID, 636 UInt32 nAddresses, 637 const AudioObjectPropertyAddress properties[], 638 void *pvUser) 635 639 { 636 640 LogFlowFunc(("propertyID=%u nAddresses=%u pvUser=%p\n", propertyID, nAddresses, pvUser)); … … 701 705 } 702 706 703 /* Callback for getting notified when the default recording/playback device has been changed. */ 704 static DECLCALLBACK(OSStatus) coreAudioDefaultDeviceChanged(AudioObjectID propertyID, 705 UInt32 nAddresses, 706 const AudioObjectPropertyAddress properties[], 707 void *pvUser) 707 708 /** 709 * Implements the OS X callback AudioObjectPropertyListenerProc for getting 710 * notified when the default recording/playback device has been changed. 711 */ 712 static OSStatus coreAudioDefaultDeviceChanged(AudioObjectID propertyID, 713 UInt32 nAddresses, 714 const AudioObjectPropertyAddress properties[], 715 void *pvUser) 708 716 { 709 717 OSStatus err = noErr; … … 791 799 } 792 800 793 /* Callback for getting notified when some of the properties of an audio device has changed. */ 794 static DECLCALLBACK(OSStatus) coreAudioRecordingAudioDevicePropertyChanged(AudioObjectID propertyID, 795 UInt32 cAdresses, 796 const AudioObjectPropertyAddress aProperties[], 797 void *pvUser) 801 802 /** 803 * Implements the OS X callback AudioObjectPropertyListenerProc for getting 804 * notified when some of the properties of an audio device has changed. 805 */ 806 static OSStatus coreAudioRecordingAudioDevicePropertyChanged(AudioObjectID propertyID, 807 UInt32 cAdresses, 808 const AudioObjectPropertyAddress aProperties[], 809 void *pvUser) 798 810 { 799 811 PCOREAUDIOSTREAMIN pStreamIn = (PCOREAUDIOSTREAMIN)pvUser; … … 826 838 } 827 839 828 /* Callback to convert audio input data from one format to another. */ 829 static DECLCALLBACK(OSStatus) coreAudioConverterCallback(AudioConverterRef inAudioConverter, 830 UInt32 *ioNumberDataPackets, 831 AudioBufferList *ioData, 832 AudioStreamPacketDescription **ppASPD, 833 void *pvUser) 840 /** 841 * Implements the OS X callback AudioConverterComplexInputDataProc for 842 * converting audio input data from one format to another. 843 */ 844 static OSStatus coreAudioConverterCallback(AudioConverterRef inAudioConverter, 845 UInt32 *ioNumberDataPackets, 846 AudioBufferList *ioData, 847 AudioStreamPacketDescription **ppASPD, 848 void *pvUser) 834 849 { 835 850 AssertPtrReturn(ioNumberDataPackets, g_caConverterEOFDErr); … … 901 916 } 902 917 903 /* Callback to feed audio input buffer. */ 904 static DECLCALLBACK(OSStatus) coreAudioRecordingCb(void *pvUser, 905 AudioUnitRenderActionFlags *pActionFlags, 906 const AudioTimeStamp *pAudioTS, 907 UInt32 uBusID, 908 UInt32 cFrames, 909 AudioBufferList *pBufData) 918 /** 919 * Implements the OS X callback AURenderCallback in order to feed the audio 920 * input buffer. 921 */ 922 static OSStatus coreAudioRecordingCb(void *pvUser, 923 AudioUnitRenderActionFlags *pActionFlags, 924 const AudioTimeStamp *pAudioTS, 925 UInt32 uBusID, 926 UInt32 cFrames, 927 AudioBufferList *pBufData) 910 928 { 911 929 /* If nothing is pending return immediately. */ … … 1870 1888 } 1871 1889 1872 /* Callback for getting notified when some of the properties of an audio device has changed. */ 1873 static DECLCALLBACK(OSStatus) coreAudioPlaybackAudioDevicePropertyChanged(AudioObjectID propertyID, 1874 UInt32 nAddresses, 1875 const AudioObjectPropertyAddress properties[], 1876 void *pvUser) 1890 1891 /** 1892 * Implements the OS X callback AudioObjectPropertyListenerProc for getting 1893 * notified when some of the properties of an audio device has changed. 1894 */ 1895 static OSStatus coreAudioPlaybackAudioDevicePropertyChanged(AudioObjectID propertyID, 1896 UInt32 nAddresses, 1897 const AudioObjectPropertyAddress properties[], 1898 void *pvUser) 1877 1899 { 1878 1900 switch (propertyID) … … 1887 1909 } 1888 1910 1889 /* Callback to feed audio output buffer. */ 1890 static DECLCALLBACK(OSStatus) coreAudioPlaybackCb(void *pvUser, 1891 AudioUnitRenderActionFlags *pActionFlags, 1892 const AudioTimeStamp *pAudioTS, 1893 UInt32 uBusID, 1894 UInt32 cFrames, 1895 AudioBufferList *pBufData) 1911 1912 /** 1913 * Implements the OS X callback AURenderCallback in order to feed the audio 1914 * output buffer. 1915 */ 1916 static OSStatus coreAudioPlaybackCb(void *pvUser, 1917 AudioUnitRenderActionFlags *pActionFlags, 1918 const AudioTimeStamp *pAudioTS, 1919 UInt32 uBusID, 1920 UInt32 cFrames, 1921 AudioBufferList *pBufData) 1896 1922 { 1897 1923 PCOREAUDIOSTREAMOUT pStreamOut = (PCOREAUDIOSTREAMOUT)pvUser; … … 2168 2194 } 2169 2195 2170 static DECLCALLBACK(int) coreAudioControlStreamOut(PDRVHOSTCOREAUDIO pThis, 2171 PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd) 2196 static int coreAudioControlStreamOut(PDRVHOSTCOREAUDIO pThis, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd) 2172 2197 { 2173 2198 PCOREAUDIOSTREAMOUT pStreamOut = (PCOREAUDIOSTREAMOUT)pStream;
Note:
See TracChangeset
for help on using the changeset viewer.