From c6799a2125ffdc762593eb64712a7e90ae6bb0e0 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 12 Oct 2009 19:35:54 +0000 Subject: [PATCH] add miles --- direct/src/p3d/panda3d.pdef | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/direct/src/p3d/panda3d.pdef b/direct/src/p3d/panda3d.pdef index 33d926ecdf..1a21169fd9 100755 --- a/direct/src/p3d/panda3d.pdef +++ b/direct/src/p3d/panda3d.pdef @@ -129,9 +129,34 @@ class openal(package): plugin-path $OPENAL_ROOT audio-library-name p3openal_audio """) + +class miles(package): + # This package includes the Miles Sound System audio library. + # This is closed-source and always requires a licensing fee. + + config(display_name = "Miles Sound System") + require('panda3d') + + file('libmiles_audio.dll') + if platform.startswith('win'): + file('mssmp3.asi', 'avcodec.dll', 'avutil.dll', 'avformat.dll', + executable = True) + + elif platform.startswith('osx'): + file('libMilesMachO.dylib', + 'libMilesMachOx86.dylib', + 'mssmp3.asi', 'mssmixer.mix', 'Miles_MP3_Decoder.asi', + executable = True) + + file('miles.prc', extract = True, text = """ +plugin-path $MILES_ROOT +audio-library-name miles_audio +""") class audio(package): - # This package includes the best audio library for the given platform. + # This package includes the best audio library for the given + # platform, assuming a non-commercial application. + if platform.startswith('osx'): require('fmod') else: