Jonathan McDougall
2005-05-18 04:51:57 UTC
It could be intersting if users were notified of some events, such as
when a stream is done playing. For example:
void foo(audiere::Event e)
{
// done playing
}
audiere::OutputStreamPtr stream(audiere::OpenSound(device, "file"));
stream->on_done_playing = audiere::Handler(&foo);
If I understand correctly, the only way now to be notified when a
stream has finished its playback is to check regularly whether
isPlaying() returns true or false and to interpret that as being the
end of the file.
Jonathan
when a stream is done playing. For example:
void foo(audiere::Event e)
{
// done playing
}
audiere::OutputStreamPtr stream(audiere::OpenSound(device, "file"));
stream->on_done_playing = audiere::Handler(&foo);
If I understand correctly, the only way now to be notified when a
stream has finished its playback is to check regularly whether
isPlaying() returns true or false and to interpret that as being the
end of the file.
Jonathan