jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.3KB

  1. /*
  2. Copyright (C) 2008 Grame
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. */
  15. #include "JackCoreAudioIOAdapter.h"
  16. namespace Jack
  17. {
  18. OSStatus JackCoreAudioIOAdapter::Render(void *inRefCon,
  19. AudioUnitRenderActionFlags *ioActionFlags,
  20. const AudioTimeStamp *inTimeStamp,
  21. UInt32 inBusNumber,
  22. UInt32 inNumberFrames,
  23. AudioBufferList *ioData)
  24. {
  25. return noErr;
  26. }
  27. OSStatus JackCoreAudioIOAdapter::GetDeviceIDFromUID(const char* UID, AudioDeviceID* id)
  28. {
  29. return noErr;
  30. }
  31. OSStatus JackCoreAudioIOAdapter::GetDefaultDevice(AudioDeviceID* id)
  32. {
  33. return noErr;
  34. }
  35. OSStatus JackCoreAudioIOAdapter::GetDefaultInputDevice(AudioDeviceID* id)
  36. {
  37. return noErr;
  38. }
  39. OSStatus JackCoreAudioIOAdapter::GetDefaultOutputDevice(AudioDeviceID* id)
  40. {
  41. return noErr;
  42. }
  43. OSStatus JackCoreAudioIOAdapter::GetDeviceNameFromID(AudioDeviceID id, char* name)
  44. {
  45. return noErr;
  46. }
  47. OSStatus JackCoreAudioIOAdapter::GetTotalChannels(AudioDeviceID device, int* channelCount, bool isInput)
  48. {
  49. return noErr;
  50. }
  51. // Setup
  52. int JackCoreAudioIOAdapter::SetupDevices(const char* capture_driver_uid,
  53. const char* playback_driver_uid,
  54. char* capture_driver_name,
  55. char* playback_driver_name)
  56. {
  57. return 0;
  58. }
  59. int JackCoreAudioIOAdapter::SetupChannels(bool capturing,
  60. bool playing,
  61. int& inchannels,
  62. int& outchannels,
  63. int& in_nChannels,
  64. int& out_nChannels,
  65. bool strict)
  66. {
  67. return 0;
  68. }
  69. int JackCoreAudioIOAdapter::SetupBufferSizeAndSampleRate(jack_nframes_t nframes, jack_nframes_t samplerate)
  70. {
  71. return 0;
  72. }
  73. }