Ok, let's try to fix it untill we win. Is it possible if you could compile
on host buffer calculations. This might help me to reproduce your config.
I am so sad that ALSA is so picky...
Dmitry.
Post by Bill GoodDmitry Kostjuchenko dmitrykos at iauxsoft.com
Fri Jul 30 08:57:28 EDT 2010
I managed to test my last commit on real Ubuntu x64 and for me all works ok.
I tested sample rates: 44.1k, 48k, 96k and 192k, used different latencies,
managed to go down to 1.15ms. The device was not-mmaped and on Ubuntu
x86 (in VirtualBox) mmaped. New changes seem to be working.
Awaiting for your tests to see if this issue could be closed.
Regards,
Dmitry.
Hi Dmitry,
I'm still encountering the error in r1532, here's a log with the errors I'm
getting, it also has the values being passed to Pa_OpenStream. Strangely, I'm
only having issues with the "default" ALSA device (connecting directly to my
sound card works at all settings), and it seems to work at 2048 frames
per buffer (~21 ms latency) 1024 frames/buffer (~10 ms) but not at any
of the other
values (higher and lower) I tried.
Also -- sorry for the horrible quoting job, I didn't get this in email so I
had to paste it from the web.
Thanks for looking in to this!
Bill
Debug: [Main]: SoundDevicePortAudio::open() "12, default"
Debug: [Main]: m_dSampleRate 96000
Debug: [Main]: framesPerBuffer 4096
Debug: [Main]: latency in milliseconds: 42.6667
Debug: [Main]: output channels: 2 | input channels: 0
Debug: [Main]: Opening stream with id 12
Expression 'snd_pcm_hw_params_set_period_size_near( self->pcm, hwParams,
&framesPerHostBuffer, &dir )' failed in
'src/hostapi/alsa/pa_linux_alsa.c',
line: 1722
Expression 'PaAlsaStreamComponent_DetermineFramesPerBuffer( &self->playback,
outputParameters, framesPerUserBuffer, sampleRate, hwParamsPlayback, &accurate
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1936
Expression 'PaAlsaStream_DetermineFramesPerBuffer( self, realSr,
inParams, outParams, framesPerUserBuffer, hwParamsCapture,
hwParamsPlayback, hostBufferSizeMode )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1979
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2097
Debug: [Main]: Error opening stream: Unanticipated host error
Debug: [Main]: SoundDevicePortAudio::open() "12, default"
Debug: [Main]: m_dSampleRate 96000
Debug: [Main]: framesPerBuffer 2048
Debug: [Main]: latency in milliseconds: 21.3333
Debug: [Main]: output channels: 2 | input channels: 0
Debug: [Main]: Opening stream with id 12
Debug: [Main]: Opened PortAudio stream successfully... starting
Debug: [Main]: Dynamically loaded PortAudio library!
Debug: [Main]: PortAudio: Started stream successfully
Debug: [Main]: SoundDevicePortAudio::open() "12, default"
Debug: [Main]: m_dSampleRate 96000
Debug: [Main]: framesPerBuffer 1024
Debug: [Main]: latency in milliseconds: 10.6667
Debug: [Main]: output channels: 2 | input channels: 0
Debug: [Main]: Opening stream with id 12
Debug: [Main]: Opened PortAudio stream successfully... starting
Debug: [Main]: Dynamically loaded PortAudio library!
Debug: [Main]: PortAudio: Started stream successfully
Debug: [Main]: SoundDevicePortAudio::open() "12, default"
Debug: [Main]: m_dSampleRate 96000
Debug: [Main]: framesPerBuffer 512
Debug: [Main]: latency in milliseconds: 5.33333
Debug: [Main]: output channels: 2 | input channels: 0
Debug: [Main]: Opening stream with id 12
Expression 'snd_pcm_hw_params_set_period_size_near( self->pcm, hwParams,
&framesPerHostBuffer, &dir )' failed in
'src/hostapi/alsa/pa_linux_alsa.c',
line: 1722
Expression 'PaAlsaStreamComponent_DetermineFramesPerBuffer( &self->playback,
outputParameters, framesPerUserBuffer, sampleRate, hwParamsPlayback, &accurate
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1936
Expression 'PaAlsaStream_DetermineFramesPerBuffer( self, realSr,
inParams, outParams, framesPerUserBuffer, hwParamsCapture,
hwParamsPlayback, hostBufferSizeMode )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1979
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2097
Debug: [Main]: Error opening stream: Unanticipated host error
Debug: [Main]: SoundDevicePortAudio::open() "12, default"
Debug: [Main]: m_dSampleRate 96000
Debug: [Main]: framesPerBuffer 256
Debug: [Main]: latency in milliseconds: 2.66667
Debug: [Main]: output channels: 2 | input channels: 0
Debug: [Main]: Opening stream with id 12
Expression 'snd_pcm_hw_params_set_period_size_near( self->pcm, hwParams,
&framesPerHostBuffer, &dir )' failed in
'src/hostapi/alsa/pa_linux_alsa.c',
line: 1722
Expression 'PaAlsaStreamComponent_DetermineFramesPerBuffer( &self->playback,
outputParameters, framesPerUserBuffer, sampleRate, hwParamsPlayback, &accurate
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1936
Expression 'PaAlsaStream_DetermineFramesPerBuffer( self, realSr,
inParams, outParams, framesPerUserBuffer, hwParamsCapture,
hwParamsPlayback, hostBufferSizeMode )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1979
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2097
Debug: [Main]: Error opening stream: Unanticipated host error
Debug: [Main]: SoundDevicePortAudio::open() "12, default"
Debug: [Main]: m_dSampleRate 96000
Debug: [Main]: framesPerBuffer 128
Debug: [Main]: latency in milliseconds: 1.33333
Debug: [Main]: output channels: 2 | input channels: 0
Debug: [Main]: Opening stream with id 12
Expression 'snd_pcm_hw_params_set_period_size_near( self->pcm, hwParams,
&framesPerHostBuffer, &dir )' failed in
'src/hostapi/alsa/pa_linux_alsa.c',
line: 1722
Expression 'PaAlsaStreamComponent_DetermineFramesPerBuffer( &self->playback,
outputParameters, framesPerUserBuffer, sampleRate, hwParamsPlayback, &accurate
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1936
Expression 'PaAlsaStream_DetermineFramesPerBuffer( self, realSr,
inParams, outParams, framesPerUserBuffer, hwParamsCapture,
hwParamsPlayback, hostBufferSizeMode )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1979
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2097
Debug: [Main]: Error opening stream: Unanticipated host error
_______________________________________________
Portaudio mailing list
Portaudio at music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio