Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7000283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:39:03+00:00 2026-05-27T20:39:03+00:00

I am trying to build a little sound generator with pygame and numpy. The

  • 0

I am trying to build a little sound generator with pygame and numpy. The following code plays the data out of my numpy arrays correctly, but when I try to use this code in a module and access it either from different threads or from different processes to play two sounds at a time, one of the sounds is played before the other one instead of both at the same time

def _play_array(array, ms, vol):
    sound = pygame.sndarray.make_sound(_intern._as_int16(array))
    channel = sound.play(-1)
    channel.set_volume(vol)
    if ms > 50:
        pygame.time.delay(ms-50)
        channel.fadeout(50)
    else:
        pygame.time.delay(ms)
    sound.stop()

update:

I have tried installing audiere, but all that happens is that it comes up with a ridiculously long error traceback, but this apparently is the problem the installer encountered: /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

(edit)
Now I found out it does not work on Mac OS X

update 2:

trying to use snack/tkSnack: RuntimeError: Tk not intialized or not registered with Snack

update 3:

trying to install wxPython to play the sound after writing it to a file – import wx just fails: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no matching architecture in universal wrapper. I am getting slightly annoyed by this problem…

update 4:

see post

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:39:04+00:00Added an answer on May 27, 2026 at 8:39 pm

    This has become to annoying for me. I decided to use the os-wide standard music player to play it, as none of the other methods seem to work.

    os.system("open " + path)
    

    works fine on mac.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build my little app for cydia submission ... but I can't
Maybe my question it's a little weird, but I'm trying to build a not-so-simple
I'm trying to build a little bit advanced users system using Joomla, but I
I am trying to build a little search script, but can't seem to stop
I'm trying to build a little Google Pagespeed client in Node, but I'm struggling
I am trying to build a little Open GL2.0 demo application on android but
I'm trying to build a little renaming program to help save me time in
I am trying to build a little javascript class for geocoding addresses trough Google
I am currently trying to build a little widget that will retrieve a list
I am trying to build my own little toolbox for Vista. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.