Creative SB0350 Hardware Programming Guide - Page 99

Creative SB0350 Manual

Page 99 highlights

6-14 DSP Commands 38h Output Remarks 38h MIDI output Output MIDI data to the MIDI port in non-UART mode. The proper sequence is: 1. 2. Send command 38h. Send MIDI data. See Also Available command 30h, Polling mode MIDI input 1.xx 9 2.00 9 2.01+ 9 3.xx 9 4.xx 9 40h Output Remarks Set digitized sound transfer Time Constant 40h, bTimeConstant Set the digitized sound I/O transfer Time Constant. Time Constant is the sampling rate representation used by the DSP. It is calculated as: Time Constant = 65536 - (256 000 000/(channels * sampling rate)) The channels parameter is 1 for mono, 2 for stereo. Only the high byte of the result is sent to the DSP. See Also command 41h, Set digitized sound output sampling rate command 42h, Set digitized sound input sampling rate 1.xx 9 2.00 9 2.01+ 9 3.xx 9 4.xx 9 Available

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141

6-14
DSP Commands
38h
MIDI output
Output
38h
Remarks
Output MIDI data to the MIDI port in non-UART mode.
The proper sequence is:
1.
Send command 38h.
2.
Send MIDI data.
See Also
command
30h
, Polling mode MIDI input
Available
1.xx
2.00
2.01+
3.xx
4.xx
9
9
9
9
9
40h
Set digitized sound transfer Time Constant
Output
40h, bTimeConstant
Remarks
Set the digitized sound I/O transfer Time Constant.
Time Constant is the sampling rate representation used by the DSP.
It is calculated
as:
Time Constant = 65536 - (256 000 000/(
channels
*
sampling rate
))
The
channels
parameter is 1 for mono, 2 for stereo.
Only the high byte of the result is sent to the DSP.
See Also
command
41h
, Set digitized sound output sampling rate
command
42h
, Set digitized sound input sampling rate
Available
1.xx
2.00
2.01+
3.xx
4.xx
9
9
9
9
9