Multi-process access to a single-process resource
Systems and methods provide concurrent access to a single input resource. An audio stack of a computing device can receive multiple requests from applications to provide concurrent access to audio data received via an input resource, such as audio data received via an audio card coupled to a microph...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Systems and methods provide concurrent access to a single input resource. An audio stack of a computing device can receive multiple requests from applications to provide concurrent access to audio data received via an input resource, such as audio data received via an audio card coupled to a microphone. A request to access the resource is received from a first application. Based on the request, a cache memory is instantiated to model a memory buffer of the resource. A direct session between a component of the audio stack and the resource is established. As audio data is encoded, the audio stack component can receive the encoded audio data and write the audio data into the cache. A first session between the first application and the cache is generated, such that the first application interprets the cache as the audio input resource buffer memory. The first session can provide the first application with access to audio data in real-time, as if the audio data were being received directly from the audio stack component. A second application requesting access to the resource can be provided with a second session to facilitate concurrent access to the audio input data. |
---|