% /home/guilhem/PROJECTS/wxWindows/utils/wxMMedia2/lib/cdbase.h at 26/Feb/00 14:52:12
%
-
\section{\class{wxCDAudio}}\label{wxcdaudio}
\wxheading{Derived from}
-\helpref{wxObject}{wxobject}
+wxObject
\wxheading{Data structures}
-{\small \begin{verbatim}
+{\small
+\begin{verbatim}
typedef struct wxCDtime {
wxUint8 track
-\end{verbatim}}
+};
+\end{verbatim}
+}
{\small \begin{verbatim}
typedef enum { PLAYING, PAUSED, STOPPED } CDstatus
\end{verbatim}}
\section{\class{wxCDAudioLinux}}\label{wxcdaudiolinux}
-
-
\wxheading{Derived from}
\helpref{wxCDAudio}{wxcdaudio}
\latexignore{\rtfignore{\wxheading{Members}}}
-
\membersection{wxCDAudioLinux::wxCDAudioLinux}\label{wxcdaudiolinuxwxcdaudiolinux}
\func{}{wxCDAudioLinux}{\void}
-
-\membersection{wxCDAudioLinux::wxCDAudioLinux}\label{wxcdaudiolinuxwxcdaudiolinux}
-
\func{}{wxCDAudioLinux}{\param{const char* }{dev\_name}}
-
\membersection{wxCDAudioLinux::\destruct{wxCDAudioLinux}}\label{wxcdaudiolinuxdtor}
\func{}{\destruct{wxCDAudioLinux}}{\void}
\wxheading{Data structures}
-{\small \begin{verbatim}
+{\small
+\begin{verbatim}
typedef struct CDAW\_Internal {
MCIDEVICEID dev\_id
-\end{verbatim}}
+};
+\end{verbatim}
+}
+
\latexignore{\rtfignore{\wxheading{Members}}}
\func{}{wxCDAudioWin}{\void}
-
-\membersection{wxCDAudioWin::wxCDAudioWin}\label{wxcdaudiowinwxcdaudiowin}
-
\func{}{wxCDAudioWin}{\param{const char* }{dev\_name}}
\latexignore{\rtfignore{\wxheading{Members}}}
-
\membersection{CDtoc::CDtoc}\label{cdtoccdtoc}
\func{}{CDtoc}{\param{wxCDtime\& }{tot\_tm}, \param{wxCDtime* }{trks\_tm}, \param{wxCDtime* }{trks\_pos}}
Play audio at the specified position
-
-\membersection{wxCDAudio::Play}\label{wxcdaudioplay}
-
\func{bool}{Play}{\param{const wxCDtime\& }{beg\_play}}
Play audio from the specified to the end of the CD audio
-
-\membersection{wxCDAudio::Play}\label{wxcdaudioplay}
-
\func{bool}{Play}{\param{wxUint8 }{beg\_track}, \param{wxUint8 }{end\_track = 0}}
-chapter{Class reference}\label{classref}
+\chapter{Class reference}\label{classref}
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}
-These are the main mmedia classes.
+These are the main Mmedia classes.
\input cdaudio.tex
\input cdaudlnx.tex
\input psbox.tex
\parindent 0pt
\parskip 11pt
-\title{Object Graphics Library 3.0}
-\author{Julian Smart}
-\date{September 1998}
+\title{MMedia for wxWindows}
+\author{Guilhem Lavaux}
+\date{March 2000}
\makeindex
\begin{document}
+++ /dev/null
-[OPTIONS]
-BMROOT=d:\wx2\wxwind~1\docs\latex\ogl ; Assume that bitmaps are where the source is
-TITLE=OGL Manual
-CONTENTS=Contents
-COMPRESS=HIGH
-
-[FILES]
-ogl.rtf
-
-[CONFIG]
-CreateButton("Up", "&Up", "JumpId(`ogl.hlp', `Contents')")
-BrowseButtons()
-
-[MAP]
-
-[BITMAPS]
-
-\chapter{OGLEdit: a sample OGL application}\label{ogledit}%
+\chapter{MMboard: a sample MMedia application}\label{mmboard}%
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}
+
+To be written.
+
apply the format to the current sound stream (it can be a sound file or a
sound driver). Then, either it manages to apply it and it returns {\bf TRUE},
or it could not and it returns {\bf FALSE}. In this case, you must check
-the error with
-\helpref{wxSoundStream::GetError}{wxsoundstreamgeterror}. See
-\helpref{wxSoundStream errors section}{wxsoundstreamerrors} for more details.
-
+the error with
+\helpref{wxSoundStream::GetError}{wxsoundstreamgeterror}. See
+\helpref{wxSoundStream errors section}{wxsoundstream} for more details.
\wxheading{Note}
\func{bool}{StartProduction}{\param{int }{evt}}
-StartProduction starts the sound streaming. {\it evt} may be one of
+StartProduction starts the sound streaming. {\it evt} may be one of
{\bf wxSOUND\_INPUT}, {\bf wxSOUND\_OUTPUT} or {\bf wxSOUND\_DUPLEX}.
You cannot specify several flags at the same time. Starting the production
may automaticaly in position of buffer underrun (only in the case you activated
driver requests it (through a wxSoundEvent).
\membersection{wxSoundStream::StopProduction}\label{wxsoundstreamstopproduction}
+
\func{bool}{StopProduction}{\void}
I stops the async notifier and the sound streaming straightly.
\membersection{wxSoundStream::SetEventHandler}\label{wxsoundstreamseteventhandler}
+
\func{void}{SetEventHandler}{\param{wxSoundStream* }{handler}}
Sets the event handler: if it is non-null, all events are routed to it.
\membersection{wxSoundStream::GetError}\label{wxsoundstreamgeterror}
+
\constfunc{wxSoundError}{GetError}{\void}
It returns the last error which occured.
\membersection{wxSoundStream::GetLastAccess}\label{wxsoundstreamgetlastaccess}
+
\constfunc{wxUint32}{GetLastAccess}{\void}
It returns the number of bytes which were effectively written to/read from the sound stream.
\membersection{wxSoundStream::QueueFilled}\label{wxsoundstreamqueuefilled}
+
\constfunc{bool}{QueueFilled}{\void}
It returns whether the sound IO queue is full. When it is full, the next IO call will block
until the IO queue has at least one empty entry.
\membersection{wxSoundStream::OnSoundEvent}\label{wxsoundstreamonsoundevent}
+
\func{void}{OnSoundEvent}{\param{int }{evt}}
It is called by the wxSoundStream when a new sound event occured.
+
-; Last change: JS 8 Sep 98 2:54 pm
runTwice = yes
titleFontSize = 12
authorFontSize = 10
footerRule = yes
useHeadingStyles = yes
listItemIndent=40
-generateHPJ = no
+generateHPJ = yes
htmlBrowseButtons = bitmap
winHelpVersion = 3
winHelpContents = yes
-winHelpTitle = "OGL Manual"
+winHelpTitle = "MMedia Manual"
truncateFilenames = yes
combineSubSections = yes
\overview [2] {\rtfonly{See also }\settransparency{on}\sethotspotcolour{off}\sethotspotunderline{on}\winhelponly{\image{}{books.bmp}\settransparency{off}}
-\chapter{Topic overviews}
+\chapter{Topic overviews}\label{overviews}
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}
\section{MMedia extension overview}\label{mmedoverview}
+To be written.
+
\wxheading{Derived from}
-\helpref{wxObject}{wxobject}
+wxObject
\wxheading{Data structures}
{\small \begin{verbatim}
typedef struct VIDW\_Internal {
MCIDEVICEID m\_dev\_id
+};
\end{verbatim}}
-\latexignore{\rtfignore{\wxheading{Members}}}
+\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxVideoWindows::OpenFile}\label{wxvideowindowsopenfile}
--- /dev/null
+#
+# File: makefile.b32
+# Author: Julian Smart
+# Created: 1999
+# Updated:
+# Copyright:
+#
+# Makefile : Builds sample for 32-bit BC++
+
+WXDIR = $(WXWIN)
+
+TARGET=stctest
+
+EXTRALIBS=$(WXDIR)\contrib\lib\stc.lib
+OBJECTS = $(TARGET).obj
+
+!include $(WXDIR)\src\makeprog.b32
+
--- /dev/null
+#
+# File: makefile.b32
+# Author: Julian Smart
+# Created: 1999
+# Updated:
+# Copyright:
+#
+# Makefile : Builds wxMMedia library for 32-bit BC++
+
+# N.B. use:
+# make -f makefile.b32 stc.cfg
+# make -f makefile.b32
+
+WXDIR = $(WXWIN)
+
+SCINTILLA=.\scintilla
+S=$(SCINTILLA)\src
+
+STCEXTRACPPFLAGS=-D__WX__ -DSCI_LEXER -I$(SCINTILLA)/include -I$(S)
+
+LIBTARGET=$(WXDIR)\contrib\lib\stc.lib
+
+OBJECTS = \
+ Accessor.obj \
+ AutoComplete.obj \
+ CallTip.obj \
+ CellBuffer.obj \
+ ContractionState.obj\
+ Document.obj \
+ Editor.obj \
+ Indicator.obj \
+ KeyMap.obj \
+ KeyWords.obj \
+ LineMarker.obj \
+ PropSet.obj \
+ ScintillaBase.obj \
+ Style.obj \
+ ViewStyle.obj \
+ \
+ PlatWX.obj \
+ ScintillaWX.obj \
+ stc.obj \
+
+!include $(WXDIR)\src\makelib.b32
+
+CFG = stc.cfg
+CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
+
+{$(S)}.cxx.obj:
+ bcc32 $(CPPFLAGS) -P -c {$< }
+
+$(CFG): makefile.b32
+ copy &&!
+-H=$(WXDIR)\src\msw\wx32.csm
+-3
+-d
+-a1 # byte alignment
+-R-
+-X
+-w-par
+-w-aus
+-w-hid # virtual function A hides virtual function B
+-WE
+-tWM
+
+-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm;$(WXDIR)/src/tiff
+-I$(WXDIR)\include\wx\msw\gnuwin32
+
+-L$(BCCDIR)\lib
+-D__WXWIN__
+-D__WXMSW__
+-D__WINDOWS__
+-DWIN32
+$(OPT)
+$(DEBUG_FLAGS)
+$(WIN95FLAG)
+$(STCEXTRACPPFLAGS)
+! $(CFG)
+
len = 0;
}
void SetLength(int newLen) {
- if (newLength > len) {
- if (newLength >= size) {
- SizeTo(newLength);
+ if (newLen > len) {
+ if (newLen >= size) {
+ SizeTo(newLen);
}
}
len = newLen;
utils/tex2rtf/docs/*.wmf
utils/tex2rtf/docs/*.gif
-utils/wxtree/docs/*.tex
-utils/wxtree/docs/*.ini
-utils/wxtree/docs/*.bib
-utils/wxtree/docs/*.txt
-utils/wxtree/docs/*.hpj
-utils/wxtree/docs/*.bmp
-utils/wxtree/docs/*.wmf
-utils/wxtree/docs/*.gif
-
-utils/wxgraph/docs/*.tex
-utils/wxgraph/docs/*.ini
-utils/wxgraph/docs/*.bib
-utils/wxgraph/docs/*.txt
-utils/wxgraph/docs/*.hpj
-utils/wxgraph/docs/*.bmp
-utils/wxgraph/docs/*.wmf
-utils/wxgraph/docs/*.gif
-
-utils/mfutils/docs/*.tex
-utils/mfutils/docs/*.txt
-utils/mfutils/docs/*.hpj
-utils/mfutils/docs/*.wmf
-utils/mfutils/docs/*.bmp
-
-utils/wxprop/docs/*.txt
-utils/wxprop/docs/*.hpj
-utils/wxprop/docs/*.tex
-utils/wxprop/docs/*.ini
-utils/wxprop/docs/*.eps
-utils/wxprop/docs/*.bmp
-utils/wxprop/docs/*.wmf
-utils/wxprop/docs/*.gif
-
utils/dialoged/docs/*.txt
utils/dialoged/docs/*.hpj
utils/dialoged/docs/*.tex
contrib/configure.in
contrib/lib/dummy
-contrib/include/wx/mmedia/*.h
-contrib/include/wx/mmedia/internal/*.h
-contrib/src/mmedia/makefile*
-contrib/src/mmedia/README
-contrib/src/mmedia/*.h
-contrib/src/mmedia/*.cpp
-contrib/samples/mmedia/*.h
-contrib/samples/mmedia/*.cpp
-contrib/samples/mmedia/makefile*
-contrib/samples/mmedia/*.xbm
-contrib/samples/mmedia/*.xpm
-contrib/samples/mmedia/*.ico
-contrib/samples/mmedia/*.txt
-contrib/samples/mmedia/*.rc
-contrib/samples/mmedia/*.def
-
samples/*.txt
samples/makefile*
samples/configure
--- /dev/null
+contrib/docs/html/mmedia/*.htm
+contrib/docs/html/mmedia/*.gif
+contrib/docs/html/mmedia/*.png
+contrib/docs/winhelp/mmedia.hlp
+contrib/docs/winhelp/mmedia.cnt
+contrib/docs/pdf/mmedia.pdf
+
+contrib/docs/latex/mmedia/*.tex
+contrib/docs/latex/mmedia/*.sty
+contrib/docs/latex/mmedia/*.bib
+contrib/docs/latex/mmedia/*.hpj
+contrib/docs/latex/mmedia/*.ini
+contrib/docs/latex/mmedia/*.txt
+contrib/docs/latex/mmedia/*.cnt
+contrib/docs/latex/mmedia/*.eps
+contrib/docs/latex/mmedia/*.bmp
+contrib/docs/latex/mmedia/*.gif
+contrib/docs/latex/mmedia/*.wmf
+
+contrib/include/wx/mmedia/*.h
+contrib/include/wx/mmedia/internal/*.h
+contrib/src/mmedia/makefile*
+contrib/src/mmedia/README
+contrib/src/mmedia/*.h
+contrib/src/mmedia/*.cpp
+contrib/src/mmedia/MMediaVC.dsp
+contrib/src/mmedia/MMediaVC.dsw
+contrib/samples/mmedia/MMBoardVC.dsw
+contrib/samples/mmedia/*.h
+contrib/samples/mmedia/*.cpp
+contrib/samples/mmedia/makefile*
+contrib/samples/mmedia/*.xbm
+contrib/samples/mmedia/*.xpm
+contrib/samples/mmedia/*.ico
+contrib/samples/mmedia/*.txt
+contrib/samples/mmedia/*.rc
+contrib/samples/mmedia/*.def
+contrib/samples/mmedia/MMBoardVC.dsp
+contrib/samples/mmedia/MMBoardVC.dsw
+
+contrib/docs/html/ogl/*.htm
+contrib/docs/html/ogl/*.gif
+contrib/docs/html/ogl/*.png
+contrib/docs/winhelp/ogl.hlp
+contrib/docs/winhelp/ogl.cnt
+contrib/docs/pdf/ogl.pdf
+
+contrib/docs/latex/ogl/*.tex
+contrib/docs/latex/ogl/*.sty
+contrib/docs/latex/ogl/*.bib
+contrib/docs/latex/ogl/*.hpj
+contrib/docs/latex/ogl/*.ini
+contrib/docs/latex/ogl/*.txt
+contrib/docs/latex/ogl/*.cnt
+contrib/docs/latex/ogl/*.eps
+contrib/docs/latex/ogl/*.bmp
+contrib/docs/latex/ogl/*.gif
+contrib/docs/latex/ogl/*.wmf
+
contrib/src/ogl/*.cpp
contrib/src/ogl/*.h
contrib/src/ogl/*.rc
contrib/samples/ogl/ogledit/*.ico
contrib/samples/ogl/ogledit/*.bmp
contrib/samples/ogl/ogledit/*.xpm
+contrib/samples/ogl/ogledit/OGLEditVC.dsp
+contrib/samples/ogl/ogledit/OGLEditVC.dsw
contrib/samples/ogl/ogledit/bitmaps/*.bmp
contrib/samples/ogl/ogledit/bitmaps/*.gif
contrib/samples/ogl/ogledit/bitmaps/*.xbm
contrib/samples/ogl/studio/*.bmp
contrib/samples/ogl/studio/*.xpm
contrib/samples/ogl/studio/*.wxr
+contrib/samples/ogl/studio/StudioVC.dsp
+contrib/samples/ogl/studio/StudioVC.dsw
contrib/samples/ogl/studio/bitmaps/*.bmp
contrib/samples/ogl/studio/bitmaps/*.gif
contrib/samples/ogl/studio/bitmaps/*.xbm
+contrib/docs/html/stc/*.htm
+contrib/docs/html/stc/*.gif
+contrib/docs/html/stc/*.png
+contrib/docs/winhelp/stc.hlp
+contrib/docs/winhelp/stc.cnt
+contrib/docs/pdf/stc.pdf
+
+contrib/docs/latex/stc/*.tex
+contrib/docs/latex/stc/*.sty
+contrib/docs/latex/stc/*.bib
+contrib/docs/latex/stc/*.hpj
+contrib/docs/latex/stc/*.ini
+contrib/docs/latex/stc/*.txt
+contrib/docs/latex/stc/*.cnt
+contrib/docs/latex/stc/*.eps
+contrib/docs/latex/stc/*.bmp
+contrib/docs/latex/stc/*.gif
+contrib/docs/latex/stc/*.wmf
+
contrib/src/stc/*.cpp
contrib/src/stc/*.h
contrib/src/stc/*.rc
contrib/src/stc/*.txt
contrib/src/stc/*.ico
contrib/src/stc/*.bmp
+contrib/src/stc/StcVC.dsp
+contrib/src/stc/StcVC.dsw
+contrib/src/stc/README.txt
+contrib/src/stc/scintilla/README.txt
+contrib/src/stc/scintilla/include/*.h
+contrib/src/stc/scintilla/src/*.cpp
+contrib/src/stc/scintilla/src/*.cxx
+contrib/src/stc/scintilla/src/*.h
contrib/include/wx/stc/*.h
contrib/samples/stc/*.cpp
contrib/samples/stc/*.bmp
contrib/samples/stc/*.xpm
contrib/samples/stc/*.wxr
-contrib/samples/stc/bitmaps/*.bmp
-contrib/samples/stc/bitmaps/*.gif
-contrib/samples/stc/bitmaps/*.xbm
-contrib/samples/stc/bitmaps/*.xpm
+contrib/samples/stc/StcTestVC.dsp
+contrib/samples/stc/StcTestVC.dsw
rem OGL 3
zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
+rem MMedia
+zip32 -@ %dest\mmedia.zip < %src\distrib\msw\mmedia.rsp
+
rem GLCanvas: obsolete, now in main library
rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
VC++ IDE files;
- JPEG library source;
- Object Graphics Library;
-- wxGLCanvas library;
-- wxTreeLayout library;
- Tex2RTF source;
- Dialog Editor binary.
Other add-on packages are available from the wxWindows Web site, such as:
-- glcanvas.zip. Use OpenGL in a wxWindows window.
+- mmedia.zip. Audio, CD, video access for Windows and Linux.
- ogl3.zip. Object Graphics Library: build network diagrams, CASE tools etc.
- tex2rtf3.zip. Tex2RTF: create Windows Help, HTML, and Word RTF files from
the same document source.
jpeg.zip Optional JPEG library
tiff.zip Optional TIFF library
ogl3.zip Optional Object Graphics Library
-glcanvas.zip Optional wxGLCanvas class (Motif, GTK, MSW)
+mmedia.zip Optional MMedia class library (Motif, GTK, MSW)
tex2rtf2.zip Tex2RTF documentation tool
wxWindows for GTK distribution
--- /dev/null
+#
+# File: makefile.b32
+# Author: Julian Smart
+# Created: 1999
+# Updated:
+# Copyright:
+#
+# Makefile : Builds sample for 32-bit BC++
+
+WXDIR = $(WXWIN)
+
+TARGET=stctest
+
+EXTRALIBS=$(WXDIR)\contrib\lib\stc.lib
+OBJECTS = $(TARGET).obj
+
+!include $(WXDIR)\src\makeprog.b32
+
--- /dev/null
+#
+# File: makefile.b32
+# Author: Julian Smart
+# Created: 1999
+# Updated:
+# Copyright:
+#
+# Makefile : Builds wxMMedia library for 32-bit BC++
+
+# N.B. use:
+# make -f makefile.b32 stc.cfg
+# make -f makefile.b32
+
+WXDIR = $(WXWIN)
+
+SCINTILLA=.\scintilla
+S=$(SCINTILLA)\src
+
+STCEXTRACPPFLAGS=-D__WX__ -DSCI_LEXER -I$(SCINTILLA)/include -I$(S)
+
+LIBTARGET=$(WXDIR)\contrib\lib\stc.lib
+
+OBJECTS = \
+ Accessor.obj \
+ AutoComplete.obj \
+ CallTip.obj \
+ CellBuffer.obj \
+ ContractionState.obj\
+ Document.obj \
+ Editor.obj \
+ Indicator.obj \
+ KeyMap.obj \
+ KeyWords.obj \
+ LineMarker.obj \
+ PropSet.obj \
+ ScintillaBase.obj \
+ Style.obj \
+ ViewStyle.obj \
+ \
+ PlatWX.obj \
+ ScintillaWX.obj \
+ stc.obj \
+
+!include $(WXDIR)\src\makelib.b32
+
+CFG = stc.cfg
+CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
+
+{$(S)}.cxx.obj:
+ bcc32 $(CPPFLAGS) -P -c {$< }
+
+$(CFG): makefile.b32
+ copy &&!
+-H=$(WXDIR)\src\msw\wx32.csm
+-3
+-d
+-a1 # byte alignment
+-R-
+-X
+-w-par
+-w-aus
+-w-hid # virtual function A hides virtual function B
+-WE
+-tWM
+
+-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm;$(WXDIR)/src/tiff
+-I$(WXDIR)\include\wx\msw\gnuwin32
+
+-L$(BCCDIR)\lib
+-D__WXWIN__
+-D__WXMSW__
+-D__WINDOWS__
+-DWIN32
+$(OPT)
+$(DEBUG_FLAGS)
+$(WIN95FLAG)
+$(STCEXTRACPPFLAGS)
+! $(CFG)
+
len = 0;
}
void SetLength(int newLen) {
- if (newLength > len) {
- if (newLength >= size) {
- SizeTo(newLength);
+ if (newLen > len) {
+ if (newLen >= size) {
+ SizeTo(newLen);
}
}
len = newLen;