root/branches/libfreebob-2.0/src/libstreaming/freebob_streaming.c

Revision 199, 3.1 kB (checked in by pieterpalmers, 16 years ago)

- start of a new streaming API implementation, C++ based

Line 
1 /* $Id$ */
2
3 /*
4  *   FreeBob Streaming API
5  *   FreeBob = Firewire (pro-)audio for linux
6  *
7  *   http://freebob.sf.net
8  *
9  *   Copyright (C) 2005,2006 Pieter Palmers <pieterpalmers@users.sourceforge.net>
10  *
11  *   This program is free software {} you can redistribute it and/or modify
12  *   it under the terms of the GNU General Public License as published by
13  *   the Free Software Foundation {} either version 2 of the License, or
14  *   (at your option) any later version.
15  *
16  *   This program is distributed in the hope that it will be useful,
17  *   but WITHOUT ANY WARRANTY {} without even the implied warranty of
18  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *   GNU General Public License for more details.
20  *
21  *   You should have received a copy of the GNU General Public License
22  *   along with this program {} if not, write to the Free Software
23  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  *
25  *
26  *
27  */
28
29 /* freebob_streaming.c
30  *
31  * Implementation of the FreeBob Streaming API
32  *
33  */
34
35 #include "libfreebob/freebob_streaming.h"
36 #include "messagebuffer.h"
37
38 freebob_device_t *freebob_streaming_init (freebob_device_info_t *device_info, freebob_options_t options) {
39         freebob_messagebuffer_init();
40
41         return NULL;
42
43 }
44
45 void freebob_streaming_finish(freebob_device_t *dev) {
46
47         freebob_messagebuffer_exit();
48        
49         return;
50 }
51
52 int freebob_streaming_get_nb_capture_streams(freebob_device_t *dev) {
53         return 0;
54 }
55
56 int freebob_streaming_get_nb_playback_streams(freebob_device_t *dev) {
57         return 0;
58 }
59
60 int freebob_streaming_get_capture_stream_name(freebob_device_t *dev, int i, char* buffer, size_t buffersize) {
61         return -1;
62 }
63
64 int freebob_streaming_get_playback_stream_name(freebob_device_t *dev, int i, char* buffer, size_t buffersize) {
65         return -1;
66 }
67
68 freebob_streaming_stream_type freebob_streaming_get_capture_stream_type(freebob_device_t *dev, int i) {
69         return freebob_stream_type_invalid;
70 }
71
72 freebob_streaming_stream_type freebob_streaming_get_playback_stream_type(freebob_device_t *dev, int i) {
73         return freebob_stream_type_invalid;
74 }
75
76 int freebob_streaming_set_capture_stream_buffer(freebob_device_t *dev, int i, char *buff,  freebob_streaming_buffer_type t) {
77         return -1;
78 }
79
80 int freebob_streaming_set_playback_stream_buffer(freebob_device_t *dev, int i, char *buff,  freebob_streaming_buffer_type t) {
81         return -1;
82 }
83
84 int freebob_streaming_start(freebob_device_t *dev) {
85         return 0;
86 }
87
88 int freebob_streaming_stop(freebob_device_t *dev) {
89         return 0;
90 }
91
92 int freebob_streaming_reset(freebob_device_t *dev) {
93         return 0;
94 }
95
96 int freebob_streaming_wait(freebob_device_t *dev) {
97         return 0;
98 }
99
100 int freebob_streaming_transfer_capture_buffers(freebob_device_t *dev) {
101         return 0;
102 }
103
104 int freebob_streaming_transfer_playback_buffers(freebob_device_t *dev) {
105         return 0;
106 }
107
108 int freebob_streaming_transfer_buffers(freebob_device_t *dev) {
109         return 0;
110        
111 }
112
113
114 int freebob_streaming_write(freebob_device_t *dev, int i, freebob_sample_t *buffer, int nsamples) {
115         return 0;
116 }
117
118 int freebob_streaming_read(freebob_device_t *dev, int i, freebob_sample_t *buffer, int nsamples) {
119         return 0;
120 }
121
122 pthread_t freebob_streaming_get_packetizer_thread(freebob_device_t *dev) {
123         return 0;
124 }
125
126
Note: See TracBrowser for help on using the browser.