Audacity 3.2.0
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 336 of file FileFormats.cpp.

338 auto err = SFCall<int>(sf_close, sf);
339 if (err) {
340 char buffer[1000];
341 sf_error_str(sf, buffer, 1000);
343 /* i18n-hint: %s will be the error message from the libsndfile software library */
344 XO( "Error (file may not have been written): %s" )
345 // Not attempting to localize error messages
346 // from the library
347 .Format( buffer ));
348 }
349 return err;
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
Abstract base class used in importing a file.

References AudacityMessageBox(), and XO().

Here is the call graph for this function:

The documentation for this struct was generated from the following files: