PortAudio not initialized

374 views
Skip to first unread message

mc

unread,
Nov 17, 2012, 3:02:05 PM11/17/12
to extemp...@googlegroups.com
Wow, very interesting concept to run two similar languages in parallel, one untyped, one typed!

Yet, while trying to get xtempore installed and running on a mac 10.8.2,
i got stuck with initialising the audio device (see 'logs' below).

I had downloaded the xtempore executable from github as described lately in the blog
and used homebrew to get protaudio which installed version 19.20111121 just fine.

I also tried to compile xtempore from source, but ran in the expected problem building llvm 3.0.

Thanx for help or ideas about what might have gone wrong here,
mc


./extempore --print-devices

-----Available Audio Drivers-------
audio device[0]:AirPlay api[0]:Core Audio inchan[0] outchan[2]
audio device[1]:Built-in Microph api[0]:Core Audio inchan[2] outchan[0]
audio device[2]:Built-in Input api[0]:Core Audio inchan[2] outchan[0]
audio device[3]:Built-in Output api[0]:Core Audio inchan[0] outchan[2]
audio device[4]:Sennheiser MM550 api[0]:Core Audio inchan[1] outchan[1]
audio device[5]:LogMeInSoundDriver api[0]:Core Audio inchan[2] outchan[2]
audio device[6]:Soundflower (2ch) api[0]:Core Audio inchan[2] outchan[2]
audio device[7]:Soundflower (16ch) api[0]:Core Audio inchan[16] outchan[16]
audio device[8]:Sennheiser MM550 Stereo api[0]:Core Audio inchan[0] outchan[2]
audio device[9]:AirPhones api[0]:Core Audio inchan[2] outchan[2]
-----------------------------------

PortAudio not initialized
PortAudio not initialized
PortAudio not initialized


and then


bash-3.2$ ./extempore --device 3
##########################################                                        
##                                      ##                                        
##               EXTEMPORE              ##                                        
##                                      ##                                        
##           and...@moso.com.au         ##                                        
##                                      ##                                        
##            (c) 2010-2012             ##                                        
##                                      ##                                        
##########################################                                        
     ################################                                             
          ######################                                                  
               ############                                                       
                    ##                                                            
                                                                                  
Could not open runtime/code.irPortAudio not initialized
PortAudio not initialized
PortAudio not initialized



Andrew Sorensen

unread,
Nov 17, 2012, 6:31:41 PM11/17/12
to extemp...@googlegroups.com
The PortAudio not initialized message is a bit misleading here ;)  Portaudio looks like it's working fine.

The problem is actually with the "could not open runtime/code.ir" (that needs a line break ;-)
The extempore executable expects to find a runtime directory (which you can find as a toplevel src directory on github) in the current working directory.  This directory contains a bunch of runtime scm and xtm files that are loaded by extempore on startup.

If necessary you can override the location of runtime (i.e. put it somewhere other than the CWD) with the command line arg --runtime="pathtoruntime"

This is something we should have a more obvious/useful error message for - we'll get onto that.

Cheers,
Andrew.

mc

unread,
Nov 17, 2012, 6:51:24 PM11/17/12
to extemp...@googlegroups.com
Great, the arg '--runtime' lifted my break and did the trick!

Thanx for the quick response,
mc
Reply all
Reply to author
Forward
0 new messages