* Build fix; the Jamfile changes caused those to be broken.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34504 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,18 +1,19 @@
|
|||||||
/***********************************************************************
|
/*
|
||||||
* AUTHOR: Marcus Overhagen
|
* Copyright 2002, Marcus Overhagen. All Rights Reserved.
|
||||||
* FILE: OldAudioModule.cpp
|
* Distributed under the terms of the MIT License.
|
||||||
* DESCR:
|
*/
|
||||||
***********************************************************************/
|
|
||||||
#include <OldAudioModule.h>
|
|
||||||
#include "debug.h"
|
#include "OldAudioModule.h"
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* public BAudioEvent
|
* public BAudioEvent
|
||||||
*************************************************************/
|
*************************************************************/
|
||||||
|
|
||||||
BAudioEvent::BAudioEvent(int32 frames,
|
BAudioEvent::BAudioEvent(int32 frames, bool stereo, float *samples)
|
||||||
bool stereo,
|
|
||||||
float *samples)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
}
|
}
|
||||||
@@ -108,9 +109,7 @@ BAudioEvent::SetDestination(int32)
|
|||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BAudioEvent::MixIn(float *dst,
|
BAudioEvent::MixIn(float *dst, int32 frames, mk_time time)
|
||||||
int32 frames,
|
|
||||||
mk_time time)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
@@ -224,9 +223,8 @@ BDACRenderer::Wakeup()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BDACRenderer::TransportChanged(mk_time time,
|
BDACRenderer::TransportChanged(mk_time time, mk_rate rate,
|
||||||
mk_rate rate,
|
transport_status status)
|
||||||
transport_status status)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
}
|
}
|
||||||
@@ -252,10 +250,7 @@ BDACRenderer::Channel()
|
|||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BDACRenderer::_WriteDAC(void *arg,
|
BDACRenderer::_WriteDAC(void *arg, char *buf, uint32 bytes, void *header)
|
||||||
char *buf,
|
|
||||||
uint32 bytes,
|
|
||||||
void *header)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
@@ -264,9 +259,7 @@ BDACRenderer::_WriteDAC(void *arg,
|
|||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BDACRenderer::WriteDAC(short *buf,
|
BDACRenderer::WriteDAC(short *buf, int32 frames, audio_buffer_header *header)
|
||||||
int32 frames,
|
|
||||||
audio_buffer_header *header)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
@@ -294,9 +287,8 @@ BDACRenderer::MixOutput(short *dst)
|
|||||||
* public BAudioFileStream
|
* public BAudioFileStream
|
||||||
*************************************************************/
|
*************************************************************/
|
||||||
|
|
||||||
BAudioFileStream::BAudioFileStream(BMediaChannel *channel,
|
BAudioFileStream::BAudioFileStream(BMediaChannel *channel, BFile *file,
|
||||||
BFile *file,
|
mk_time start)
|
||||||
mk_time start)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
}
|
}
|
||||||
@@ -317,8 +309,7 @@ BAudioFileStream::GetEvent(BMediaChannel *channel)
|
|||||||
|
|
||||||
|
|
||||||
BMediaEvent *
|
BMediaEvent *
|
||||||
BAudioFileStream::PeekEvent(BMediaChannel *channel,
|
BAudioFileStream::PeekEvent(BMediaChannel *channel, mk_time asap)
|
||||||
mk_time asap)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -326,8 +317,7 @@ BAudioFileStream::PeekEvent(BMediaChannel *channel,
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
BAudioFileStream::SeekToTime(BMediaChannel *channel,
|
BAudioFileStream::SeekToTime(BMediaChannel *channel, mk_time time)
|
||||||
mk_time time)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
@@ -362,8 +352,7 @@ BAudioFileStream::Channel()
|
|||||||
* public BADCSource
|
* public BADCSource
|
||||||
*************************************************************/
|
*************************************************************/
|
||||||
|
|
||||||
BADCSource::BADCSource(BMediaChannel *channel,
|
BADCSource::BADCSource(BMediaChannel *channel, mk_time start)
|
||||||
mk_time start)
|
|
||||||
:
|
:
|
||||||
fEventLock("BADCSource lock")
|
fEventLock("BADCSource lock")
|
||||||
{
|
{
|
||||||
@@ -386,8 +375,7 @@ BADCSource::GetEvent(BMediaChannel *channel)
|
|||||||
|
|
||||||
|
|
||||||
BMediaEvent *
|
BMediaEvent *
|
||||||
BADCSource::PeekEvent(BMediaChannel *channel,
|
BADCSource::PeekEvent(BMediaChannel *channel, mk_time asap)
|
||||||
mk_time asap)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -395,8 +383,7 @@ BADCSource::PeekEvent(BMediaChannel *channel,
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
BADCSource::SeekToTime(BMediaChannel *channel,
|
BADCSource::SeekToTime(BMediaChannel *channel, mk_time time)
|
||||||
mk_time time)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
@@ -423,10 +410,7 @@ BADCSource::Channel()
|
|||||||
*************************************************************/
|
*************************************************************/
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BADCSource::_ReadADC(void *arg,
|
BADCSource::_ReadADC(void *arg, char *buf, uint32 bytes, void *header)
|
||||||
char *buf,
|
|
||||||
uint32 bytes,
|
|
||||||
void *header)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
@@ -435,9 +419,7 @@ BADCSource::_ReadADC(void *arg,
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BADCSource::ReadADC(short *buf,
|
BADCSource::ReadADC(short *buf, int32 frames, audio_buffer_header *header)
|
||||||
int32 frames,
|
|
||||||
audio_buffer_header *header)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,10 +11,11 @@
|
|||||||
#ifndef _AUDIO_MODULE_H
|
#ifndef _AUDIO_MODULE_H
|
||||||
#define _AUDIO_MODULE_H
|
#define _AUDIO_MODULE_H
|
||||||
|
|
||||||
#include <OldMediaModule.h>
|
|
||||||
#include <OldMediaDefs.h>
|
|
||||||
#include <File.h>
|
#include <File.h>
|
||||||
|
|
||||||
|
#include "OldMediaModule.h"
|
||||||
|
#include "OldMediaDefs.h"
|
||||||
|
|
||||||
class BADCStream;
|
class BADCStream;
|
||||||
class BDACStream;
|
class BDACStream;
|
||||||
class BSubscriber;
|
class BSubscriber;
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
/***********************************************************************
|
/*
|
||||||
* AUTHOR: Marcus Overhagen
|
* Copyright 2002, Marcus Overhagen. All Rights Reserved.
|
||||||
* FILE: OldAudioStream.cpp
|
* Distributed under the terms of the MIT License.
|
||||||
* DESCR:
|
*/
|
||||||
***********************************************************************/
|
|
||||||
#include <OldAudioStream.h>
|
|
||||||
#include "debug.h"
|
#include "OldAudioStream.h"
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* public BADCStream
|
* public BADCStream
|
||||||
|
|||||||
@@ -8,9 +8,11 @@
|
|||||||
#ifndef _AUDIO_STREAM_H
|
#ifndef _AUDIO_STREAM_H
|
||||||
#define _AUDIO_STREAM_H
|
#define _AUDIO_STREAM_H
|
||||||
|
|
||||||
#include <OldBufferStream.h>
|
|
||||||
#include <ClassInfo.h>
|
#include <ClassInfo.h>
|
||||||
|
|
||||||
|
#include "OldBufferStream.h"
|
||||||
|
|
||||||
|
|
||||||
/* ================
|
/* ================
|
||||||
Class definition for BADCStream and BDACStream
|
Class definition for BADCStream and BDACStream
|
||||||
@@ -69,7 +71,7 @@ public:
|
|||||||
float *l_volume,
|
float *l_volume,
|
||||||
float *r_volume,
|
float *r_volume,
|
||||||
bool *enabled) const;
|
bool *enabled) const;
|
||||||
|
|
||||||
status_t EnableDevice(int32 device, bool enable);
|
status_t EnableDevice(int32 device, bool enable);
|
||||||
bool IsDeviceEnabled(int32 device) const;
|
bool IsDeviceEnabled(int32 device) const;
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
/***********************************************************************
|
/*
|
||||||
* AUTHOR: Marcus Overhagen
|
* Copyright 2002, Marcus Overhagen. All Rights Reserved.
|
||||||
* FILE: OldBufferStream.cpp
|
* Distributed under the terms of the MIT License.
|
||||||
* DESCR:
|
*/
|
||||||
***********************************************************************/
|
|
||||||
#include <OldBufferStream.h>
|
|
||||||
#include "debug.h"
|
#include "OldBufferStream.h"
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
|
#include <new>
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* public BAbstractBufferStream
|
* public BAbstractBufferStream
|
||||||
@@ -36,7 +40,7 @@ BAbstractBufferStream::SetStreamBuffers(size_t bufferSize,
|
|||||||
|
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
BAbstractBufferStream::StartStreaming()
|
BAbstractBufferStream::StartStreaming()
|
||||||
@@ -181,8 +185,7 @@ BBufferStream::operator new(size_t size)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BBufferStream::operator delete(void *stream,
|
BBufferStream::operator delete(void *stream, size_t size)
|
||||||
size_t size)
|
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
/***********************************************************************
|
/*
|
||||||
* AUTHOR: Marcus Overhagen
|
* Copyright 2002, Marcus Overhagen. All Rights Reserved.
|
||||||
* FILE: OldBufferStreamManager.cpp
|
* Distributed under the terms of the MIT License.
|
||||||
* DESCR:
|
*/
|
||||||
***********************************************************************/
|
|
||||||
#include <OldBufferStreamManager.h>
|
|
||||||
#include "debug.h"
|
#include "OldBufferStreamManager.h"
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* public BBufferStreamManager
|
* public BBufferStreamManager
|
||||||
|
|||||||
@@ -8,12 +8,14 @@
|
|||||||
#ifndef _BUFFER_STREAM_MANAGER_H
|
#ifndef _BUFFER_STREAM_MANAGER_H
|
||||||
#define _BUFFER_STREAM_MANAGER_H
|
#define _BUFFER_STREAM_MANAGER_H
|
||||||
|
|
||||||
#include <OldBufferStream.h>
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
#include <ClassInfo.h>
|
#include <ClassInfo.h>
|
||||||
#include <Locker.h>
|
#include <Locker.h>
|
||||||
|
|
||||||
|
#include "OldBufferStream.h"
|
||||||
|
|
||||||
|
|
||||||
/* ================
|
/* ================
|
||||||
Local Declarations
|
Local Declarations
|
||||||
@@ -57,7 +59,7 @@ public:
|
|||||||
/* Get or set the minimum delay between sending out successive buffers.
|
/* Get or set the minimum delay between sending out successive buffers.
|
||||||
* Although the StreamManager automatically shuts down when there
|
* Although the StreamManager automatically shuts down when there
|
||||||
* are no more subscribers, setting the minumum delay can prevent
|
* are no more subscribers, setting the minumum delay can prevent
|
||||||
* prevent runaway streams. A zero or negative value means no
|
* prevent runaway streams. A zero or negative value means no
|
||||||
* delay.
|
* delay.
|
||||||
*/
|
*/
|
||||||
bigtime_t BufferDelay() const;
|
bigtime_t BufferDelay() const;
|
||||||
@@ -68,7 +70,7 @@ public:
|
|||||||
* will go hunting for it. When it finds the offending subscriber,
|
* will go hunting for it. When it finds the offending subscriber,
|
||||||
* it will be removed from the chain with impunity.
|
* it will be removed from the chain with impunity.
|
||||||
*
|
*
|
||||||
* The default is B_DEFAULT_TIMEOUT. Setting the timeout to 0 or a
|
* The default is B_DEFAULT_TIMEOUT. Setting the timeout to 0 or a
|
||||||
* negative number will disable this.
|
* negative number will disable this.
|
||||||
*/
|
*/
|
||||||
bigtime_t Timeout() const;
|
bigtime_t Timeout() const;
|
||||||
@@ -93,17 +95,17 @@ public:
|
|||||||
stream_state Stop();
|
stream_state Stop();
|
||||||
|
|
||||||
/* Set the desired state to B_IDLE. The processing thread will
|
/* Set the desired state to B_IDLE. The processing thread will
|
||||||
* stop immediately and all buffers will be "reclaimed" back
|
* stop immediately and all buffers will be "reclaimed" back
|
||||||
* to the StreamManager.
|
* to the StreamManager.
|
||||||
*/
|
*/
|
||||||
stream_state Abort();
|
stream_state Abort();
|
||||||
|
|
||||||
/* Return the current state of the stream (B_RUNNING, B_STOPPING, or B_IDLE).
|
/* Return the current state of the stream (B_RUNNING, B_STOPPING, or B_IDLE).
|
||||||
*/
|
*/
|
||||||
stream_state State() const;
|
stream_state State() const;
|
||||||
|
|
||||||
/* When NotificationPort is set, the receiver will get a message
|
/* When NotificationPort is set, the receiver will get a message
|
||||||
* whenever the state of the StreamManager changes. The msg_id of the
|
* whenever the state of the StreamManager changes. The msg_id of the
|
||||||
* message will be the new state of the StreamManager.
|
* message will be the new state of the StreamManager.
|
||||||
*/
|
*/
|
||||||
port_id NotificationPort() const;
|
port_id NotificationPort() const;
|
||||||
@@ -130,7 +132,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
*
|
*
|
||||||
* The processing thread. This thread waits to acquire a Buffer
|
* The processing thread. This thread waits to acquire a Buffer
|
||||||
* (or for the timeout to expire) and takes appropriate action.
|
* (or for the timeout to expire) and takes appropriate action.
|
||||||
*/
|
*/
|
||||||
@@ -147,7 +149,7 @@ protected:
|
|||||||
*/
|
*/
|
||||||
virtual void SetState(stream_state newState);
|
virtual void SetState(stream_state newState);
|
||||||
|
|
||||||
/* Snooze until the desired time arrives. Returns the
|
/* Snooze until the desired time arrives. Returns the
|
||||||
* current time upon returning.
|
* current time upon returning.
|
||||||
*/
|
*/
|
||||||
bigtime_t SnoozeUntil(bigtime_t sys_time);
|
bigtime_t SnoozeUntil(bigtime_t sys_time);
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
/***********************************************************************
|
/*
|
||||||
* AUTHOR: Marcus Overhagen
|
* Copyright 2002, Marcus Overhagen. All Rights Reserved.
|
||||||
* FILE: OldMediaModule.cpp
|
* Distributed under the terms of the MIT License.
|
||||||
* DESCR:
|
*/
|
||||||
***********************************************************************/
|
|
||||||
#include <OldMediaModule.h>
|
|
||||||
#include "debug.h"
|
#include "OldMediaModule.h"
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* public BMediaEvent
|
* public BMediaEvent
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
/***********************************************************************
|
/*
|
||||||
* AUTHOR: Marcus Overhagen
|
* Copyright 2002, Marcus Overhagen. All Rights Reserved.
|
||||||
* FILE: OldSubscriber.cpp
|
* Distributed under the terms of the MIT License.
|
||||||
* DESCR:
|
*/
|
||||||
***********************************************************************/
|
|
||||||
#include <OldSubscriber.h>
|
|
||||||
|
#include "OldSubscriber.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* public BSubscriber
|
* public BSubscriber
|
||||||
*************************************************************/
|
*************************************************************/
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
|
|
||||||
#include <MediaDefs.h>
|
#include <MediaDefs.h>
|
||||||
#include <ClassInfo.h>
|
#include <ClassInfo.h>
|
||||||
#include <OldBufferStream.h>
|
|
||||||
|
#include "OldBufferStream.h"
|
||||||
|
|
||||||
/* ================
|
/* ================
|
||||||
declarations
|
declarations
|
||||||
|
|||||||
Reference in New Issue
Block a user