qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio playback speed issue on sam460ex and pegasos2


From: Volker Rümelin
Subject: Re: Audio playback speed issue on sam460ex and pegasos2
Date: Wed, 29 Mar 2023 21:42:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

Am 29.03.23 um 14:03 schrieb Rene Engel:
After short tests with the command line -audiodev 
coreaudio,id=audio0,out.frequency=48000 the sound output runs in the correct 
speed.

Tested with one and the same mp3 file under AmigaOs4.1 and MacOs with es1370 
and ac97 on Pegasos 2 emulation

This indicates that there is a bug in the Core Audio backend. I wonder how you manage to set a system sample rate of 48kHz when QEMU explicitly requires 44.1kHz. See https://lists.nongnu.org/archive/html/qemu-discuss/2023-03/msg00076.html or GitLab issue #1191 https://gitlab.com/qemu-project/qemu/-/issues/1191.

I can't really help to fix this Core Audio backend issue. I don't have a Mac. Until this bug is fixed, you will have to live with the workaround.

With best regards,
Volker

--- Ursprüngliche Nachricht ---
Von: Volker Rümelin <vr_qemu@t-online.de>
Datum: 28.03.2023 20:26:14
An: Rene Engel <ReneEngel80@emailn.de>
Betreff: Re: Audio playback speed issue on sam460ex and pegasos2

Am 28.03.23 um 16:37 schrieb Rene Engel:
Sorry I was on the wrong branch.
I forget that every time, however that is trace test performed with
ac97 under Pegasos 2 Emulation with AmigaOs4.1, startsound played and an
mp3 with TuneNet.
audio_open_out 0.000 pid=8358 card=b'via-ac97' name=b'via-ac97.out'
freq=0xac44 fmt=b's8' ch=0x1
audio_open_info_out 52921.000 pid=8358 end=b'sw' card=b'via-ac97' 
name=b'via-ac97.out'
freq=0xac44 ch=0x1 bits=0x8 is_signed=0x1 is_float=0x0
audio_open_info_out 0.000 pid=8358 end=b'hw' card=b'via-ac97' 
name=b'via-ac97.out'
freq=0xac44 ch=0x2 bits=0x20 is_signed=0x1 is_float=0x1
audio_open_out 1019.000 pid=8358 card=b'via-ac97' name=b'via-ac97.out'
freq=0xac44 fmt=b's16' ch=0x2
audio_open_info_out 2.000 pid=8358 end=b'sw' card=b'via-ac97' 
name=b'via-ac97.out'
freq=0xac44 ch=0x2 bits=0x10 is_signed=0x1 is_float=0x0
audio_open_info_out 0.000 pid=8358 end=b'hw' card=b'via-ac97' 
name=b'via-ac97.out'
freq=0xac44 ch=0x2 bits=0x20 is_signed=0x1 is_float=0x1
audio_fe_frames_out 130352.000 pid=8358 fe_free=0x800 fe_written=0x372
audio_hw_frames_out 2.000 pid=8358 hw_free=0x800 hw_written=0x372
audio_fe_frames_out 10265.000 pid=8358 fe_free=0x68e fe_written=0x372
audio_hw_frames_out 1.000 pid=8358 hw_free=0x68e hw_written=0x372
audio_fe_frames_out 11159.000 pid=8358 fe_free=0x51c fe_written=0x372
audio_hw_frames_out 1.000 pid=8358 hw_free=0x51c hw_written=0x372
audio_fe_frames_out 10211.000 pid=8358 fe_free=0x3aa fe_written=0x372
audio_hw_frames_out 0.000 pid=8358 hw_free=0x3aa hw_written=0x372
audio_fe_frames_out 10522.000 pid=8358 fe_free=0x238 fe_written=0x238
audio_hw_frames_out 1.000 pid=8358 hw_free=0x238 hw_written=0x238
audio_fe_frames_out 10122.000 pid=8358 fe_free=0x200 fe_written=0x13a
audio_hw_frames_out 0.000 pid=8358 hw_free=0x200 hw_written=0x13a
audio_fe_frames_out 10541.000 pid=8358 fe_free=0x2c6 fe_written=0x2c6
audio_hw_frames_out 0.000 pid=8358 hw_free=0x2c6 hw_written=0x2c6
audio_fe_frames_out 10366.000 pid=8358 fe_free=0x200 fe_written=0xac
audio_hw_frames_out 0.000 pid=8358 hw_free=0x200 hw_written=0xac
audio_fe_frames_out 10582.000 pid=8358 fe_free=0x354 fe_written=0x354
audio_hw_frames_out 1.000 pid=8358 hw_free=0x354 hw_written=0x354
audio_fe_frames_out 10111.000 pid=8358 fe_free=0x200 fe_written=0x1e
audio_hw_frames_out 0.000 pid=8358 hw_free=0x200 hw_written=0x1e
audio_fe_frames_out 10367.000 pid=8358 fe_free=0x3e2 fe_written=0x372
audio_hw_frames_out 1.000 pid=8358 hw_free=0x3e2 hw_written=0x372
audio_fe_frames_out 10129.000 pid=8358 fe_free=0x270 fe_written=0x270
audio_hw_frames_out 1.000 pid=8358 hw_free=0x270 hw_written=0x270
audio_fe_frames_out 10204.000 pid=8358 fe_free=0x200 fe_written=0x102
audio_hw_frames_out 0.000 pid=8358 hw_free=0x200 hw_written=0x102
audio_fe_frames_out 10656.000 pid=8358 fe_free=0x2fe fe_written=0x2fe
audio_hw_frames_out 1.000 pid=8358 hw_free=0x2fe hw_written=0x2fe
audio_fe_frames_out 10363.000 pid=8358 fe_free=0x200 fe_written=0x74
audio_hw_frames_out 1.000 pid=8358 hw_free=0x200 hw_written=0x74
audio_fe_frames_out 10436.000 pid=8358 fe_free=0x38c fe_written=0x372
audio_hw_frames_out 0.000 pid=8358 hw_free=0x38c hw_written=0x372
Hi Rene,

it seems your Mac uses a 48kHz sample rate, although QEMU requested a
44.1kHz sample rate. Could you add -audiodev
coreaudio,id=audio0,out.frequency=48000 to your command line and test if

the playback speed and pitch is now correct?

The default for out.frequency is 44100.

With best regards,
Volker

--- Ursprüngliche Nachricht ---
Von: Volker Rümelin <vr_qemu@t-online.de>
Datum: 27.03.2023 21:12:42
An: Rene Engel <ReneEngel80@emailn.de>
Betreff: Re: Audio playback speed issue on sam460ex and pegasos2

Am 27.03.23 um 16:21 schrieb Rene Engel:
I compiled the build from their git branch and enabled the audio
trace,
but with this option the AmigaOs4.1 workbench does not start anymore
and
stops with a load sign. Tested with ac97 it almost looks like the
ac97 part
that used to stop AmigaOs4.1 is not included in your build.
This is the command line I used:

reneengel@Mac-Studio build % cd /Users/reneengel/qemuVolkerAudioPatch/build
reneengel@Mac-Studio build % qemu-system-ppc -L pc-bios -M pegasos2
-bios /Volumes/BackUP/PegasosQemuDatein/pegasos2.rom -vga none -device
sm501
-drive if=none,id=cd -m 1024 -device ide-cd,drive=cd,bus=ide.1 -drive
if=none,id=hd,file=/Volumes/EXTREME\
SSD/hd1.img,format=raw -device ide-hd,drive=hd,bus=ide.0 -device
rtl8139,netdev=network00
-netdev user,id=network00 -rtc base=localtime -display cocoa -serial
stdio
-smp cores=1 -trace "audio_open*_out" -trace "audio_*_frames_out"
-trace file=/tmp/qemu-trace

Is the current directory included in the macOS search path? On my
Linux
system qemu-system-ppc starts the installed QEMU executable. I have
to
use ./qemu-system-ppc to start the program from the build directory.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]