Audacity  3.0.3
Public Member Functions | List of all members
SFFileCloser Struct Reference

#include <FileFormats.h>

Public Member Functions

int operator() (SNDFILE *) const
 

Detailed Description

Definition at line 141 of file FileFormats.h.

Member Function Documentation

◆ operator()()

int SFFileCloser::operator() ( SNDFILE *  sf) const

Definition at line 337 of file FileFormats.cpp.

338 {
339  auto err = SFCall<int>(sf_close, sf);
340  if (err) {
341  char buffer[1000];
342  sf_error_str(sf, buffer, 1000);
344  /* i18n-hint: %s will be the error message from the libsndfile software library */
345  XO( "Error (file may not have been written): %s" )
346  // Not attempting to localize error messages
347  // from the library
348  .Format( buffer ));
349  }
350  return err;
351 }

References AudacityMessageBox(), and XO.

Here is the call graph for this function:

The documentation for this struct was generated from the following files:
AudacityMessageBox
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
Definition: AudacityMessageBox.cpp:17
Format
Abstract base class used in importing a file.
XO
#define XO(s)
Definition: Internat.h:31