jack1 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.

49 lines
1.7KB

  1. /*
  2. * AudioRenderBridge.h
  3. * jack_coreaudio
  4. *
  5. * Copyright (c) 2004 Johnny Petrantoni. All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public License
  9. * as published by the Free Software Foundation; either version 2.1
  10. * of the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this program; if not, write to the Free
  19. * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  20. * 02111-1307, USA.
  21. *
  22. * Created by Johnny Petrantoni on Fri Jan 30 2004.
  23. * This code is part of Panda framework (moduleloader.cpp)
  24. * http://xpanda.sourceforge.net
  25. */
  26. typedef int (*JackRunCyclePtr) (void *driver, long bufferSize);
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. void *openPandaAudioInstance(float sampleRate, long bufferSize,
  31. int inChannels, int outChannels,
  32. char *device);
  33. void closePandaAudioInstance(void *instance);
  34. int startPandaAudioProcess(void *instance);
  35. int stopPandaAudioProcess(void *instance);
  36. float **getPandaAudioInputs(void *instance);
  37. float **getPandaAudioOutputs(void *instance);
  38. void *getHostData(void *instance);
  39. void setHostData(void *instance, void *hostData);
  40. void setCycleFun(void *instance, JackRunCyclePtr fun);
  41. void setParameter(void *instance, int id, void *data);
  42. #ifdef __cplusplus
  43. }
  44. #endif