
3 Jun
2013
3 Jun
'13
1:18 p.m.
o-takashi@sakamocchi.jp wrote:
- [MIDI stream side]
- 1.When no stream in both direction is started, start stream with 48000
- 2.When stream in opposite direction is started, start stream with the same
- sampling rate.
- 3.When stream in the same direction has PCM stream and request to stop MIDI
- stream, don't stop stream itself.
- [PCM stream side]
- 1.When stream in the both direction is started and has no PCM stream, stop
- the stream because it include just MIDI stream. Then restart it with
- requested sampling rate by PCM component.
- 2.When MIDI stream is going to be closed but PCM stream is still running,
- the stream is kept to be running.
- */
These rules will become even more complex when handling playback/capture stream synchronization.
I think it would be a better idea to add some reference counting scheme for determining when an AMDTP stream needs to be running.
Regards, Clemens