[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux1394-devel
Subject:    Re: [PATCH 5/8] add MIDI interface
From:       Clemens Ladisch <clemens () ladisch ! de>
Date:       2013-06-03 11:18:37
Message-ID: 51AC7B8D.5070806 () ladisch ! de
[Download RAW message or body]

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

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
mailing list linux1394-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic