hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

A forum about the Hatari ST/STE/Falcon emulator - the current version is v2.1.0

Moderators: simonsunnyboy, thothy, Moderator Team

sporniket
Atariator
Atariator
Posts: 17
Joined: Fri Feb 16, 2018 5:39 pm

hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby sporniket » Sat Feb 17, 2018 10:51 am

Hello,

I recently installed hatari on my computer (linux ubuntu), I have no sound at all. It complains of my computer being "too slow", and I have an i7, SSD and plenty of RAM. I tried playing with sound settings without any success.

Here is the console message when starting the emulator :

Hatari v2.1.0, compiled on: Feb 9 2018, 03:57:24
Inserted disk './floppies/Devpac_3.st' to drive A:.
CPU cycleunit: 256 (0.500)
CPU cycleunit: 256 (0.500)
1870 CPU functions
cpu table lvl=0 , mode=4
Building CPU, 44274 opcodes (0 -2 1)
CPU=68000, FPU=0, MMU=0, JIT=0. prefetch and cycle-exact 24-bit
GEMDOS HDD emulation, C: <-> /home/dsporn__files/Documents/AtariTos/drives/c_gamedev_asm.
CPU cycleunit: 256 (0.500)
CPU cycleunit: 256 (0.500)
CPU reset PC=e00034 (ROM memory)..
Your system is too slow, some sound samples were not correctly emulated
Illegal instruction: 42c0 at 00E00340 -> 00E00364
Your system is too slow, some sound samples were not correctly emulated
Your system is too slow, some sound samples were not correctly emulated
Your system is too slow, some sound samples were not correctly emulated
etc...

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1718
Joined: Sun Jul 31, 2011 1:11 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby Eero Tamminen » Sat Feb 17, 2018 7:49 pm

Disk speed or amount of RAM shouldn't matter for Hatari performance (unless your machine is swapping), only CPU speed.

68000 emulation being too slow on higher end machine sounds weird. They should have issues only when emulating higher end Ataris (e.g. Falcon cycle exact 030 cache emulation and DSP).

So, few questions:
* Did you use pre-built Hatari, or did you compile it yourself?
* What exact i7 CPU you have?
* Is it in laptop or desktop (i.e. could it be e.g. temperature limited)?
* Do you have some other processes that take most of the CPU? (e.g. according to "top" output)

As to sound output, too slow system will only make sound "scratchy". Not hearing any sounds is some other problem.

Does sound work with some other program using SDL2; e.g. ScummVm or some game that uses it?

sporniket
Atariator
Atariator
Posts: 17
Joined: Fri Feb 16, 2018 5:39 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby sporniket » Sat Feb 17, 2018 8:20 pm

Here are my answer :

=> I used a pre-built Hatari, a "snap"-ed package (for the record, until I checked the details now, I thought it was a regular deb package because I used the Ubuntu software center gui instead of the command line) :

$ sudo snap info hatari-emulator
name: hatari-emulator
summary: Hatari is an Atari ST/STE/TT/Falcon emulator
publisher: jz
contact: ppa@jzimm.net
description: |
[edited bla bla bla]
snap-id: Dm6NKhHf4chvaVOGFqcfFKIzuomCY9YY
commands:
- hatari-emulator.atari-convert-dir
- hatari-emulator.atari-hd-image
- hatari-emulator.gst2ascii
- hatari-emulator.hatari
- hatari-emulator.hmsa
- hatari-emulator.zip2st
tracking: stable
installed: 2.1.0 (24) 6MB -
refreshed: 2018-02-09 04:57:37 +0100 CET
channels:
stable: 2.1.0 (24) 6MB -
candidate: 2.1.0 (24) 6MB -
beta: ↑
edge: 2.1.0 (24) 6MB -


My CPU :

Intel® Core™ i7-4790 CPU @ 3.60GHz × 8


My computer is a desktop.

The main top processes is hatari at around 10-20%, other processes like X, Compiz and Firefox can take as much from time to time at their turn (not together)

sporniket
Atariator
Atariator
Posts: 17
Joined: Fri Feb 16, 2018 5:39 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby sporniket » Sat Feb 17, 2018 9:13 pm

Since I discovered that I had not installed the deb package from Ubuntu repository, I did that (version 1.8 ), and I've got sound, no message of system too slow.

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1718
Joined: Sun Jul 31, 2011 1:11 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby Eero Tamminen » Sun Feb 18, 2018 10:05 pm

Hatari version v1.8 is much older than v2.1, and that one uses SDL1, whereas I'm pretty sure that your 2.1 version used SDL2.

(Hatari 2.1 works fine for me in Debian both with SDL1 & SDL2.)

From Hatari release notes you can see whether there's anything interesting in v2.1, that you would be missing in v1.8.

sporniket
Atariator
Atariator
Posts: 17
Joined: Fri Feb 16, 2018 5:39 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby sporniket » Sun Feb 18, 2018 10:59 pm

I guess the "snap" thing is not that self-sufficient, anyway the older 1.8 is good enough for now, I'll do with that.

However I tried compiling 2.1 by myself in the hope that it builds without problem, but cmake fails with pthread test at the configuration step (the equivalent of autotools usual 'configure' script).

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1718
Joined: Sun Jul 31, 2011 1:11 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby Eero Tamminen » Mon Feb 19, 2018 7:05 pm

Did you have -dev packages installed for Hatari build dependencies mentioned in readme.txt?

You need development packages at least for zlib and SDL v1 or v2.

sporniket
Atariator
Atariator
Posts: 17
Joined: Fri Feb 16, 2018 5:39 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby sporniket » Mon Feb 19, 2018 8:11 pm

Yesterday I was not in the mood to make the build. I installed all the dev packages and it works fine, I can hear the sound as well.

Thank you.

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1718
Joined: Sun Jul 31, 2011 1:11 pm

Re: hatari v2.1.0 on linux ubuntu 16.04 LTS : no sound

Postby Eero Tamminen » Tue Feb 20, 2018 11:19 pm

Great to hear that! :-)


Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 1 guest