Emery Hemingway
5e8bc9ef51
Define a unified packet-buffer format for both Audio_out and Audio_in sessions. This allows an Audio_out and an Audio_in client to exchange packets with a common buffer and lexicon. The sessions have also been stripped down to a minimum. The 'progress' and 'data_avail' signal handlers have been replaced with a single 'progress' signal sent by Audio_in and received by Audio_in. The Audio_in session has a reset signal delivered to the client to indicate that the progress signal handler has been replaced (dubious). These changes reflect a different relationship between the two sessions. Drivers that play audio are now Audio_in clients and drive the rate that packets can be consumed by sending progress signals. Ref #2858
48 lines
1006 B
Plaintext
Executable File
48 lines
1006 B
Plaintext
Executable File
<runtime ram="24M" caps="256" binary="init">
|
|
|
|
<requires> <platform/> <rm/> <timer/> </requires>
|
|
|
|
<provides>
|
|
<audio_out/>
|
|
<audio_in/>
|
|
</provides>
|
|
|
|
<config/>
|
|
|
|
<content>
|
|
<rom label="audio_drv"/>
|
|
<rom label="stereo_patch"/>
|
|
</content>
|
|
|
|
<config>
|
|
<parent-provides>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="Platform"/>
|
|
<service name="Report"/>
|
|
<service name="Timer"/>
|
|
</parent-provides>
|
|
<start name="stereo_patch" caps="96">
|
|
<resource name="RAM" quantum="8M"/>
|
|
<provides>
|
|
<service name="Audio_in"/>
|
|
<service name="Audio_out"/>
|
|
</provides>
|
|
<route>
|
|
<any-service> <parent/> </any-service>
|
|
</route>
|
|
</start>
|
|
<start name="audio_drv" caps="128">
|
|
<binary name="audio_drv"/>
|
|
<resource name="RAM" quantum="16M"/>
|
|
<config playback="yes"/>
|
|
</start>
|
|
<default-route>
|
|
<any-service> <parent/> <child name="stereo_patch"/> </any-service>
|
|
</default-route>
|
|
</config>
|
|
|
|
</runtime>
|