2 |
* * |
* * |
3 |
* libgig - C++ cross-platform Gigasampler format file access library * |
* libgig - C++ cross-platform Gigasampler format file access library * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003-2018 by Christian Schoenebeck * |
* Copyright (C) 2003-2019 by Christian Schoenebeck * |
6 |
* <cuse@users.sourceforge.net> * |
* <cuse@users.sourceforge.net> * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
64 |
__range_max = 1.0f; |
__range_max = 1.0f; |
65 |
} |
} |
66 |
|
|
67 |
|
/** |
68 |
|
* Divides this progress task into the requested amount of sub-progress |
69 |
|
* tasks and returns a vector with those subprogress tasks. |
70 |
|
* |
71 |
|
* @param iSubtasks - total amount sub tasks this task should be subdivided |
72 |
|
* @returns subtasks |
73 |
|
*/ |
74 |
|
std::vector<progress_t> progress_t::subdivide(int iSubtasks) { |
75 |
|
std::vector<progress_t> v; |
76 |
|
for (int i = 0; i < iSubtasks; ++i) { |
77 |
|
progress_t p; |
78 |
|
__divide_progress(this, &p, iSubtasks, i); |
79 |
|
v.push_back(p); |
80 |
|
} |
81 |
|
return v; |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
// *************** Chunk ************** |
// *************** Chunk ************** |