Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About brobertson

  • Rank
  1. brobertson

    Python module search path

    That did the trick. Thanks for the tip.
  2. Ok, I have a relatively simple question (at least I think it is). As the title suggests I am trying to change to module search path of the Python interpreter. I have embedded the interpreter I would prefer to modify the path from C (if possible). I have successfuly modified the PYTHONPATH environment variable but it seems to get reset when the interpreter runs. So, how do I change the module search path using the C api?
  3. Ok, I am trying to get sound effects to play properly in Linux with SDL_mixer. I can play music fine, and I can get the sound effect to play, except that the program waits for it to finish before moving on. In order to remedy this I threaded off a short method to just play the sound. It works much better now except for 2 things: 1) When I go and look at the processes memory consumption it increase by ~8MB whenever I play a single sound. I read the SDL thread docs and it says that the thread will exit when the function passed to the SDL_CreateThread() method exits. I am not really sure what is wrong. Is there a better way to play multiple sound effects with SDL_mixer that I am missing? Or am I just threading incorrectly (All I do is use the SDL_CreateThread() method and move on letting the thread exit)? 2) My second question is: why does the memory consumption increase by ~8MB for each sound effect played... seems a bit excessive. Well thats about it. Thanks in advance for all the help/advice.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!