|
From: Chris B. <ch...@cn...> - 2010-06-28 16:28:10
|
If your reading from memory using example5.c as basis, I assume your using sox_open_mem_read(). If you want to play the audio from memory, use sox_open_mem_read() to read from memory but use standard sox_open_write() to play the file. Play to the alsa/windows/osx driver. See example3.c for playing to alsa output device. Replace "alsa" string with "wavaudio" on windows or "coreaudio" on osx. Chris On Sat, Jun 19, 2010 at 12:28 PM, cobra.yu <cob...@hy...> wrote: > Dear All, > > After referring to Example5, I've successfully load music data (RAW) > from PDF files into memory and converted them there to mp3/wav formats. Now, > I'd like to play the mp3 data in MEMORY directly. I read other examples, > and also traced the source of SOX.C, but it seems rather complicated to > JUST PLAY MUSIC w/o any sound effects. Could anyone show me the direct way > to play music? Any suggestions are welcome! Thanx. > > Cobra > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Sox-users mailing list > Sox...@li... > https://lists.sourceforge.net/lists/listinfo/sox-users > |