RE: Audio Indication of Slide Change

"Hendri Adriaens" <[email protected]>
Newsgroups gmane.comp.tex.latex.prosper.user
Message-ID <[email protected]>
Michael,

> There might be was to automatically
> start this sound in displaying the link, but I didn't find the pdfmark
> annotations for that.

Using http://www.planetpdf.com/planetpdf/pdfs/primer.pdf
We can come to the following working example. The idea is to insert
null dimensional movies and play them when the page is entered. This
does not embed the sounds into the pdf, be warned! I took two files
from my windows media dir to construct the example, but you can take
any file. Notice that Acrobat actually allows for embedding of sounds.

See the example below:
\documentclass[pdf]{prosper}
\makeatletter

\def\PageSound#1{%
  \pdfmark{pdfmark=/ANN,
    Raw={/Rect [0 0 0 0] /Subtype /Movie
    /Title (PageSound) /Movie << /F (#1) >>}%
  }%
  \pdfmark{pdfmark=/PUT,
    Raw={{ThisPage} << /AA << /O << /S /Movie
    /T (PageSound) /Operation /Play >> >> >>}%
  }%
}

\makeatother

\begin{document}

\begin{slide}{Slide 1, no sound}
\end{slide}

\begin{slide}{Slide 2, chord.wav}
\PageSound{chord.wav}
\end{slide}

\begin{slide}{Slide 3, no sound}
\end{slide}

\begin{slide}{Slide 4, chimes.wav}
\PageSound{chimes.wav}
\end{slide}

\end{document}

Best regards,
-Hendri.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.