mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
add miles
This commit is contained in:
parent
3081824ca3
commit
c6799a2125
@ -130,8 +130,33 @@ plugin-path $OPENAL_ROOT
|
|||||||
audio-library-name p3openal_audio
|
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):
|
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'):
|
if platform.startswith('osx'):
|
||||||
require('fmod')
|
require('fmod')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user