wavelength 1.0.0
Loading...
Searching...
No Matches
SampleWin Class Reference

Editor view of one sample of a bank, tied to the WAV file it was made from. More...

#include <SampleWin.h>

Public Member Functions

 SampleWin (const String &filename)
 Create a sample from a WAV file, naming it after the file.
 ~SampleWin ()
 Release the reader of the WAV file.
bool Fail ()
 Report whether the WAV file is unreadable or is not 16-bit mono.
int GetID () const
 Report the identifier.
String & GetName ()
 Report the name.
void SetName (const String &name)
 Rename the sample, unless the new name is empty.
AudioIO & GetAudioIO ()
 Report the reader of the WAV file.
Sample & GetSample ()
 Report the playback parameters.

Detailed Description

Editor view of one sample of a bank, tied to the WAV file it was made from.

The class has no RTTI, and its name comes from the assert text of its users. The object is 0x2c bytes. Its routines are in BankManager.cpp.

Constructor & Destructor Documentation

◆ SampleWin()

SampleWin::SampleWin ( const String & filename)
explicit

Create a sample from a WAV file, naming it after the file.

Parameters
filenameThe path of the WAV file.
Ghidra address:
0x1001be58

◆ ~SampleWin()

SampleWin::~SampleWin ( )

Release the reader of the WAV file.

Ghidra address:
0x1001bf56

Member Function Documentation

◆ Fail()

bool SampleWin::Fail ( )

Report whether the WAV file is unreadable or is not 16-bit mono.

Returns
Whether the sample is unusable.
Ghidra address:
0x1001bfc6

◆ GetID()

int SampleWin::GetID ( ) const
inline

Report the identifier.

Returns
The identifier.

◆ GetName()

String & SampleWin::GetName ( )
inline

Report the name.

Returns
The name.

◆ SetName()

void SampleWin::SetName ( const String & name)
inline

Rename the sample, unless the new name is empty.

Parameters
nameThe new name.

◆ GetAudioIO()

AudioIO & SampleWin::GetAudioIO ( )
inline

Report the reader of the WAV file.

Returns
The reader.
Ghidra address:
0x10006df0

◆ GetSample()

Sample & SampleWin::GetSample ( )
inline

Report the playback parameters.

Returns
The parameters.

The documentation for this class was generated from the following file: