Mercurial > hg > svapp
comparison audioio/AudioGenerator.h @ 13:89bb89894ad6
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | 8dc0ae8fccdd |
children | c606d3ffa397 |
comparison
equal
deleted
inserted
replaced
12:29b38a641d43 | 13:89bb89894ad6 |
---|---|
27 public: | 27 public: |
28 AudioGenerator(ViewManager *); | 28 AudioGenerator(ViewManager *); |
29 virtual ~AudioGenerator(); | 29 virtual ~AudioGenerator(); |
30 | 30 |
31 /** | 31 /** |
32 * Add a data model to be played from and initialise any | 32 * Return true if the given model is of a type that we generally |
33 * necessary audio generation code. | 33 * know how to play. This doesn't guarantee that a specific |
34 * Returns true if the model is of a type that we know how to play. | 34 * AudioGenerator will actually produce sounds for it (for |
35 * (The model will be added regardless.) | 35 * example, it may turn out that a vital plugin is missing). |
36 */ | |
37 static bool canPlay(const Model *model); | |
38 | |
39 /** | |
40 * Add a data model to be played from and initialise any necessary | |
41 * audio generation code. Returns true if the model will be | |
42 * played. (The return value test here is stricter than that for | |
43 * canPlay, above.) The model will be added regardless of the | |
44 * return value. | |
36 */ | 45 */ |
37 virtual bool addModel(Model *model); | 46 virtual bool addModel(Model *model); |
38 | 47 |
39 /** | 48 /** |
40 * Remove a model. | 49 * Remove a model. |