Login  •  Register


The time is now: Mon Dec 18, 2017 8:37 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 64 of 77 [ 1910 posts ]    Go to page Previous  1 ... 61, 62, 63, 64, 65, 66, 67 ... 77  Next
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sat Feb 04, 2017 7:46 pm 
Offline
Apple Corer

Joined: Sun Jan 31, 2016 6:01 pm
Posts: 225
I tried working on the screamer sound card by changing the size of its buffer. The result was not very good. Too big of a buffer makes the audio not play. A smaller buffer doesn't help things either.

I'm wondering if the problem is my computer's processor. It is a 6 year old Core 2 Duo. Maybe we need faster processors.

Is there anyone who has tried the screamer sound card and has really good sound output? Please let us know what your host processor is.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 04, 2017 8:56 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4206
Location: Sittard, The Netherlands
As said when I first provided the screamer builds based on Marks source: only 9.2 has some reasonable stable sound output. Even that worked better when starting e.g., mp3 play a second time.
All others crackle and pause. We tested various settings for buffers etc during development, but nothing made real differences.

My processor is a 3.5 Ghz I7.

Best,
Cat_7


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 04, 2017 9:18 pm 
Offline
Apple Corer

Joined: Sun Jan 31, 2016 6:01 pm
Posts: 225
Cat_7 wrote:
As said when I first provided the screamer builds based on Marks source: only 9.2 has some reasonable stable sound output. Even that worked better when starting e.g., mp3 play a second time.
All others crackle and pause. We tested various settings for buffers etc during development, but nothing made real differences.

My processor is a 3.5 Ghz I7.

Best,
Cat_7


Your using a much faster processor than mine and you still have playback issues. This could mean that host processor speed is not the main issue. I think investigating the screamer driver for Mac OS X is what I should do next. There probably is missing functionality in the sound card that needs to be added. Anyone else have any theories?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 04, 2017 9:28 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4206
Location: Sittard, The Netherlands
I don't know in what loop the audio runs, but I guess it doesn't get enough time. There is some talk on the development list about supporting sdl2 audio playback as you probably have seen. Perhaps that is a route.
Or threading. It seems there are some issues with SDL and threading.

Best,
Cat_7


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 2:47 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
To be optimistic,I would say that screamer sound is better than usb and it works in MOS 9 which we didn't have at all (in fact) with usb-audio.So thanks very much to mcayland for his work.
In fact,where the sound is really needed in emulatad systems is gaming.I think the most our users care about are games for Mac OS 9.At present just in OS 9 sound works best.
And generally,code improvement is a work-forever.At present floating-point emulation in qemu is slow and qemu as a whole is much slower than PearPC and SheepShaver.The disrupting sound may be due just to this.
How to make qemu faster?One way is a JIT compiler that PeaPC and SheepShaver both have. Writing a jitc for qemu is a task for a well-skilled programmer.Porting jitc from SS or PPC is (maybe?) easier.
A second way I think is parallelization.AFAIK, at present qemu uses only 1 processor core for all tasks.Using autovectoristion and GCD (available in Xcode),maybe OpenMP and OpenACC pragmas and directives(available in PGI compilers and,partly,in latest GCC) could optimize using hardware.Using these pragmas seems relatively easy but knowing WHERE they can be used is not trivial.
But anyway, all these tasks are too theoretical (for me).With my skills I cannot do much right now.Only thinking and learning :smile: .


Last edited by alex195812 on Sun Feb 05, 2017 2:54 am, edited 1 time in total.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 2:51 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
Having troubles with DP4, (Post above) please help!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 2:56 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
Your command line seems right.What exactly happens? You type boot hd:9,\\:tbxi?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 2:57 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
Yes


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 2:58 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
What happens next?
Oh I noticed that your command line includes -boot d.It shouldn't be there.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:03 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
get rid of it? and replace it with what?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:06 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
Just take it away and try again.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:07 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
ok


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:14 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
closed out on me again. Same screen


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:16 am 
Offline
Apple Corer

