Program Flow

The following figure illustrates how the DUET1 sample program interfaces with the Media Device Manager (MDM) to handle the concept of grouping. Source code for DUET1 is located in the \TOOLKIT\SAMPLES\MM\DUET1 subdirectory.

                              ┌───────────────┐
                              │    DUET1      │
                              │    Sample     │
                              │    Program    │
                              └───┬───────┬───┘
                               ┌──┘  (1)  └─┐
                                           
                ┌────────────────┐          ┌────────────────┐
                │   Waveform     │          │   Waveform     │
                │     Audio      │          │     Audio      │
                │Device Context 1│   (2)    │Device Context 2│
                └────────────┬───┘          └──┬─────────────┘
                             └─┐             ┌─┘
                                            
                              ┌───────────────┐
                              │ Media Device  │
                              │    Manager    │
                              │               │
                              └───────┬───────┘
                                      │
┌────┐                                
│WAVE│                        ┌───────────────┐
│File│┐                      │   Waveform    │
└────┘ │  ┌─┐                 │ Audio Media   │
       └─│M│                 │    Driver     │
          │M│                 └───────┬───────┘
       ┌─│I│                    (3)  │
       │  │O│                         
┌────┐ │  └─┘                 ┌───────────────┐
│WAVE│┘                     │  Sync/Stream  │
│File│     │                  │    Manager    │
└────┘     │                  │               │
           │                  └───────────────┘
           │                               
           │       ┌────────────┘           └────────────┐
           │                                            
     ┌─────┴────────┐                (4)           ┌──────────────┐
     │  File System │            ┌─┬─┬─┬─┬─┐       │     Audio    │
     │Stream Handler├────────────┤ │ │ │ │ ├───────┤Stream Handler│
     └──────────────┘            └─┴─┴─┴─┴─┘       └──────┬───────┘
                                                            (5)
                                                   ┌──────────────┐
                                                   │   Audio DD   │
                                                   │              │
                                                   └──────┬───────┘
                                                          
                                                   ┌──────────────┐
                                                   │   Audio HW   │
                                                   │              │
                                                   └────────┐    ┌┘
                                                            └────┘