Skip to content

Commit

Permalink
MixStream: reorganize into a package
Browse files Browse the repository at this point in the history
  • Loading branch information
stump committed Jan 6, 2013
1 parent a6e9f83 commit d30a573
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -17,7 +17,7 @@ src/*.idb
src/build
src/pypitch/_pypitch.cpp
src/cmgl.c
src/MixStream.c
src/MixStream/_MixStream.c
src/VideoPlayer.c
gstreamer/*
data/library.zip
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/MixStream.pyx → src/MixStream/_MixStream.pyx
Expand Up @@ -21,8 +21,6 @@
# MA 02110-1301, USA. #
#####################################################################

# First a thin wrapper around VideoPlayer from VideoPlayerCore.c...

cdef extern from "MixStream.h":
ctypedef struct CMixStream "MixStream":
pass
Expand Down
1 change: 1 addition & 0 deletions src/MixStream/__init__.py
@@ -0,0 +1 @@
from _MixStream import *
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions src/setup.py
Expand Up @@ -317,7 +317,7 @@ def def_split(x):
# Other systems: we ask pkg-config.
gl_info = pc_info('gl')
# And build our own soundtouch-c.
extra_soundtouch_src = ['soundtouch-c.cpp']
extra_soundtouch_src = ['MixStream/soundtouch-c.cpp']
# Build a similar info record for the numpy headers.
numpy_info = {'include_dirs': [np.get_include()]}

Expand Down Expand Up @@ -433,7 +433,8 @@ def run(self):
'pypitch/AnalyzerInput.cpp']),
Extension('VideoPlayer', ['VideoPlayer.pyx', 'VideoPlayerCore.c'],
**combine_info(gl_info, ogg_info, theoradec_info, glib_info, swscale_info)),
Extension('MixStream', ['MixStream.pyx', 'MixStreamCore.c', 'MixStreamVorbis.c'] + extra_soundtouch_src,
Extension('MixStream._MixStream',
['MixStream/_MixStream.pyx', 'MixStream/MixStream.c', 'MixStream/vorbis.c'] + extra_soundtouch_src,
**combine_info(vorbisfile_info, soundtouch_info, glib_info, gthread_info, sdl_info, sdl_mixer_info)),
],
'cmdclass': {'build_ext': build_ext, 'install': install, 'msgfmt': msgfmt, 'xgettext': xgettext},
Expand Down
2 changes: 1 addition & 1 deletion win32/makedeps-cross.sh
Expand Up @@ -332,7 +332,7 @@ fi
# is that we need a bridge into the MinGW-compiled C++ code that is
# SoundTouch that we can link to with MSVC.
if test ! -f "$PREFIX"/build-stamps/soundtouch-c; then
$CROSS_GXX -g -O2 -W -Wall `pkg-config --cflags glib-2.0 soundtouch` -fno-exceptions -fno-rtti -c -o soundtouch-c.o ../src/soundtouch-c.cpp
$CROSS_GXX -g -O2 -W -Wall `pkg-config --cflags glib-2.0 soundtouch` -fno-exceptions -fno-rtti -c -o soundtouch-c.o ../src/MixStream/soundtouch-c.cpp
rm -f "$PREFIX"/lib/soundtouch-c.lib
$CROSS_AR cru "$PREFIX"/lib/soundtouch-c.lib soundtouch-c.o
$CROSS_RANLIB "$PREFIX"/lib/soundtouch-c.lib
Expand Down

0 comments on commit d30a573

Please sign in to comment.