Error on start up, no audio device?

Help
2010-11-19
2013-04-24
  • Lugo Teehalt
    Lugo Teehalt
    2010-11-19

    Get an error on startup, of newly installed wired from source code.

    Could not open audio device : check that the device is not busy (used by another application) and that your audio settings are correct.
    

    The full thing is:

    eric@fido:~/bin$ locate portaudio.h        
    /home/eric/Sound/jack-audio-connection-kit-0.98.1/config/os/macosx/portaudio.h
    /usr/include/portaudio.h                                                      
    eric@fido:~/bin$ artsdsp wired &                                           
    [1] 15388                                                                  
    eric@fido:~/bin$ [MAINAPP] Wired initialization...                         
    [MAINWIN][InitLocale] locale initialized to wxLANGUAGE_DEFAULT             
    [MAINWIN][Initlocale] wxstd catalog added                                  
    [MAINWIN][InitLocale] wired catalog added                                  
    [WIZARD] ChosenDir : /home/eric/my_wired_projects/WiredProject             
    [SETTINGS] Adding '/home/eric/my_wired_projects/WiredProject' to the recent list
    [AUDIO] AudioEngine construct                                                   
    [AUDIO] Portaudio initialized                                                   
    [AUDIO] Host API Number 0 is OSS with 2 devices                                 
    [AUDIO] Host API Number 1 is ALSA with 6 devices                                
    [AUDIO] New device found #0 for host 0 : /dev/dsp                               
    [AUDIO] New device found #1 for host 0 : /dev/dsp1                              
    [AUDIO] New device found #2 for host 1 : PnP Audio Device        : USB Audio (hw:0,0)
    [AUDIO] New device found #3 for host 1 : SAA7134: SAA7134 PCM (hw:1,0)               
    [AUDIO] New device found #4 for host 1 : spdif                                       
    [AUDIO] New device found #5 for host 1 : swap51                                      
    [AUDIO] New device found #6 for host 1 : ch51dup                                     
    [AUDIO] New device found #7 for host 1 : default                                     
    [AUDIO] OUTPUT MIN LATENCY 11.61 msec                                                
    [AUDIO] OUTPUT MAX LATENCY 46.4399 msec                                              
    [AUDIO] SUGGESTED LATENCY: 256 msec                                                  
    [AUDIO] Channels set, in: 0, out: 2                                                  
    [AUDIO] AudioEngine initialized                                                      
    [MIXER] Mixer initialization                                                         
    [MIXER] Mixer Left initialized 2048                                                  
    [MIXER] Mixer Right initialized 2048                                                 
    [MIXER] Mixer initialized                                                            
    [SEQUENCER] Sequencer initialized !                                                  
    [MIDITHREAD] ListDevices : numdev = 2                                                
    [MIDIINDEVICE] Opening device : 1                                                    
    [Setting Window] Midi In list populated                                              
    [MAINWIN] Start creation of GUI objects. . . .  done                                 
    [MAINWIN] Loaded 8 internal plugins                                                  
    [MAINWIN] Loaded 0 external plugins                                                  
    [SaveCenter] LoadProject                                                             
    [SaveCenter] Project file /home/eric/my_wired_projects/WiredProject/wired.xml        
    [SaveCenter] RedistributeHash begin
    [MLTree] Load
    [SaveCenter] RedistributeHash finished
    [AUDIO] OUTPUT MIN LATENCY 11.61 msec
    [AUDIO] OUTPUT MAX LATENCY 46.4399 msec
    [AUDIO] SUGGESTED LATENCY: 46.4399 msec
    [AUDIO] Channels set, in: 2, out: 2
    [AUDIO] Error using portaudio OpenStream(): Invalid number of channels
    [AUDIO] Sample rate is: 44100 Samples per buffer is: 2048
    [MAINWIN] Stream Not Opened
    Could not open audio device : check that the device is not busy (used by another application) and that your audio settings are correct.
    [MAINAPP] Error :audio engine msg: Could not open audio device : check that the device is not busy (used by another application) and that your audio settings are correct.
    [MIDITHREAD] Thread started !
    [FILECONVERT] Loading Codec management...
    ...done
    [FILECONVERT] Loading samplerate management...
    ...done
    [SEQUENCER] Thread started !
    initialized
    

    There is no microphone plugged in or anything specialized like that.  Thanks any help.

     
  • Doomsday
    Doomsday
    2010-11-19

    Hi Lugo,

    Have you tried to change audio output settings ?
    If it fail anyway, try to stop any audio deamon or audio application before launching Wired.

    Thanks for your feedback,

     
  • Lugo Teehalt
    Lugo Teehalt
    2010-11-19

    Taking your advice I started it again and mysteriously, this is about the fith starup, got no error dialog box:

    eric@fido:~/bin$ wired &                                                                       
    [1] 16509                                                                                      
    eric@fido:~/bin$ [MAINAPP] Wired initialization...                                             
    [MAINWIN][InitLocale] locale initialized to wxLANGUAGE_DEFAULT                                 
    [MAINWIN][Initlocale] wxstd catalog added                                                      
    [MAINWIN][InitLocale] wired catalog added                                                      
    [WIZARD] ChosenDir : /home/eric/my_wired_projects/WiredProject                                 
    [SETTINGS] Adding '/home/eric/my_wired_projects/WiredProject' to the recent list               
    [AUDIO] AudioEngine construct                                                                  
    [AUDIO] Portaudio initialized                                                                  
    [AUDIO] Host API Number 0 is OSS with 2 devices                                                
    [AUDIO] Host API Number 1 is ALSA with 14 devices                                              
    [AUDIO] New device found #0 for host 0 : /dev/dsp                                              
    [AUDIO] New device found #1 for host 0 : /dev/dsp1                                             
    [AUDIO] New device found #2 for host 1 : PnP Audio Device        : USB Audio (hw:0,0)          
    [AUDIO] New device found #3 for host 1 : SAA7134: SAA7134 PCM (hw:1,0)                         
    [AUDIO] New device found #4 for host 1 : front                                                 
    [AUDIO] New device found #5 for host 1 : surround40                                            
    [AUDIO] New device found #6 for host 1 : surround41                                            
    [AUDIO] New device found #7 for host 1 : surround50                                            
    [AUDIO] New device found #8 for host 1 : surround51                                            
    [AUDIO] New device found #9 for host 1 : surround71                                            
    [AUDIO] New device found #10 for host 1 : iec958                                               
    [AUDIO] New device found #11 for host 1 : spdif                                                
    [AUDIO] New device found #12 for host 1 : swap51                                               
    [AUDIO] New device found #13 for host 1 : ch51dup                                              
    [AUDIO] New device found #14 for host 1 : dmix                                                 
    [AUDIO] New device found #15 for host 1 : default                                              
    output sample rate                                                                             
    [MAINWIN] Invalid Device Settings                                                              
    [AUDIO] AudioEngine initialized                                                                
    [MIXER] Mixer initialization                                                                   
    [MIXER] Mixer Left initialized 2048                                                            
    [MIXER] Mixer Right initialized 2048                                                           
    [MIXER] Mixer initialized                                                                      
    [SEQUENCER] Sequencer initialized !                                                            
    [MIDITHREAD] ListDevices : numdev = 2                                                          
    [MIDIINDEVICE] Opening device : 1                                                              
    [Setting Window] Midi In list populated                                                        
    [MAINWIN] Start creation of GUI objects. . . .  done                                           
    [MAINWIN] Loaded 8 internal plugins                                                            
    [MAINWIN] Loaded 0 external plugins                                                            
    [SaveCenter] LoadProject
    [SaveCenter] Project file /home/eric/my_wired_projects/WiredProject/wired.xml
    [SaveCenter] RedistributeHash begin
    [MLTree] Load
    [SaveCenter] RedistributeHash finished
    [AUDIO] OUTPUT MIN LATENCY [MIDITHREAD] Thread started !
    11.61 msec
    [AUDIO] OUTPUT MAX LATENCY 46.4399 msec
    [AUDIO] SUGGESTED LATENCY: 46.4399 msec
    [AUDIO] Channels set, in: 2, out: 2
    [AUDIO] Stream opened: Sample rate is 44100 Samples/sec, Samples per buffer is: 2048
    [AUDIO] Sample format is: non-interleaved 32 bit float
    [AUDIO] Output Device is PnP Audio Device        : USB Audio (hw:0,0)
    [AUDIO] Input Device is PnP Audio Device        : USB Audio (hw:0,0)
    [AUDIO] Stream started
    [FILECONVERT] Loading Codec management...
    ...done
    [FILECONVERT] Loading samplerate management...
    ...done
    [SEQUENCER] Thread started !
    

    Always wondered, off topic, why Linux does this sort of thing.  It is almost as though it is thinking away behind the scenes and repairs itself.  A more plausible explanation perhaps is that after a delay various sound things shut themselves down.

    Any road it is now working.

    My situation is I'm trying to learn the saxophone.  Sort of picked up wired was the grown up thing, but frankly have no idea what to do with it.

    Something very simple to get it to do - to get my feet in the water??  Great thanks anyway.