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 139 of file FileFormats.h.

Member Function Documentation

◆ operator()()

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

Definition at line 332 of file FileFormats.cpp.

333{
334 auto err = SFCall<int>(sf_close, sf);
335 if (err) {
336 char buffer[1000];
337 sf_error_str(sf, buffer, 1000);
339 /* i18n-hint: %s will be the error message from the libsndfile software library */
340 XO( "Error (file may not have been written): %s" )
341 // Not attempting to localize error messages
342 // from the library
343 .Format( buffer ));
344 }
345 return err;
346}
XO("Cut/Copy/Paste")
Abstract base class used in importing a file.
MessageBoxResult ShowMessageBox(const TranslatableString &message, MessageBoxOptions options={})
Show a modal message box with either Ok or Yes and No, and optionally Cancel.
Definition: BasicUI.h:277

References BasicUI::ShowMessageBox(), and XO().

Here is the call graph for this function:

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