Mercurial > audlegacy
comparison Plugins/Input/modplug/modplugbmp.cpp @ 414:7fa1738514d5 trunk
[svn] Convert all input plugins (except timidity & wav-sndfile) to produce_audio.
| author | chainsaw |
|---|---|
| date | Tue, 10 Jan 2006 12:22:40 -0800 |
| parents | 4c8545dc17c2 |
| children | d539e5c5f730 |
comparison
equal
deleted
inserted
replaced
| 413:97ba91ee699e | 414:7fa1738514d5 |
|---|---|
| 12 #include <libmodplug/stdafx.h> | 12 #include <libmodplug/stdafx.h> |
| 13 #include <libmodplug/sndfile.h> | 13 #include <libmodplug/sndfile.h> |
| 14 #include "stddefs.h" | 14 #include "stddefs.h" |
| 15 #include "archive/open.h" | 15 #include "archive/open.h" |
| 16 #include "libaudacious/configdb.h" | 16 #include "libaudacious/configdb.h" |
| 17 extern "C" { | |
| 18 #include "audacious/output.h" | |
| 19 } | |
| 17 | 20 |
| 18 // ModplugXMMS member functions =============================== | 21 // ModplugXMMS member functions =============================== |
| 19 | 22 |
| 20 // operations ---------------------------------------- | 23 // operations ---------------------------------------- |
| 21 ModplugXMMS::ModplugXMMS() | 24 ModplugXMMS::ModplugXMMS() |
| 248 usleep(10000); | 251 usleep(10000); |
| 249 | 252 |
| 250 if(mStopped) | 253 if(mStopped) |
| 251 break; | 254 break; |
| 252 | 255 |
| 253 mOutPlug->write_audio | 256 produce_audio |
| 254 ( | |
| 255 mBuffer, | |
| 256 mBufSize | |
| 257 ); | |
| 258 mInPlug->add_vis_pcm | |
| 259 ( | 257 ( |
| 260 mPlayed, | 258 mPlayed, |
| 261 mFormat, | 259 mFormat, |
| 262 lChannels, | 260 lChannels, |
| 263 mBufSize, | 261 mBufSize, |
| 264 mBuffer | 262 mBuffer, |
| 263 NULL | |
| 265 ); | 264 ); |
| 266 | 265 |
| 267 mPlayed += mBufTime; | 266 mPlayed += mBufTime; |
| 268 } | 267 } |
| 269 | 268 |