Joined: Sun Jan 31, 2016 6:01 pm
Posts: 225
Meow_2004 wrote:
get rid of it? and replace it with what?


Lets try simplifying the command-line. Could you try this instead:

qemu-system-ppc.exe -bios openbios-ppc -boot d -m 256 -M mac99 -prom-env "boot-args=-v" -g 800x600x32 -cpu G3 -cdrom MacOSX_developer_preview_4.iso -hda DP4.raw

I'm using "-boot d" because I think you want to boot from the iso file. If that isn't the case, replace it with "-boot c".


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:20 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
can't find nvram, frozen at that screen at openbios


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:26 am 
Offline
Apple Corer

Joined: Sun Jan 31, 2016 6:01 pm
Posts: 225
alex195812 wrote:
To be optimistic,I would say that screamer sound is better than usb and it works in MOS 9 which we didn't have at all (in fact) with usb-audio.So thanks very much to mcayland for his work.
In fact,where the sound is really needed in emulatad systems is gaming.I think the most our users care about are games for Mac OS 9.At present just in OS 9 sound works best.
And generally,code improvement is a work-forever.At present floating-point emulation in qemu is slow and qemu as a whole is much slower than PearPC and SheepShaver.The disrupting sound may be due just to this.
How to make qemu faster?One way is a JIT compiler that PeaPC and SheepShaver both have. Writing a jitc for qemu is a task for a well-skilled programmer.Porting jitc from SS or PPC is (maybe?) easier.
A second way I think is parallelization.AFAIK, at present qemu uses only 1 processor core for all tasks.Using autovectoristion and GCD (available in Xcode),maybe OpenMP and OpenACC pragmas and directives(available in PGI compilers and,partly,in latest GCC) could optimize using hardware.Using these pragmas seems relatively easy but knowing WHERE they can be used is not trivial.
But anyway, all these tasks are too theoretical (for me).With my skills I cannot do much right now.Only thinking and learning :smile: .


We are all thankful for the work Mark did with Screamer.

I did try changing the floating point code so that it used the host CPU to speed things up. This did not work. Just changing the optimization level of GCC was enough to break the floating point code. The floating point unit in QEMU is slow, but I think it might be fast enough handle sound playback.

There is someone who is currently working on making a multithreaded Tiny Code Generator. This will hopefully make QEMU run faster by using more processors available on the host.

You might like this video. It talks about PowerPC emulation and Tiny Code Generator: https://www.youtube.com/watch?v=lOOcCiGzpOY


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:28 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
For 10.1, i type boot, and it freezes on trying to find cd,\\:tbxi


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:30 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
For DP4 don't use -boot d,t's a special case.What happens when you do like I told you?
The command line for 10.1?


Last edited by alex195812 on Sun Feb 05, 2017 3:32 am, edited 1 time in total.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:32 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
closes down at the same spot


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:33 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
What spot?Could you post a screenshot?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:37 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
Command line for 10.1:
Code:
qemu-system-ppc.exe -bios openbios-ppc -L pc-bios -boot d -m 512 -M mac99 -prom-env "auto-boot?=false" -prom-env "boot-args=-v" -cpu G4 -drive file=10.1,format=raw,media=cdrom -drive file=10-1.raw,format=raw,media=disk


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:44 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
Image
Closes out here


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:47 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
It should work."Cannot find nvram partition" is not a fatal error,it's OK.How long do you wait after it?I sometimes have to wait up to 5 min.And note that qemu in Windows is slower than in MacOS.
The screenshot is DP4?Looks OK.I think you should simply wait some more.


Last edited by alex195812 on Sun Feb 05, 2017 3:48 am, edited 1 time in total.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:47 am 
Offline
Granny Smith
User avatar

Joined: Thu Jan 05, 2017 6:24 pm
Posts: 108
Switched commands, and got up to this:


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 3:50 am 
Offline
Mac Mechanic

Joined: Mon Aug 29, 2016 3:44 am
Posts: 161
To what?Nothing is seen.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 64 of 77 [ 1910 posts ]    Go to page Previous  1 ... 61, 62, 63, 64, 65, 66, 67 ... 77  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group