void frmContactEditor::AddSound( wxCommandEvent& event )
{
+ // Bring up a form to add sound.
+
int intResult = 0;
frmContactEditorSound *frameCESound = new frmContactEditorSound ( this );
void frmContactEditor::ModifySound( wxCommandEvent& event )
{
+ // Bring up a form to modify sound.
+
long longSelected = -1;
int intSelectedData = 0;
void frmContactEditor::DeleteSound( wxCommandEvent& event )
{
+ // Bring up a form to delete sound.
+
long longSelected = -1;
int intSelectedData = 0;
void frmContactEditor::PlaySoundDetach()
{
+ // Play the sound and detach.
+
if (!AudioStreamPlayback.openFromMemory(base64dec.c_str(), base64declen)){
// Can't load file. We must flee...
void frmContactEditor::PlaySound( wxCommandEvent& event )
{
+ // Play the sound.
+
//sf::Music *AudioPlayback = new sf::Music;
//AudioStream *AudioStreamPlayback = new AudioStream;
//sf::SoundBuffer *AudioBuffer = new sf::SoundBuffer;
void frmContactEditor::StopSound( wxCommandEvent& event )
{
+
+ // Stop the sound.
if (AudioStreamPlayback.getStatus() == sf::SoundSource::Playing){
void frmContactEditor::SaveSound( wxCommandEvent &event )
{
+ // Save the sound.
+
long longSelected = -1;
int intSelectedData = 0;