AmigaOne X5000 Sound Issues - Becomes static and crackling after minutes
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    ** Added video link so you can hear what I hear. See link at the bottom **



    I may make a video and post a link so you all can here what I mean but any other AmigaOne X5K owners here experience sound issues while running MorphOS?

    I am using MorphOS 3.20 and today while trying the new Wayfarer 10 with YouTube and then tried to play some games as well, within maybe a minute or two sound that starts OK becomes a static crackling mess, even tin like sounding.

    My X5K has an audio board as they did not come with onboard sound. Under Amiga OS 4.1 all sounds great. I use the same audio port on the card out to a small A/B splitter as I also use old gaming systems on the same TV so nice to get nice sound from them when I want.

    Under MorphOS or AmigaOS I have the switch to the right selector and under AmigaOS fine, under MorphOS anything that outputs sound starts OK but within a minute or two turns to poo. haha

    When I can I may try bypassing the splitter "just in case" but hard to get behind the X5K on the desk so don't have time today but will later.

    Just seems weird under Amiga OS, same port, same speakers, all is perfect. Under MorphOS starts out OK but then degrades.

    Anyone else have that issue before?

    TJ


    https://youtu.be/UdGpiaDXukM

    [ Edited by amigasociety 17.06.2025 - 11:58 ]
  • »17.06.25 - 17:10
    Profile Visit Website
  • MorphOS Developer
    cyfm
    Posts: 544 from 2003/4/11
    From: Germany
    It would be helpful if you would actually tell us what kind of audio board you use ...
  • »17.06.25 - 19:56
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    Added video link so you all can hear what I am hearing with bad X5K audio issues.

    MorphOS sees the card I am using just the same as AmigaOS does a
    CMI8738 Hifi 16 Bit Stereo++

    Any help would be great!

    TJ

    https://youtu.be/UdGpiaDXukM
  • »17.06.25 - 20:00
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    Quote:

    cyfm wrote:
    It would be helpful if you would actually tell us what kind of audio board you use ...



    As I purchased the X5K back in 2016 I don't remember the brand and model of the card so other than what AmigaOS and MorphOS see as the driver, CMI8738 Hifi 16 Bit Stereo++, that is all I know for now.

    It will come to taking apart and getting the card out to see and my guess a generic card of some kind but it has been almost 10 years so I don't remember.

    Unless there is some app in AmigaOS or MorphOS that can scan the hardware inside my X5K and show what model board it is?

    TJ

    [ Edited by amigasociety 17.06.2025 - 12:18 ]
  • »17.06.25 - 20:03
    Profile Visit Website
  • MorphOS Developer
    cyfm
    Posts: 544 from 2003/4/11
    From: Germany
    Quote:

    amigasociety schrieb:
    Quote:

    cyfm wrote:
    It would be helpful if you would actually tell us what kind of audio board you use ...



    As I purchased the X5K back in 2016 I don't remember the brand and model of the card so other than what AmigaOS and MorphOS see as the driver, CMI8738 Hifi 16 Bit Stereo++, that is all I know for now.

    It will come to taking apart and getting the card out to see and my guess a generic card of some kind but it has been almost 10 years so I don't remember.

    Unless there is some app in AmigaOS or MorphOS that can scan the hardware inside my X5K and show what model board it is?

    TJ

    [ Edited by amigasociety 17.06.2025 - 12:18 ]


    showconfig in a shell usually lists the card IDs found in the system but it can not find the actual model of the card usually.
    Either way, CMI8738 is good enough for a start. The distorted audio in the video sounds like the playback buffering gets out of sync at some point and new audio data is filled into the currently played buffer, so it pretty much seems to be a AHI driver bug that only seems to show in MorphOS.
  • »17.06.25 - 21:07
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    As I only used MorphOS 3.19 a short time and not much audio, what I don't remember is this audio hiccup I now have in 3.20.

    I did not run older MorphOS on my X5K so can't see how updates affected this or not in my limited time using MorphOS on my X5k.

    Always a chance 3.20 introduced something new?

    TJ



    Quote:

    cyfm wrote:
    Quote:

    amigasociety schrieb:
    Quote:

    cyfm wrote:
    It would be helpful if you would actually tell us what kind of audio board you use ...



    As I purchased the X5K back in 2016 I don't remember the brand and model of the card so other than what AmigaOS and MorphOS see as the driver, CMI8738 Hifi 16 Bit Stereo++, that is all I know for now.

    It will come to taking apart and getting the card out to see and my guess a generic card of some kind but it has been almost 10 years so I don't remember.

    Unless there is some app in AmigaOS or MorphOS that can scan the hardware inside my X5K and show what model board it is?

    TJ

    [ Edited by amigasociety 17.06.2025 - 12:18 ]


    showconfig in a shell usually lists the card IDs found in the system but it can not find the actual model of the card usually.
    Either way, CMI8738 is good enough for a start. The distorted audio in the video sounds like the playback buffering gets out of sync at some point and new audio data is filled into the currently played buffer, so it pretty much seems to be a AHI driver bug that only seems to show in MorphOS.





    [ Edited by amigasociety 17.06.2025 - 13:13 ]
  • »17.06.25 - 21:12
    Profile Visit Website
  • MorphOS Developer
    cyfm
    Posts: 544 from 2003/4/11
    From: Germany
    Are you sure you are running the beta version of 3.20 btw ? :)

    Anyway, I did the CMI8738 AHI driver around 2017 when the X5000 started to show up and it didn't change much since then...

    You could try to edit the env variable envarc:cmi8738.audio, put the string

    Code:
    TASKBASEDMIXING


    into it, reboot and check if it makes any difference.
  • »18.06.25 - 05:56
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    Oh Jiminy Crickets... I meant to say 3.19. I had 3.20 on my mind. haha

    Thanks for the tips.

    TJ


    Quote:

    cyfm wrote:
    Are you sure you are running the beta version of 3.20 btw ? :)

    Anyway, I did the CMI8738 AHI driver around 2017 when the X5000 started to show up and it didn't change much since then...

    You could try to edit the env variable envarc:cmi8738.audio, put the string

    Code:
    TASKBASEDMIXING


    into it, reboot and check if it makes any difference.



  • »18.06.25 - 12:35
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    Howdy, I need a little guiding here to try this.

    I found my cmi8738.audio in this directory

    MOS:MorphOS/DEVS/AHI/ and unsure if you mean I need to open the cmi8738.audio in an Editor and add the text below.

    I did try that using Editor that comes with MorphOS but it brings no text into the app.

    I also did find a directory called ENVARC in

    My MorphOS:ENVARC but find no cmi8738.audio listed inside or in any of its subdirectories.

    Sorry, unsure what to do but happy to try if you can offer added info on what I need to do.

    Thanks

    TJ

    Quote:

    amigasociety wrote:
    Oh Jiminy Crickets... I meant to say 3.19. I had 3.20 on my mind. haha

    Thanks for the tips.

    TJ


    Quote:

    cyfm wrote:
    Are you sure you are running the beta version of 3.20 btw ? :)

    Anyway, I did the CMI8738 AHI driver around 2017 when the X5000 started to show up and it didn't change much since then...

    You could try to edit the env variable envarc:cmi8738.audio, put the string

    Code:
    TASKBASEDMIXING


    into it, reboot and check if it makes any difference.






  • »18.06.25 - 16:56
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2446 from 2003/2/24
    Env variables are just textfiles, so if this doesn't exist, just copy TASKBASEDMIXING into an empty editor window and save and that under the given filename.

    On next boot it will be copied to RAM:env from which it should be used.

    [ Edited by Kronos 18.06.2025 - 18:31 ]
  • »18.06.25 - 17:31
    Profile
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    And just save in the

    My MorphOS:ENVARC - directory?

    Please confirm and I will give that a shot when I am at my X5K again.

    Thanks

    TJ

    TYJ
    Quote:

    Kronos wrote:
    Env variables are just textfiles, so if this doesn't exist, just copy TASKBASEDMIXING into an empty editor window and save and that under the given filename.

    On next boot it will be copied to RAM:env from which it should be used.
  • »18.06.25 - 17:35
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2446 from 2003/2/24
    Quote:

    amigasociety wrote:
    And just save in the

    My MorphOS:ENVARC - directory?





    Yes, sure.


    Nitpick:
    Thats not a directory, thats an assign pointing to a directory on sys:

    But yes, sure safe it there and see if it makes a difference.
  • »18.06.25 - 17:44
    Profile
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    Done and when launching a game that has sound I received this error.

    Mix_OpenAudio failed: Unable to open ahi.device unit 0! Error code -1.

    The game then failed to launch.

    TJ



    Quote:

    Kronos wrote:
    Quote:

    amigasociety wrote:
    And just save in the

    My MorphOS:ENVARC - directory?





    Yes, sure.


    Nitpick:
    Thats not a directory, thats an assign pointing to a directory on sys:

    But yes, sure safe it there and see if it makes a difference.
  • »18.06.25 - 17:46
    Profile Visit Website
  • Caterpillar
    Caterpillar
    Skateman
    Posts: 30 from 2020/10/11
    cyfm wrote:
    Are you sure you are running the beta version of 3.20 btw ? :)

    Anyway, I did the CMI8738 AHI driver around 2017 when the X5000 started to show up and it didn't change much since then...

    You could try to edit the env variable envarc:cmi8738.audio, put the string

    Code:
    TASKBASEDMIXING


    into it, reboot and check if it makes any difference.


    I gave it a try on the Mirari with a CMI8738 audio card but the issue remains the same.

    Dave
  • »22.06.25 - 07:07
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Georg
    Posts: 122 from 2004/4/7
    Btw, there's CMI8738 AHI Driver source in AROS sources which seems to come from AOS4 but I don't know if it's the same (or the same version) as the one used when "Under Amiga OS 4.1 all sounds great".
  • »22.06.25 - 14:25
    Profile
  • Butterfly
    Butterfly
    Posts: 87 from 2023/12/1
    Ah good to know it is not isolated to just my system.

    Hopefully a fix comes one day so I can learn and use MorphOS in the coming years.

    TJ

    Quote:

    Skateman wrote:
    cyfm wrote:
    Are you sure you are running the beta version of 3.20 btw ? :)

    Anyway, I did the CMI8738 AHI driver around 2017 when the X5000 started to show up and it didn't change much since then...

    You could try to edit the env variable envarc:cmi8738.audio, put the string

    Code:
    TASKBASEDMIXING


    into it, reboot and check if it makes any difference.


    I gave it a try on the Mirari with a CMI8738 audio card but the issue remains the same.

    Dave

  • »24.06.25 - 15:20
    Profile Visit Website