24 December 2007, 17:26 | #21 | |||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
Sure, but your desktop surely isn't in one of those modes, is it ?
Quote:
Quote:
Ah, and, yes, did I say it needed to be set up in mono, not stereo ? Quote:
I'll do it if you can tell me how to output 15 bit (in a hardware point of view). Sure ! |
|||
25 December 2007, 18:36 | #22 | |
FPGAmiga rulez!
Join Date: Dec 2007
Location: South of France
Age: 50
Posts: 155
|
Quote:
I have the MPEG audio and video specification in PDF. If you need them, tell me how I can send that to you. [EDIT] I just found the CD, it is actually in Word format, I have MPEG 1 and 2 (and maybe 4). If you need them as PDF, I can convert them. I have also the test bitstreams for layers 1,2,3. Regards, Frederic Last edited by FrenchShark; 25 December 2007 at 18:49. |
|
25 December 2007, 18:50 | #23 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
I suppose you can just post again and attach the pdf to the post, unless it's very large then you can upload it to the zone. I know he'll appreciate it if has the info he needs, and others may, too, and I know I would. If you do put it in the zone, I'd wait a couple of days (meynaf is probably not going to be online here for a few days), as files only stay in the zone for a week, so I'd suggest you try attaching it first. Merry Christmas |
|
25 December 2007, 21:06 | #24 | |
FPGAmiga rulez!
Join Date: Dec 2007
Location: South of France
Age: 50
Posts: 155
|
Quote:
here is the MPEG2 Audio spec (568 KB) PS: Meynaf is working on a JPEG decoder too. Does he need the JFIF spec as well ? Regards, |
|
26 December 2007, 18:04 | #25 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
Unfortunately, I already had the Fraunhofer mpeg spec. If you have an attentive look at it, you'll see that explanations for the most complex things are... code (when, of course, it's not a whole bunch of mathematics). But thanks anyway.
Do I need the jpeg spec ? I don't know. I'm not going to rewrite things from scratch, the IJG code has all the structure and infos I need, and I'll simply do in asm what they do in c. But post it anyway (in the appropriate thread), it's always interesting. I'll be online tomorrow, and once a week (if I can) until mid-january. But do as if I was here and post everything you find. Just because I'm not here doesn't mean things can't advance And, yes, happy (whatever you want) ! (don't drink too much ) |
29 December 2007, 02:07 | #26 | |||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
Quote:
The problem is, of course, that it will rely on a ton of interrupts or on the copper, which requires a 16 color image or less to be useful. I thought it would be interesting to mention, as I haven't actually seen this in action, and I wanted your opinion on this. But since it's rather limited/slow, it probably won't benefit anyone, unless you kill the os. |
|||||
04 January 2008, 11:14 | #27 | ||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
I don't know if I will be able to produce good audio quality, but the goal here is rather to produce audio that is *as good as possible*. On some files, mpega already produces a good quality.
Of course I can work on my viewer, but I don't want to drop my audio project. Sometimes I can become quite stubborn I agree there is a whole plethora of options that could be included in it. But do I want them ? Wouldn't it then become a bloatware filled with a bunch of useless options ? Quote:
Quote:
One is playing at maximum volume (64), and does the 8 leftmost bits. The other is playing at minimum volume (1) and is playing the remaining 6. Furthermore, the D/A converters aren't exactly linear, and even vary from a Miggy to another, so some sort of calibration can achieve a further gain on quality. The 14-bit calibration system is given in the Play16 archive, available on Aminet. Anyway, I don't think that, if we could play 15 bits or even 16, we would hear any difference. Try a 22 khz wave on a PC (16-bit) then on your Miga (with calibrated 14bit output) - with good loudspeakers, the same on both sides if possible - and tell me who's the best ! (take care : last time I did that, the pc has lost...) Last edited by meynaf; 14 January 2008 at 11:13. |
||
04 January 2008, 18:19 | #28 | |||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||
14 January 2008, 15:31 | #29 | ||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
What I want is to be able to play those (very) common MP3 files with the best possible quality. Here gaining speed is also gaining quality !
Quote:
To get my answer, please go on the jpeg topic. Quote:
Btw I wonder how difficult it could be to make a clone of AGA chips with an FPGA... Errrh... off-topic again... Quote:
The calibration will be a real pain... But if you try that, you'll never be able to keep the volume and the data in sync. Then you'll add noise. Then you'll lose all the (potential) benefit. And you really can't do 14 bit output with just one channel : it is true that you can write dff0a8/dff0aa in one go, but you'll get two data values for one volume, and have ~0.3 microseconds at best between them because they really won't be written simultaneously. Of course you can write two identical data... but this won't solve the delay. Things become worse, of course, when you use 2 channels or more... If you plan on killing the OS, then just try to perform true 44.1 khz replay, it might be much better in quality than just adding one bit (well, ok, you can try both at once). I'm not sure it's even possible because of channel sync again. But it will become useless if you play e.g. a wave file, as those usually don't fit into memory : you need some i/o and this requires the OS nowadays. And if you target an MP3, you'll end up using so much cpu for your replay that there will be not much (and surely not enough) left to decode the file... Quote:
More bits are useful, but even if you use true 16 bits, you still have the parasites made by the other circuitry, mostly the cpu. You'll then end up with 14 bit output, if not 12. You'd better do so. I've played some files on my second A1200 (yes I have two) and noticed a lot of jitter, until I did the calibration, which ended up pretty different from the one I did long ago for my main machine. The Amiga DACs must have some sort of personality |
||||
16 January 2008, 07:30 | #30 | |||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
Quote:
Anyway, have you made any progress on the huffman decoding thing? I haven't looked at it for a while, but when I did, I really didn't find anything usefull, so I hope you have. |
|||||
16 January 2008, 11:18 | #31 | |||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
Quote:
I dream of 8 or more dma channels, with 8/16 bit output, 256 levels of volume, higher base clock and 32-bit period values, no 28 khz limitation, no timing problems when stopping/restarting channels... (/me sighs) Quote:
The normal 14bit routine syncs the channels by using the dma and that seems the only right way to do so. Maybe starting them with the dma and taking over with the cpu might help. Quote:
Quote:
I don't know a lot on the effect on a calibration file vs nothing, but a calibration file for another machine sure did a lot of difference for me ! Quote:
But I now have the architecture for a player, that is, a central part which is pretty much like what I did for my viewer. There is even some common code (file reading, buffer handling) |
|||||
16 January 2008, 16:59 | #32 | ||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
16 January 2008, 17:54 | #33 | ||||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
Quote:
Quote:
Then again, I don't see the point in playing 44.1 like this : with 16Mb you can have one minute and a half of music, or so. Quote:
Quote:
Quote:
If you're using ahi, then I suggest you lower the "boost" value, else you'll hear a lot of noise (as it doesn't saturate correctly). Quote:
|
||||||
17 January 2008, 10:08 | #34 | |||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
Quote:
By the way, the audio channels can modulate each others volume. Does that mean you can effectively set a channels volume using eight bits? Pobably not, or it would have been used. Just asking. |
|||||
17 January 2008, 11:39 | #35 | |||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
Quote:
Quote:
To avoid screen scrolling you can set the exclusive flag, like I do for my viewer when it's needed for vertical screen centering (have you noticed that most, if not all, viewers don't center the image vertically ?). Screen switching would then either be impossible (I don't know how to do that), or stop the replay. Quote:
Quote:
Quote:
And there would be no reason to use the full 8 bits here where dff0a8 can accept 16 bits and is limited to 6. What I know here is that values above 64 don't make a difference from 64, but I didn't test the upper bits (they're more than likely ignored). |
|||||
18 January 2008, 09:08 | #36 | |||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||
18 January 2008, 11:08 | #37 | ||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
Quote:
But there can be problems with long/short frames, I'm not sure but it's probably the reason why we're limited to 28, not 31 (horizontal freq in pal is 15.5 khz). Quote:
- if it's too busy (i.e. higher priority interrupts interfere) it can miss the deadline, - if the copper uses all chipmem cycles there will be nothing left for the cpu, - and some lower priority interrupts won't like it. I think it would be better to let the copper do its stuff, its bandwidth is more than enough for that. It wouldn't require more than interleaving the audio with the rest of the copper list, and maybe raise the inter-screen gap a little. Just a guess. Quote:
Quote:
|
||||
18 January 2008, 16:06 | #38 | ||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
|
||||
18 January 2008, 16:59 | #39 | ||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,350
|
Quote:
Quote:
Quote:
Quote:
32-bit accesses... wow... but they didn't ! |
||||
22 January 2008, 15:35 | #40 | ||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,807
|
Quote:
Quote:
Quote:
Quote:
|
||||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can it be faster? | oRBIT | Coders. General | 2 | 16 May 2011 20:38 |
Chipram 3x faster? | oRBIT | Coders. General | 10 | 20 July 2010 02:13 |
mpega.library (WarpUP) problem | radzik | support.Apps | 23 | 14 December 2009 17:05 |
Making a shared library from a gcc .a library | JoJo | Coders. General | 1 | 10 March 2003 19:06 |
Faster Emu | Radgam | support.WinUAE | 3 | 27 February 2003 17:16 |
|
|