Displaying 1 result from an estimated 1 matches for "numencodes".
Did you mean:
  num_encoder
  
2011 Aug 11
1
Memory leak
...n true;
  return false;
}
inline bool FlacWriter::dataUpdate(char const *const data, int len)
{
  return true;  // handle data here and call process(_interleaved)
}
inline bool FlacWriter::dataFinish()
{
  if (!finish())
    return false;
  return true;
}
int main(int argc, char *argv[])
{
  int numencodes = argc > 1 ? atoi(argv[1]) : 2;
  if (!numencodes)
    numencodes = 2;
  FlacWriter fw;
  for (int i = 0; i < numencodes; ++i)
  {
    if (!fw.dataStart("filname.flac"))
    {
      std::cout << "Failed init!" << std::endl;
      return 1;
    }
    while (t...