[Alephmodular-devel] Sound work, CMusic
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-10-27 21:23:31
|
I've been playing with abstracting sounds. And I'm certainly happier now with some of the more recent tweaks to things (CSound being an actual class for one instead of a cheat, for instance.) I liked my progress so much that I actually tackled music.cpp, putting in both abstracting classes of my own based on the existing file AND Quicktime Music support code from A1. And I like the result. If you change the filetype of Music to AIFF then builds with this code should play that old theme, finally. However, I have no idea how to take the mus2 file with no changes and tell Quicktime to treat it as if it were AIFF. Grrf. I really like how the split-up of logic occurred for CMusic. CMusic has all of the details of when to play, when to pause, when to release and when to fade. And the CMusic_Carbon class only had to implement basic operations on a file based audio sequence. In this case, open the file as a Movie during construction, then handle simple start/stop/change volume operations. -Jeremy Parsons |