AmigaOne X5000 Sound Issues - Becomes static and crackling after minutes
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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: 568 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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: 568 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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: 568 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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: 2518 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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: 2518 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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: 38 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: 126 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 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
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 from 2023/12/1
    Reviving this old thread for context of what I did before.

    Nutshell... I just want some sound back. LOL.

    Ever since I created that CMI8738 Audio file in the ENV directory, I get no sound at all.

    I removed said file (I believe as shown in the video) but still have zero sound.

    Some sound is better than none.

    What have I done wrong?

    I did install some SDL 2 and 3 so other games could be tested and when I try to launch them get an Mixer error but smaller games like Diamonds runs but zero sound.

    AmigaRacer game I get a Error initializing Soundmixer error.

    HansKloss game I get a Mix_OpenAudio(..) Failed, error Unable to open ahi.device unit 0 Error Code -1.

    Maybe something I installed after all of this has borked my sound files?

    Any tips to see if I can get some sound back would be cool.

    This video shows I get sound fine in Amiga OS 4 on my X5K but non on MorphOS at all.

    Thanks

    TJ

    https://youtu.be/z3GQyXrYxxg

    [ Edited by amigasociety 02.01.2026 - 13:09 ]
  • »02.01.26 - 21:03
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Mozzerfan
    Posts: 103 from 2016/10/5
    Have you remove the file in envarc: and then rebooted?

    Quote:

    amigasociety wrote...


    Ever since I created that CMI8738 Audio file in the ENV directory, I get no sound at all.

    I removed said file (I believe as shown in the video) but still have zero sound.


  • »02.01.26 - 23:59
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 from 2023/12/1
    Yup, did that a while ago when I did all the SDL installed. In the video I show the directory and it not there so was trashed and gone a while now with many reboots in the mix.

    TJ

    Quote:

    Mozzerfan wrote:
    Have you remove the file in envarc: and then rebooted?

    Quote:

    amigasociety wrote...


    Ever since I created that CMI8738 Audio file in the ENV directory, I get no sound at all.

    I removed said file (I believe as shown in the video) but still have zero sound.



  • »03.01.26 - 00:39
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 from 2023/12/1
    I will check in the morning but think I don’t no longer have the CMI8738 showing in my audio prefs as shown in the video link above. Maybe I chucked it somehow and now not selecting a proper driver and it be set right.

    Would think I should see one labeled CMI8738 but as the video shows, non do so maybe that is it?

    TJ
  • »03.01.26 - 02:32
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 from 2023/12/1
    A HUGE Thank You to Frank for the new CM8738 Driver as a nice 2026 New Years gift.

    Inititally my X5K went from sound but found it "fuzzed out" soon after playing to then no sound (even with the older CM8738 in the DEVS>AHI directory) to replacing it with the new driver and bam, so far sound and no fuzz.

    We all have enough fuzz in our lives (haha) so no to have sound so I can pillage MorphOS now with most of my pistons working.

    Happy Camper.

    TJ
  • »03.01.26 - 16:25
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 102 from 2023/12/1
    Thank you for the updated CM8738 driver.

    So far so good!

    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.



  • »03.01.26 - 16:27
    Profile Visit Website