3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
|
* Copyright (C) 2005, 2006 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
64 |
} |
} |
65 |
|
|
66 |
/** |
/** |
67 |
|
* Create a new event for the given sample point position in the current |
68 |
|
* audio fragment. |
69 |
|
* |
70 |
|
* @param FragmentPos - actual sample point position in the current |
71 |
|
* audio fragment to which the new event belongs to |
72 |
|
*/ |
73 |
|
Event EventGenerator::CreateEvent(int32_t FragmentPos) { |
74 |
|
return Event(this, FragmentPos); |
75 |
|
} |
76 |
|
|
77 |
|
/** |
78 |
* Will be called by an EventGenerator to create a new Event. |
* Will be called by an EventGenerator to create a new Event. |
79 |
|
* This Constructor expects a time stamp. The actual sample point |
80 |
|
* position to which this event belongs to will be calculated later |
81 |
|
* when FragmentPos() was called the first time. |
82 |
|
* |
83 |
|
* @param pGenerator - creator of this event |
84 |
|
* @param Time - time stamp on which this event occured |
85 |
*/ |
*/ |
86 |
Event::Event(EventGenerator* pGenerator, time_stamp_t Time) { |
Event::Event(EventGenerator* pGenerator, time_stamp_t Time) { |
87 |
pEventGenerator = pGenerator; |
pEventGenerator = pGenerator; |
89 |
iFragmentPos = -1; |
iFragmentPos = -1; |
90 |
} |
} |
91 |
|
|
92 |
|
/** |
93 |
|
* Will be called by an EventGenerator to create a new Event. |
94 |
|
* This constructor expects the final sample point position to which |
95 |
|
* this event belongs to. |
96 |
|
* |
97 |
|
* @param pGenerator - creator of this event |
98 |
|
* @param FragmentPos - actual sample point position in the current |
99 |
|
* audio fragment to which this event belongs to |
100 |
|
*/ |
101 |
|
Event::Event(EventGenerator* pGenerator, int32_t FragmentPos) { |
102 |
|
pEventGenerator = pGenerator; |
103 |
|
iFragmentPos = FragmentPos; |
104 |
|
} |
105 |
|
|
106 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |