Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PortAudio error when changing sample rate. #153

Open
TDW89 opened this issue Apr 12, 2023 · 2 comments
Open

PortAudio error when changing sample rate. #153

TDW89 opened this issue Apr 12, 2023 · 2 comments
Labels
testing Issue with test

Comments

@TDW89
Copy link
Contributor

TDW89 commented Apr 12, 2023

OS: Windows 10
xe file: app_usb_aud_xk_316_mc_2AMi8o10xxsxxx_mix8.xe

error message: ERROR: PortAudio error: Unanticipated host error
the error occurs when going from 176kHz to 48kHz and 192kHz to 44.1kHz

reproduced with the batch file:

@echo off

:: change ADAPTER-ID to match
set ADAPTER-ID=PFFKURWW
set XE=app_usb_aud_xk_316_mc_2AMi8o10xxsxxx_mix8.xe
set XSIG-CONFIG=config_xigRamp.json

xgdb -ex "conn --adapter-id %ADAPTER-ID%" -ex quit

xrun --adapter-id %ADAPTER-ID% %XE%

timeout /t 10

for %%i in (1 2 3 4 5 6 7 8 9 10) do (
    for %%f in (44100 88200 176400 48000 96000 192000) do (
        echo %%f run [%%i of 10]
        xsig %%f 3000 %XSIG-CONFIG%
        echo
        timeout /t 2
    )
)

xgdb -ex "conn --adapter-id %ADAPTER-ID%" -ex quit

config_xsigRamp.jason

{
    "out" : [
        ["zero"],
        ["zero"],
        ["zero"],
        ["zero"],
        ["zero"],
        ["zero"],
        ["zero"],
        ["zero"],
        ["ramp", 7],
        ["ramp", -5]
    ],
    "in" : []
}

Error happens with or without the delays.
Error does not happen if 88200 and 960000 are removed from the loop

@TDW89
Copy link
Contributor Author

TDW89 commented Apr 12, 2023

unable to reproduce on mac
USB trace shows sample rate set fine but no attempt to start the audio stream

@TDW89
Copy link
Contributor Author

TDW89 commented Apr 12, 2023

looking at issue PortAudio/portaudio#114 it should be possible to modify portaudio to output more information

@xross xross added the testing Issue with test label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issue with test
Projects
None yet
Development

No branches or pull requests

2 participants