| 62 | } |
| 63 | |
| 64 | int JASChannel::play() { |
| 65 | JASDSPChannel *chan = JASDSPChannel::alloc(JSULoByte(mPriority), dspUpdateCallback, this); |
| 66 | if (!chan) { |
| 67 | delete this; |
| 68 | return 0; |
| 69 | } |
| 70 | |
| 71 | mDspCh = chan; |
| 72 | chan->start(); |
| 73 | mStatus = STATUS_PLAYING; |
| 74 | return 1; |
| 75 | } |
| 76 | |
| 77 | int JASChannel::playForce() { |
| 78 | JASDSPChannel *chan = JASDSPChannel::allocForce(JSULoByte(mPriority), dspUpdateCallback, this); |