// --------------------------------------------------------------------------
-#define MY_ESD_NAME "wxWindows/wxSoundStreamESD"
+#define MY_ESD_NAME "wxWidgets/wxSoundStreamESD"
// --------------------------------------------------------------------------
// wxSoundStreamESD: ESD sound driver
wxSoundFormatPcm pcm_default;
// First, we make some basic test: is there ESD on this computer ?
- m_esd_ok = FALSE;
+ m_esd_ok = false;
if (hostname.IsNull())
m_fd_output = esd_play_stream(ESD_PLAY | ESD_STREAM, 22050,
// Initialize some variable
m_snderror = wxSOUND_NOERROR;
- m_esd_stop = TRUE;
- m_q_filled = TRUE;
- m_esd_ok = TRUE;
+ m_esd_stop = true;
+ m_q_filled = true;
+ m_esd_ok = true;
m_fd_output= -1;
m_fd_input = -1;
#endif // defined HAVE_ESD_H
else
m_snderror = wxSOUND_NOERROR;
- m_q_filled = TRUE;
+ m_q_filled = true;
return *this;
#endif // defined HAVE_ESD_H
{
#ifndef HAVE_ESD_H
m_snderror = wxSOUND_INVDEV;
- return FALSE;
+ return false;
#else
wxSoundFormatPcm *pcm_format;
if (format.GetType() != wxSOUND_PCM) {
m_snderror = wxSOUND_INVFRMT;
- return FALSE;
+ return false;
}
if (!m_esd_ok) {
m_snderror = wxSOUND_INVDEV;
- return FALSE;
+ return false;
}
if (m_sndformat)
m_sndformat = format.Clone();
if (!m_sndformat) {
m_snderror = wxSOUND_MEMERROR;
- return FALSE;
+ return false;
}
pcm_format = (wxSoundFormatPcm *)m_sndformat;
m_snderror = wxSOUND_NOERROR;
if (*pcm_format != format) {
m_snderror = wxSOUND_NOEXACT;
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
#endif // defined HAVE_ESD_H
}
// --------------------------------------------------------------------------
void wxSoundStreamESD::WakeUpEvt(int evt)
{
- m_q_filled = FALSE;
+ m_q_filled = false;
OnSoundEvent(evt);
}
{
#ifndef HAVE_ESD_H
m_snderror = wxSOUND_INVDEV;
- return FALSE;
+ return false;
#else
wxSoundFormatPcm *pcm;
int flag = 0;
if (!m_esd_ok) {
m_snderror = wxSOUND_INVDEV;
- return FALSE;
+ return false;
}
if (!m_esd_stop)
}
#endif
- m_esd_stop = FALSE;
- m_q_filled = FALSE;
+ m_esd_stop = false;
+ m_q_filled = false;
- return TRUE;
+ return true;
#endif // defined HAVE_ESD_H
}
{
#ifndef HAVE_ESD_H
m_snderror = wxSOUND_INVDEV;
- return FALSE;
+ return false;
#else
if (m_esd_stop)
- return FALSE;
+ return false;
if (m_fd_input != -1) {
esd_close(m_fd_input);
m_fd_input = -1;
m_fd_output= -1;
- m_esd_stop = TRUE;
- m_q_filled = TRUE;
- return TRUE;
+ m_esd_stop = true;
+ m_q_filled = true;
+ return true;
#endif // defined HAVE_ESD_H
}
best_pcm.SetBPS(8);
best_pcm.SetOrder(wxLITTLE_ENDIAN);
- best_pcm.Signed(TRUE);
+ best_pcm.Signed(true);
// Finally recopy the new format
*pcm = best_pcm;