Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#4793 - 03/03/2000 05:51 Audio Output Problem
Jazzwire
addict

Registered: 09/06/1999
Posts: 483
Loc: Guernsey
Following on from another thread about Mods, I found libmikmod-3.1.9 which is a mod playing library.
It cross compiled like a charm, and the raw output to file is the correct format for a simple "dd if=music.raw of=/dev/audio bs=4608"
However, if I try to use the oss output (The empeg's audio is oss compatible, right?) it crashes with a not enough memory error...
No problems thought I, why not rejig the raw output to play via /dev/audio.
I set the buffer size to 4608, and fired it up.
The output sounded great, for about 3 seconds, then it went all scratchy (like putting the wrong buffer size in the dd command shown above).
So I grafted the code from the developer site into the raw output module, and I get the exact same result.
My C coding is not very advanced, and I know very little about programming on Linux, so I've hit a bit of a wall here...
I'm not sure if the problem is with the output code, or the processor running out of beans, or something like that.
Anyone else want to have a go?

Jazz
(List 112, S/N 00030, 4 gig blue)
_________________________
Jazz (List 112, Mk2 42 gig #40. Mk1 4 gig #30. Mk3 1.6 16v)

Top
#4794 - 03/03/2000 07:55 Re: Audio Output Problem [Re: Jazzwire]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
If the code is using floating point this may be a problem.

To re-block the sound to the empeg's audio buffer size, you can do this:

decoder-with-options-to-send-sound-to-standard-output | dd of=/dev/audio obs=4608

Hugo



Top
#4795 - 03/03/2000 08:51 Re: Audio Output Problem [Re: altman]
Jazzwire
addict

Registered: 09/06/1999
Posts: 483
Loc: Guernsey
I've tried the stdout to dd method, and I'm getting the same result, so it looks like some optimisation will be required... =)
Thanks

Jazz
(List 112, S/N 00030, 4 gig blue)
_________________________
Jazz (List 112, Mk2 42 gig #40. Mk1 4 gig #30. Mk3 1.6 16v)

Top