samples/html/help/Makefile
samples/html/printing/Makefile
samples/html/test/Makefile
+ utils/Makefile
utils/wxMMedia2/Makefile
utils/wxMMedia2/lib/Makefile
utils/wxMMedia2/sample/Makefile
--- /dev/null
+#
+# Makefile : Builds wxWindows utils for Unix.
+#
+
+all:
+ cd wxMMedia2; make
+
+clean:
+ cd wxMMedia2; make clean
+
virtual wxSoundFormatType GetType() const { return wxSOUND_NOFORMAT; }
virtual wxSoundFormatBase *Clone() const;
- virtual wxUint32 GetTimeFromByte(wxUint32 bytes) const = 0;
- virtual wxUint32 GetByteFromTime(wxUint32 time) const = 0;
+ virtual wxUint32 GetTimeFromBytes(wxUint32 bytes) const = 0;
+ virtual wxUint32 GetBytesFromTime(wxUint32 time) const = 0;
virtual bool operator !=(const wxSoundFormatBase& frmt2) const;
};
if (!PrepareToRecord(time))
return FALSE;
- m_len = m_sndformat->GetByteFromTime(time);
+ m_len = m_sndformat->GetBytesFromTime(time);
if (!StartProduction(wxSOUND_INPUT))
return FALSE;
return new_pcm;
}
-wxUint32 wxSoundFormatPcm::GetTimeFromByte(wxUint32 bytes) const
+wxUint32 wxSoundFormatPcm::GetTimeFromBytes(wxUint32 bytes) const
{
return (bytes / (m_srate * (m_bps / 8) * m_nchan));
}
-wxUint32 wxSoundFormatPcm::GetByteFromTime(wxUint32 time) const
+wxUint32 wxSoundFormatPcm::GetBytesFromTime(wxUint32 time) const
{
return (time * (m_srate * (m_bps / 8) * m_nchan));
}
wxSoundFormatType GetType() const { return wxSOUND_PCM; }
wxSoundFormatBase *Clone() const;
- wxUint32 GetTimeFromByte(wxUint32 bytes) const;
- wxUint32 GetByteFromTime(wxUint32 time) const;
+ wxUint32 GetTimeFromBytes(wxUint32 bytes) const;
+ wxUint32 GetBytesFromTime(wxUint32 time) const;
bool operator!=(const wxSoundFormatBase& frmt2) const;
return ulaw;
}
-wxUint32 wxSoundFormatUlaw::GetTimeFromByte(wxUint32 bytes) const
+wxUint32 wxSoundFormatUlaw::GetTimeFromBytes(wxUint32 bytes) const
{
return (bytes / m_srate);
}
-wxUint32 wxSoundFormatUlaw::GetByteFromTime(wxUint32 time) const
+wxUint32 wxSoundFormatUlaw::GetBytesFromTime(wxUint32 time) const
{
return time * m_srate;
}
wxSoundFormatType GetType() const { return wxSOUND_ULAW; }
wxSoundFormatBase *Clone() const;
- wxUint32 GetTimeFromByte(wxUint32 bytes) const;
- wxUint32 GetByteFromTime(wxUint32 time) const;
+ wxUint32 GetTimeFromBytes(wxUint32 bytes) const;
+ wxUint32 GetBytesFromTime(wxUint32 time) const;
bool operator !=(const wxSoundFormatBase& frmt2) const;
wxDataOutputStream data(*m_output);
data.BigEndianOrdered(FALSE);
- len = m_sndformat->GetByteFromTime(time);
+ len = m_sndformat->GetBytesFromTime(time);
len += HEADER_SIZE;
bits_p_spl = pcm->GetBPS();
channels = pcm->GetChannels();
byte_p_spl = pcm->GetBPS() / 8;
- byte_p_sec = pcm->GetByteFromTime(1);
+ byte_p_sec = pcm->GetBytesFromTime(1);
format = 1;
data << format << channels << sample_fq
<< byte_p_sec << byte_p_spl << bits_p_spl;
}
WRITE_SIGNATURE(DATA_SIGNATURE);
- data.Write32(m_sndformat->GetByteFromTime(time));
+ data.Write32(m_sndformat->GetBytesFromTime(time));
return TRUE;
}