Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated build system
[xestiaab/.git]
/
source
/
contacteditor
/
frmContactEditorSound.cpp
diff --git
a/source/contacteditor/frmContactEditorSound.cpp
b/source/contacteditor/frmContactEditorSound.cpp
index
6e1fab0
..
b4ab352
100644
(file)
--- a/
source/contacteditor/frmContactEditorSound.cpp
+++ b/
source/contacteditor/frmContactEditorSound.cpp
@@
-42,7
+42,7
@@
void frmContactEditorSound::ProcessData( wxCommandEvent& event )
wxString wxSAudioFilename;
wxString wxSAudioMIMEType;
sf::SoundBuffer AudioBuffer;
wxString wxSAudioFilename;
wxString wxSAudioMIMEType;
sf::SoundBuffer AudioBuffer;
-
size_
t len;
+
wxFileOffse
t len;
std::string b64enc;
wxSAudioFilename = fipSound->GetPath();
std::string b64enc;
wxSAudioFilename = fipSound->GetPath();
@@
-56,11
+56,11
@@
void frmContactEditorSound::ProcessData( wxCommandEvent& event )
*/
if (AudioFile.Open(wxSAudioFilename, wxFile::read)){
*/
if (AudioFile.Open(wxSAudioFilename, wxFile::read)){
-
size_t flen;
+
s
size_t flen;
len = AudioFile.Length();
unsigned char* AudioFileData = new unsigned char[len];
len = AudioFile.Length();
unsigned char* AudioFileData = new unsigned char[len];
- flen = AudioFile.Read(AudioFileData,
len);
+ flen = AudioFile.Read(AudioFileData,
(size_t)len);
// Get MIME Type.
// Get MIME Type.
@@
-90,7
+90,7
@@
void frmContactEditorSound::ProcessData( wxCommandEvent& event )
// Check to make sure it is an audio file.
// Check to make sure it is an audio file.
- if (!AudioBuffer.loadFromMemory(AudioFileData, len)){
+ if (!AudioBuffer.loadFromMemory(AudioFileData,
(size_t)
len)){
// Can't load file. We must flee...
// Also show an error message too.
// Can't load file. We must flee...
// Also show an error message too.
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy