Changeset 169:14a46c3d94cc
- Timestamp:
- 07/13/07 17:17:26
(1 year ago)
- Author:
- vadim@jumbol
- Message:
implement nonblocking mode for oss
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r148 |
r169 |
|
| 18 | 18 | BoolOption('portaudio_oss', "Build PortAudio/OSS", False), |
|---|
| 19 | 19 | BoolOption('portaudio_dsound', "Build PortAudio/DirectSound support", False), |
|---|
| | 20 | BoolOption('oss_nonblock', "Use NON BLOCKING mode with OSS dirvers", True), |
|---|
| 20 | 21 | BoolOption('speex', "Build speex codec", False), |
|---|
| 21 | 22 | BoolOption('speexwb_replaces_amrwb', "if set replace negotiated AMR-WB payload by SPEEX WB", False), |
|---|
| r119 |
r169 |
|
| 82 | 82 | |
|---|
| 83 | 83 | |
|---|
| 84 | | env.Append(CPPPATH = include_path, CPPDEFINES = defines) |
|---|
| | 84 | env.Append(CPPPATH = include_path, CPPDEFINES = defines.items()) |
|---|
| 85 | 85 | BJ.Use(env, libs) |
|---|
| 86 | 86 | |
|---|
| r110 |
r169 |
|
| 73 | 73 | |
|---|
| 74 | 74 | |
|---|
| 75 | | env.Append(CCFLAGS = cc_flags, LINKFLAGS = link_flags, CPPDEFINES = defines, CPPPATH = includes) |
|---|
| | 75 | env.Append(CCFLAGS = cc_flags, LINKFLAGS = link_flags, CPPDEFINES = defines.items(), CPPPATH = includes) |
|---|
| 76 | 76 | print 'CCFLAGS', env['CCFLAGS'] |
|---|
| 77 | 77 | |
|---|
| r149 |
r169 |
|
| 154 | 154 | defines['PH_FORCE_16KHZ'] = 1 |
|---|
| 155 | 155 | |
|---|
| | 156 | if env['oss_nonblock']: |
|---|
| | 157 | defines['PH_OSS_NONBLOCK'] = 1 |
|---|
| | 158 | |
|---|
| 156 | 159 | |
|---|
| 157 | 160 | |
|---|
| r0 |
r169 |
|
| 171 | 171 | |
|---|
| 172 | 172 | |
|---|
| 173 | | |
|---|
| | 173 | #ifndef PH_OSS_NONBLOCK |
|---|
| 174 | 174 | fcntl(fd, F_SETFL, fcntl(fd, F_GETFL)&~O_NONBLOCK); |
|---|
| | 175 | #endif |
|---|
| 175 | 176 | |
|---|
| 176 | 177 | |
|---|