2 * Copyright 2002, Marcus Overhagen. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
7 // This is deprecated API that is not even implemented - no need to export
8 // it on a GCC4 build (BeIDE needs it to run, though, so it's worthwhile for
13 #include "OldAudioModule.h"
18 /*************************************************************
20 *************************************************************/
22 BAudioEvent::BAudioEvent(int32 frames
, bool stereo
, float *samples
)
28 BAudioEvent::~BAudioEvent()
44 BAudioEvent::SetStart(mk_time
)
51 BAudioEvent::Duration()
69 BAudioEvent::Samples()
77 BAudioEvent::ChannelCount()
95 BAudioEvent::SetGain(float)
102 BAudioEvent::Destination()
111 BAudioEvent::SetDestination(int32
)
118 BAudioEvent::MixIn(float *dst
, int32 frames
, mk_time time
)
135 BAudioEvent::CaptureTime()
144 BAudioEvent::SetCaptureTime(bigtime_t
)
150 /*************************************************************
151 * public BDACRenderer
152 *************************************************************/
154 BDACRenderer::BDACRenderer(const char *name
)
160 BDACRenderer::~BDACRenderer()
167 BDACRenderer::Units()
176 BDACRenderer::Latency()
185 BDACRenderer::Start()
194 BDACRenderer::Duration()
203 BDACRenderer::TimeBase()
218 BDACRenderer::Close()
225 BDACRenderer::Wakeup()
232 BDACRenderer::TransportChanged(mk_time time
, mk_rate rate
,
233 transport_status status
)
240 BDACRenderer::StreamChanged()
247 BDACRenderer::Channel()
253 /*************************************************************
254 * private BDACRenderer
255 *************************************************************/
259 BDACRenderer::_WriteDAC(void *arg
, char *buf
, uint32 bytes
, void *header
)
268 BDACRenderer::WriteDAC(short *buf
, int32 frames
, audio_buffer_header
*header
)
277 BDACRenderer::MixActiveSegments(mk_time start
)
286 BDACRenderer::MixOutput(short *dst
)
292 /*************************************************************
293 * public BAudioFileStream
294 *************************************************************/
296 BAudioFileStream::BAudioFileStream(BMediaChannel
*channel
, BFile
*file
,
303 BAudioFileStream::~BAudioFileStream()
310 BAudioFileStream::GetEvent(BMediaChannel
*channel
)
318 BAudioFileStream::PeekEvent(BMediaChannel
*channel
, mk_time asap
)
326 BAudioFileStream::SeekToTime(BMediaChannel
*channel
, mk_time time
)
335 BAudioFileStream::SetStart(mk_time start
)
342 BAudioFileStream::CaptureTime()
351 BAudioFileStream::Channel()
357 /*************************************************************
359 *************************************************************/
361 BADCSource::BADCSource(BMediaChannel
*channel
, mk_time start
)
363 fEventLock("BADCSource lock")
369 BADCSource::~BADCSource()
376 BADCSource::GetEvent(BMediaChannel
*channel
)
384 BADCSource::PeekEvent(BMediaChannel
*channel
, mk_time asap
)
392 BADCSource::SeekToTime(BMediaChannel
*channel
, mk_time time
)
401 BADCSource::SetStart(mk_time start
)
408 BADCSource::Channel()
414 /*************************************************************
416 *************************************************************/
419 BADCSource::_ReadADC(void *arg
, char *buf
, uint32 bytes
, void *header
)
428 BADCSource::ReadADC(short *buf
, int32 frames
, audio_buffer_header
*header
)
434 #endif // __GNUC__ < 3