;============================================================================
; om#: visual programming language for computer-assisted music composition
;============================================================================
;
;   This program is free software. For information on usage
;   and redistribution, see the "LICENSE" file in this distribution.
;
;   This program is distributed in the hope that it will be useful,
;   but WITHOUT ANY WARRANTY; without even the implied warranty of
;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
;
;============================================================================
  File author :  
;============================================================================

;;===========================================================================
; AUDIO API
;;===========================================================================
(in-package :cl-user)

(compile&load (decode-local-path "libsamplerate/libsamplerate"))
(compile&load (decode-local-path "omaudiolib/omaudiolib"))
(compile&load (decode-local-path "file-access"))


(push :audio *features*)

(defun load-audio-libs ()

  (om-fi::om-load-foreign-library
   "omaudiolib"
   `((:macosx ,(om-fi::om-foreign-library-pathname "omaudiolib.dylib"))
     (:windows ,(om-fi::om-foreign-library-pathname "omaudiolib.dll"))
     (:linux ,(om-fi::om-foreign-library-pathname "omaudiolib.so"))))

;  (om-fi::om-load-foreign-library
;   "LIBSNDFILE"
    ` ( (:  , ( om - fi::om - foreign - library - pathname " libsndfile.dylib " ) )
;     (:unix  (:default "libsndfile"))
;     (:windows (:or ,(om-fi::om-foreign-library-pathname "libsndfile-1.dll")
;                (:default "libsndfile-1")))
;     (t (:default "libsndfile"))))

  (om-fi::om-load-foreign-library
   "libsamplerate"
   `((:macosx ,(om-fi::om-foreign-library-pathname "libsamplerate.dylib"))
     (:unix (:default "libsamplerate"))
     (:windows (:or ,(om-fi::om-foreign-library-pathname "libsamplerate-0.dll")
                (:default "libsamplerate")))
     (t (:default "libsamplerate"))))
  )

(om-fi::add-foreign-loader 'load-audio-libs)






============================================================================
 om#: visual programming language for computer-assisted music composition
============================================================================

   This program is free software. For information on usage
   and redistribution, see the "LICENSE" file in this distribution.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

============================================================================
============================================================================
===========================================================================
 AUDIO API
===========================================================================
  (om-fi::om-load-foreign-library
   "LIBSNDFILE"
     (:unix  (:default "libsndfile"))
     (:windows (:or ,(om-fi::om-foreign-library-pathname "libsndfile-1.dll")
                (:default "libsndfile-1")))
     (t (:default "libsndfile"))))
  File author :  

(in-package :cl-user)

(compile&load (decode-local-path "libsamplerate/libsamplerate"))
(compile&load (decode-local-path "omaudiolib/omaudiolib"))
(compile&load (decode-local-path "file-access"))


(push :audio *features*)

(defun load-audio-libs ()

  (om-fi::om-load-foreign-library
   "omaudiolib"
   `((:macosx ,(om-fi::om-foreign-library-pathname "omaudiolib.dylib"))
     (:windows ,(om-fi::om-foreign-library-pathname "omaudiolib.dll"))
     (:linux ,(om-fi::om-foreign-library-pathname "omaudiolib.so"))))

    ` ( (:  , ( om - fi::om - foreign - library - pathname " libsndfile.dylib " ) )

  (om-fi::om-load-foreign-library
   "libsamplerate"
   `((:macosx ,(om-fi::om-foreign-library-pathname "libsamplerate.dylib"))
     (:unix (:default "libsamplerate"))
     (:windows (:or ,(om-fi::om-foreign-library-pathname "libsamplerate-0.dll")
                (:default "libsamplerate")))
     (t (:default "libsamplerate"))))
  )

(om-fi::add-foreign-loader 'load-audio-libs)





