Audacity  3.0.3
Functions | Variables
SimpleBlockFile.cpp File Reference

Implements SimpleBlockFile and auHeader. More...

#include "../Audacity.h"
#include "SimpleBlockFile.h"
#include <wx/wx.h>
#include <wx/filefn.h>
#include <wx/ffile.h>
#include <wx/utils.h>
#include <wx/log.h>
#include "../DirManager.h"
#include "../Prefs.h"
#include "../FileFormats.h"
#include "sndfile.h"
Include dependency graph for SimpleBlockFile.cpp:

Go to the source code of this file.

Functions

static wxUint32 SwapUintEndianess (wxUint32 in)
 

Variables

static DirManager::RegisteredBlockFileDeserializer sRegistration
 

Detailed Description

Implements SimpleBlockFile and auHeader.

Definition in file SimpleBlockFile.cpp.

Function Documentation

◆ SwapUintEndianess()

static wxUint32 SwapUintEndianess ( wxUint32  in)
static

Definition at line 55 of file SimpleBlockFile.cpp.

56 {
57  wxUint32 out;
58  unsigned char *p_in = (unsigned char *) &in;
59  unsigned char *p_out = (unsigned char *) &out;
60  p_out[0] = p_in[3];
61  p_out[1] = p_in[2];
62  p_out[2] = p_in[1];
63  p_out[3] = p_in[0];
64  return out;
65 }

Referenced by SimpleBlockFile::GetSpaceUsage().

Here is the caller graph for this function:

Variable Documentation

◆ sRegistration

DirManager::RegisteredBlockFileDeserializer sRegistration
static
Initial value:
{
"simpleblockfile",
[]( DirManager &dm, const wxChar **attrs ){
return SimpleBlockFile::BuildFromXML( dm, attrs );
}
}

Definition at line 426 of file SimpleBlockFile.cpp.

SimpleBlockFile::BuildFromXML
static BlockFilePtr BuildFromXML(DirManager &dm, const wxChar **attrs)
static
Definition: SimpleBlockFile.cpp:292