Kamaelia docs : Kamaelia.Codec.Vorbis.AOAudioPlaybackAdaptor

Kamaelia.Codec.Vorbis.AOAudioPlaybackAdaptor

For examples and more explanations, see the module level docs.


class AOAudioPlaybackAdaptor(Axon.Component.component)

AOAudioPlaybackAdaptor() -> new AOAudioPlaybackAdaptor

Expects to recieve data from standard inbox, and plays it using libao. When it recieves a message on the control port: Sends a producerConsumed to its outbox. Then shutsdown.

Requires libao and pyao (python bindings)

Example

A simple player:

Pipeline(
    ReadFileAdaptor("somefile.ogg"),
    VorbisDecode(),
    AOAudioPlaybackAdaptor(),
).run()

Inboxes

  • control : If a message is received here, the component shutsdown
  • inbox : Any raw PCM encoded data recieved here is played through the default oss playback device

Outboxes

  • outbox : UNUSED
  • signal : When the component shutsdown, it sends a producerFinished message out this outbox

Methods defined here

__init__(self)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

main(self)

Performs the logic described above

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: