// Name: src/osx/sound_osx.cpp
// Purpose: wxSound class common osx code
// Author: Stefan Csomor
-// Modified by:
+// Modified by:
// Created: 2009-09-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
: m_sound(snd)
{
}
-
+
virtual ~wxSoundTimer()
{
Stop();
if (m_sound)
m_sound->DoStop();
}
-
+
void Notify()
{
if (m_sound)
m_sound->SoundTask();
}
-
+
protected:
wxSoundData* m_sound;
};
m_pTimer->Start(MOVIE_DELAY, wxTIMER_CONTINUOUS);
}
-wxSound::wxSound()
+wxSound::wxSound()
{
Init();
}
Create(sFileName, isResource);
}
-wxSound::wxSound(int size, const wxByte* data)
+wxSound::wxSound(size_t size, const void* data)
{
Init();
Create( size, data );
break;
}
}
-
+
if (isPlaying)
m_data->MarkForDeletion();
else
if ( !m_data->Play(flags) )
s_soundsPlaying.pop_back();
}
-
+
return false;
}
for ( wxVector<wxSoundData*>::iterator s = s_soundsPlaying.begin();
s != s_soundsPlaying.end(); ++s )
{
- if ( (*s) == data )
+ if ( (*s) == data )
{
s_soundsPlaying.erase(s);
break;