XRoar and sound

A place to discuss everything Dragon related that doesn't fall into the other categories.
pser1
Posts: 1668
Joined: Sun Mar 25, 2012 7:32 pm
Location: Barcelona (SPAIN)

Re: XRoar and sound

Post by pser1 »

Hi Alastair,
I have been testing the 32 version of the last snapshots uploaded today by Ciaran
and do get the very same results that I get with the 64 bits ones.
My PC has a windows7
regards
pere
Alastair
Posts: 669
Joined: Fri Jul 18, 2008 11:33 pm

Re: XRoar and sound

Post by Alastair »

Pere,
in that case it may be that the latest versions of SDL2 do not work properly with either Windows 7 or 64-bit Windows.

And a quick search has revealed this "IMPORTANT FOR DEVS: SDL2 2.0.6's audio breakage in Windows". Ciaran, is this thread any use?
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: XRoar and sound

Post by sixxie »

Alastair wrote: And a quick search has revealed this "IMPORTANT FOR DEVS: SDL2 2.0.6's audio breakage in Windows". Ciaran, is this thread any use?
Seems to completely explain the issue.

I've reverted my local copy of SDL2 to 2.0.5, built & pushed a new snapshot to at least get back to "mostly works"!
pser1
Posts: 1668
Joined: Sun Mar 25, 2012 7:32 pm
Location: Barcelona (SPAIN)

Re: XRoar and sound

Post by pser1 »

Hi Ciaran,
that's right, it works as it did on snapshot 41907 ...
And these means that it makes NO noise when minimizing/maximizing or moving the XRoar window
until you issue a Command like
- PLAY 150,3 after issuing this one one or more times, any window movement produces a noise at low volume but noticiable.
- PLAY"CDEFG" or simply PLAY"C", after that one the noise produced by window movement is very, very high!
Even Ctrl+1 to load a virtual disk generates that noise
The same happens if you click on any option on XRoar menu bar.
cheers
pere
User avatar
Bosco
Posts: 334
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

Re: XRoar and sound

Post by Bosco »

Bit late to the party and this may be something totally unrelated but here's how XRoar sounds on my Windows PC. I should add it alternates between crackly and clean if I click the XRoar window.

https://www.dropbox.com/s/l8yj02gzh5orf ... o.mp3?dl=0

I'm running XRoar 0.34.8-w64 under Windows 10.
pser1
Posts: 1668
Joined: Sun Mar 25, 2012 7:32 pm
Location: Barcelona (SPAIN)

Re: XRoar and sound

Post by pser1 »

Hi Ciaran,
I was trying to use the parameter:
-a0-format help to know what parameters could be used, but when I issue this command
on a DOS (black) window , I get nothing ...
A0_Format.jpg
A0_Format.jpg (40.44 KiB) Viewed 4394 times
I am shure I am forgetting something but cannot remember what should I do to see the output of that command
Any hint would be very welcome
cheers
pere
sorchard
Posts: 531
Joined: Sat Jun 07, 2014 9:43 pm
Location: Norwich UK

Re: XRoar and sound

Post by sorchard »

Hi Pere,

The command is:

Code: Select all

xroar -ao-format help
(Letter 'o' instead of digit '0')

@Bosco

I have these settings in xroar.conf:

Code: Select all

ao-buffer-ms 20
ao-fragment-ms 20
Still not perfect so it's worth trying slightly different settings.

Under Windows I found that the audio was better with PAL emulation compared to NTSC. (NTSC would break up and disappear like your recording)

Latency seems to be a real problem with Debian on my laptop. I've so far failed to get a decent recording with Audacity as the crackling gets worse when I hit record. To satisfy my curiosity I added fopen/fwrite to the xroar source to dump out the samples as they're generated. That gives a perfect recording. In fact it may become my preferred recording method :)
Stew
pser1
Posts: 1668
Joined: Sun Mar 25, 2012 7:32 pm
Location: Barcelona (SPAIN)

Re: XRoar and sound

Post by pser1 »

Hi Stew,
I changed the 0 using a leter o, but same result ...
cheers
pere
O_instead_of_0.jpg
O_instead_of_0.jpg (44.57 KiB) Viewed 4389 times
Alastair
Posts: 669
Joined: Fri Jul 18, 2008 11:33 pm

Re: XRoar and sound

Post by Alastair »

Pere,

xroar -ao-format help >> aoformathelp.txt
(or any file name you want)

will create a text file containing the output.
pser1
Posts: 1668
Joined: Sun Mar 25, 2012 7:32 pm
Location: Barcelona (SPAIN)

Re: XRoar and sound

Post by pser1 »

Hello Ciaran,
reading the manual, I found this:
------------------------------------------------------------------------------------------------------------------
Note when troubleshooting that the Windows packages are built using MinGW2 (Minimalist
GNU for Windows), and instead of printing to the console, useful information will end up in
files called stdout.txt or stderr.txt.
------------------------------------------------------------------------------------------------------------------
I seem to remember that at some point you told me that these two files are no more used
in the windows version, so the output to the console is not output anywhere
Is there anyway to access the output info?

cheers
pere
Post Reply