Audacity  2.2.2
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 130 of file FileFormats.h.

Member Function Documentation

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

Definition at line 291 of file FileFormats.cpp.

References _(), and AudacityMessageBox().

292 {
293  auto err = SFCall<int>(sf_close, sf);
294  if (err) {
295  char buffer[1000];
296  sf_error_str(sf, buffer, 1000);
297  AudacityMessageBox(wxString::Format
298  /* i18n-hint: %s will be the error message from libsndfile */
299  (_("Error (file may not have been written): %s"),
300  buffer));
301  }
302  return err;
303 }
int AudacityMessageBox(const wxString &message, const wxString &caption=AudacityMessageBoxCaptionStr(), long style=wxOK|wxCENTRE, wxWindow *parent=NULL, int x=wxDefaultCoord, int y=wxDefaultCoord)
Definition: ErrorDialog.h:92
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand

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