Is there a USF player I can compile for linux? by RukarioGyiyg996 at 4:58 AM EDT on June 4, 2015
And can it just run in a terminal and play forever until I ^C the program?
by RukarioGyiyg996 at 12:48 PM EDT on June 15, 2015
bump
by kode54 at 4:10 PM EDT on June 17, 2015
There's a USF library you can compile, but you'll have to coerce it into talking to OSS (easier than ALSA) yourself. Probably looking at a 100-200 line program, plus my lazyusf2 and psflib libraries.

Don't forget to use the Makefile, with an edit or so, to enable the dynamic recompiler for your platform. Supports x86 and x86_64. Otherwise you're stuck with interpreter and cached interpreter.

Check out the source to the Cog player on BitBucket to see how you can arrange stdio to callbacks for psflib, and the necessary loader functions to get the psf data into the emulator state, and how to allocate, render, and clean up.

You can even use the resampled mode so you don't have to rely on the OS supporting any given odd rate.
by RukarioGyiyg996 at 9:46 AM EDT on June 18, 2015
I'll check it out, thanks. Though the OSS part troubles me because I'm on a system using ALSA and Pulseaudio. (that I never bothered to purge)

Would it really be that much of a headache coercing the library to talk to Pulseaudio or just plain ALSA in general? I've never built anything audio from scratch before so I wouldn't really know but I'm willing to learn.
by kode54 at 7:56 PM EDT on June 19, 2015
The library can talk to whichever audio API you wish to program for. I only mentioned OSS because it's one of the easiest.

It doesn't talk to the audio API for you, you must load the files into the emulator, and request blocks of samples from it manually. What you do with those samples is entirely up to you.
by RukarioGyiyg996 at 9:36 AM EDT on June 20, 2015
Oh I get it now, yeah I can figure this out better, thanks.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source