version 1.120, 2024/03/20 08:42:11 |
version 1.121, 2024/05/03 16:48:41 |
|
|
.Xr sndiod 8 . |
.Xr sndiod 8 . |
For instance, the following command will create two devices: |
For instance, the following command will create two devices: |
the default |
the default |
.Va snd/0 |
.Va snd/default |
and a MMC-controlled one |
and a MMC-controlled one |
.Va snd/0.mmc : |
.Va snd/defaul.mmc : |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
$ sndiod -r 48000 -z 480 -s default -t slave -s mmc |
$ sndiod -r 48000 -z 480 -s default -t slave -s mmc |
.Ed |
.Ed |
.Pp |
.Pp |
Programs using |
Programs using |
.Va snd/0 |
.Va snd/default |
behave normally, while programs using |
behave normally, while programs using |
.Va snd/0.mmc |
.Va snd/mmc |
wait for the MMC start signal and start synchronously. |
wait for the MMC start signal and start synchronously. |
Then, the following command will play a file on the |
Then, the following command will play a file on the |
.Va snd/0.mmc |
.Va snd/mmc |
audio device, giving full control to MIDI software or hardware |
audio device, giving full control to MIDI software or hardware |
connected to the |
connected to the |
.Va midithru/0 |
.Va midithru/0 |
MIDI port: |
MIDI port: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
$ aucat -f snd/0.mmc -q midithru/0 -i file.wav |
$ aucat -f snd/mmc -q midithru/0 -i file.wav |
.Ed |
.Ed |
.Pp |
.Pp |
At this stage, |
At this stage, |
|
|
transmit MMC on |
transmit MMC on |
.Va midithru/0 |
.Va midithru/0 |
and |
and |
.Va snd/0.mmc . |
.Va snd/mmc . |
Furthermore, the MIDI sequencer could be configured to use the |
Furthermore, the MIDI sequencer could be configured to use the |
.Va snd/0.mmc |
.Va snd/mmc |
port as MTC clock source, assured to be synchronous to playback of |
port as MTC clock source, assured to be synchronous to playback of |
.Pa file.wav . |
.Pa file.wav . |
.Sh EXAMPLES |
.Sh EXAMPLES |