55 |
template<unsigned int SZ> |
template<unsigned int SZ> |
56 |
inline String readText(RIFF::Chunk* ck) { |
inline String readText(RIFF::Chunk* ck) { |
57 |
char buf[SZ+1] = {}; |
char buf[SZ+1] = {}; |
58 |
int n = ck->Read(buf, SZ, 1); |
int n = (int) ck->Read(buf, SZ, 1); |
59 |
if (n != SZ) |
if (n != SZ) |
60 |
throw Exception("Premature end while reading text field"); |
throw Exception("Premature end while reading text field"); |
61 |
String s = buf; |
String s = buf; |
412 |
} |
} |
413 |
|
|
414 |
int KMPInstrument::GetRegionCount() const { |
int KMPInstrument::GetRegionCount() const { |
415 |
return regions.size(); |
return (int) regions.size(); |
416 |
} |
} |
417 |
|
|
418 |
bool KMPInstrument::Use2ndStart() const { |
bool KMPInstrument::Use2ndStart() const { |