Changeset 4363:e90f4a304e99 in roaraudio for roard
- Timestamp:
- 09/14/10 17:52:08 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/hwmixer.c
r4361 r4363 29 29 #define FLAG_FHSEC 0x0001 30 30 31 struct hwmixer;32 33 struct hwmixer_stream {34 struct hwmixer * hwmixer;35 int basestream;36 int stream;37 void * baseud;38 void * ud;39 };40 41 31 struct hwmixer { 42 32 const char * name; … … 55 45 {"oss", "OSS Mixer", "/dev/mixer*", FLAG_FHSEC, NULL, NULL, NULL, NULL}, 56 46 {"file", "Write to plain file", "/some/file", FLAG_FHSEC, NULL, NULL, NULL, NULL}, 57 {"dstr", "Write to DSTR", "/some/file", FLAG_NONE, NULL, NULL, NULL, NULL},47 {"dstr", "Write to DSTR", "/some/file", FLAG_NONE, hwmixer_dstr_open, hwmixer_dstr_close, hwmixer_dstr_set_vol, NULL}, 58 48 {"null", "Null Mixer", NULL, FLAG_NONE, __true, __true, __true, __true}, 59 49 {NULL, NULL, NULL, FLAG_NONE, NULL, NULL, NULL, NULL} … … 135 125 } 136 126 127 hwmixer_setup_info(stream); 128 137 129 ret = mixer->open(stream, drv, dev, fh, basename, subnamekv, subnamekvlen); 138 130 … … 141 133 return -1; 142 134 } 143 144 hwmixer_setup_info(stream);145 135 146 136 streams_set_mixerstream(basestream, stream); -
roard/include/hwmixer.h
r4362 r4363 29 29 #include <roaraudio.h> 30 30 31 struct hwmixer_stream; 31 struct hwmixer; 32 33 struct hwmixer_stream { 34 struct hwmixer * hwmixer; 35 int basestream; 36 int stream; 37 void * baseud; 38 void * ud; 39 }; 32 40 33 41 void print_hwmixerlist (void);
Note: See TracChangeset
for help on using the changeset viewer.