~ubuntu-branches/ubuntu/wily/libffado/wily-proposed

« back to all changes in this revision

Viewing changes to src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.h

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Knoth
  • Date: 2011-05-31 17:27:58 UTC
  • mfrom: (8.3.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110531172758-s0bhfz5ufsahm422
Tags: 2.0.99+svn1985-1
Imported Upstream version 2.0.99+svn1985 (Closes: #601659)

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    virtual unsigned int getNominalFramesPerPacket() 
74
74
                    {return getSytInterval();};
75
75
 
 
76
 
76
77
protected:
77
78
    bool processReadBlock(char *data, unsigned int nevents, unsigned int offset);
78
79
 
111
112
    std::vector<struct _MIDI_port_cache> m_midi_ports;
112
113
    unsigned int m_nb_midi_ports;
113
114
 
 
115
    /* A small MIDI buffer to cover for the case where we need to span a
 
116
     * period - that is, if more than one MIDI byte is sent per packet. 
 
117
     * Since the long-term average data rate must be close to the MIDI spec
 
118
     * (as it's coming from a physical MIDI port_ this buffer doesn't have
 
119
     * to be particularly large.  The size is a power of 2 for optimisation
 
120
     * reasons.
 
121
     *
 
122
     * FIXME: it is yet to be determined whether this is required for RME
 
123
     * devices.
 
124
     *
 
125
     * FIXME: copied from RmeReceiveStreamProcessor.h. Needs refactoring
 
126
     */
 
127
#define RX_MIDIBUFFER_SIZE_EXP 6
 
128
#define RX_MIDIBUFFER_SIZE     (1<<RX_MIDIBUFFER_SIZE_EXP)
 
129
 
 
130
    unsigned int midibuffer[RX_MIDIBUFFER_SIZE];
 
131
    unsigned mb_head, mb_tail;
 
132
 
114
133
    bool initPortCache();
115
134
    void updatePortCache();
116
135
};