Audio In/Out ports on the X68000

Started by TheRogue, December 24, 2009, 06:37:37 PM

Previous topic - Next topic


I'm interested in how exactly these function,  as I can't just connect my midi synth to Audio In and my speakers to Audio Out. I have to connect the headphone jack to Audio In on my synth, and my speakers to audio out, and I would prefer to do it the other way. I don't speak Japanese so if someone would like the relevant sections scanned from the X68k XVI manuals, I can do that. Thanks guys!
Go up to your brother, kill him with your gun. Leave him lying in his uniform dying in the sun. War, it's never been so much fun.

Magic Knight

I've checked the manual. The Audio In input takes an analogue signal and digitizes it, it's not supposed to be connected to a MIDI synth.

I'm not sure what you're trying to do. From the MIDI synth I connect to an amplifier, it's also possible to connect to computer speakers. There's no way of getting the MIDI sound through the X68000 as far as I know. 


It should also be noted the audio inputs on the X68 are mono.


Examples to use the audio in/out ports


   10 int f
   20 dim char a(65535)
   30 print "Hit any key to start recording"
   40 asc(inkey$)
   50 a_rec(a,4,65535)
   60 f=fopen("a.pcm","c")
   70 fwrite(a,65535,f)
   80 fclose(f)

Hit any key to start recording

   10 int f,l
   20 dim char a(65535)
   30 f=fopen("a.pcm","r")
   40 l=fread(a,65535,f)
   50 fclose(f)
   60 print "Hit any key to start playing"
   70 asc(inkey$)
   80 a_play(a,4,3,l)

Hit any key to start playing


Unfortunately, OPMDRV3.X of Human68k version 3.02 which have been released on
the internet does not work properly in the ordinary method. So you may need the
bundled Human68k to run the above program.


Ok interesting. I was hoping that it could be used as a pass-through so I could have the X68k sound mixed with the MIDI synth and played back through one set of speakers. That's what I'm doing now, but by using the headphone jack on the front of my X68k and the audio in on my SC-88.
Go up to your brother, kill him with your gun. Leave him lying in his uniform dying in the sun. War, it's never been so much fun.


Holy crap the X68000 can actually record audio? Most other systems of the time needed a digitizer connected to the parallel or serial port for that.

I always thought that the audio in port was just a pass-through.


Yeah, I was under the same impression papa_november was. I was hoping I could pass the midi synth output through the audio in port and plug my speakers into audio out, so then I could use the headphone jack on the front of the XVI and hear both the ADPCM and the MIDI over my headphones if I wanted to be quieter. I can do all that now through the passthrough on my SC-88, it's just the headphone jack on my synth needs to be re-soldered, so I have to wiggle the connector to get sound from my headphones. I'm going to re-solder it one day soon, just haven't got around to it yet.
Go up to your brother, kill him with your gun. Leave him lying in his uniform dying in the sun. War, it's never been so much fun.


The audio input port of X68000 is connected to the analog input pin of MSM6258,
OKI's VOICE IC. MSM6258's AD converter makes 4-bit ADPCM data from analog signal.
MSM6258's DA converter makes analog signal from 4-bit ADPCM data. ADPCM data to
be converted is provided by either DMAC or its AD converter. The former is the
playback-mode and the latter is the recording-mode. MSM6258 can not mix both
ADPCM data.

It is possible in theory to mix ADPCM data provided by PCM files and MSM6258's
AD converter in realtime. However, I don't recommend this method unless you are
a hard-core programming fan. Because, you will have to output the results by
using YM2151 (OPM) and a special software. In addition, music that has passed
through MSM6258 is low-quality, because it has been converted to digital data
with low sampling frequency once and converted to analog signal again.