| 1 | #include "bsettop_impl.h" |
|---|
| 2 | #include "bsettop.h" |
|---|
| 3 | |
|---|
| 4 | BDBG_MODULE(pcm_capture); |
|---|
| 5 | |
|---|
| 6 | /* |
|---|
| 7 | Summary: |
|---|
| 8 | Required to initialize the bpcm_capture_settings structure. |
|---|
| 9 | */ |
|---|
| 10 | void bpcm_capture_settings_init( |
|---|
| 11 | bpcm_capture_settings *settings, /* [out] */ |
|---|
| 12 | bpcm_capture_t pcmcapture /* required for possible resource-dependent defaults */ |
|---|
| 13 | ) |
|---|
| 14 | { |
|---|
| 15 | BSTD_UNUSED(settings); |
|---|
| 16 | BSTD_UNUSED(pcmcapture); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | /* |
|---|
| 20 | Summary: |
|---|
| 21 | Open a PCM capture channel. |
|---|
| 22 | */ |
|---|
| 23 | bpcm_capture_t bpcm_capture_open( |
|---|
| 24 | bobject_t id /* id corresponds to the pcm capture channel. */ |
|---|
| 25 | ) |
|---|
| 26 | { |
|---|
| 27 | BSTD_UNUSED(id); |
|---|
| 28 | (void)BSETTOP_ERROR(berr_not_supported); |
|---|
| 29 | return NULL; |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | /* |
|---|
| 33 | Summary: |
|---|
| 34 | Close a PCM capture channel. |
|---|
| 35 | Description: |
|---|
| 36 | Capture must already be stopped. |
|---|
| 37 | */ |
|---|
| 38 | void bpcm_capture_close( |
|---|
| 39 | bpcm_capture_t pcmcapture |
|---|
| 40 | ) |
|---|
| 41 | { |
|---|
| 42 | BSTD_UNUSED(pcmcapture); |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | /* |
|---|
| 46 | Summary: |
|---|
| 47 | Start capturing PCM audio. |
|---|
| 48 | */ |
|---|
| 49 | bresult bpcm_capture_start( |
|---|
| 50 | bpcm_capture_t pcmcapture, |
|---|
| 51 | bdisplay_t display, /* which output to capture from. */ |
|---|
| 52 | const bpcm_capture_settings *settings |
|---|
| 53 | ) |
|---|
| 54 | { |
|---|
| 55 | BSTD_UNUSED(pcmcapture); |
|---|
| 56 | BSTD_UNUSED(display); |
|---|
| 57 | BSTD_UNUSED(settings); |
|---|
| 58 | return BSETTOP_ERROR(berr_not_supported); |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | /** |
|---|
| 62 | Summary: |
|---|
| 63 | Get data available in the pcm capture buffer. |
|---|
| 64 | |
|---|
| 65 | Description: |
|---|
| 66 | This is a non-destructive call. You can call it as many times as you want. |
|---|
| 67 | After reading data from the buffer, you should call bpcm_capture_read_complete |
|---|
| 68 | to report how much of the buffer was consumed. |
|---|
| 69 | **/ |
|---|
| 70 | bresult bpcm_capture_get_buffer( |
|---|
| 71 | bpcm_capture_t pcmcapture, |
|---|
| 72 | void **data, |
|---|
| 73 | size_t *length |
|---|
| 74 | ) |
|---|
| 75 | { |
|---|
| 76 | BSTD_UNUSED(pcmcapture); |
|---|
| 77 | BSTD_UNUSED(data); |
|---|
| 78 | BSTD_UNUSED(length); |
|---|
| 79 | return BSETTOP_ERROR(berr_not_supported); |
|---|
| 80 | } |
|---|
| 81 | |
|---|
| 82 | /** |
|---|
| 83 | Summary: |
|---|
| 84 | **/ |
|---|
| 85 | bresult bpcm_capture_read_complete( |
|---|
| 86 | bpcm_capture_t pcmcapture, |
|---|
| 87 | size_t amount_read |
|---|
| 88 | ) |
|---|
| 89 | { |
|---|
| 90 | BSTD_UNUSED(pcmcapture); |
|---|
| 91 | BSTD_UNUSED(amount_read); |
|---|
| 92 | return BSETTOP_ERROR(berr_not_supported); |
|---|
| 93 | } |
|---|
| 94 | |
|---|
| 95 | /* |
|---|
| 96 | Summary: |
|---|
| 97 | Stop PCM capture |
|---|
| 98 | */ |
|---|
| 99 | bresult bpcm_capture_stop( |
|---|
| 100 | bpcm_capture_t pcmcapture |
|---|
| 101 | ) |
|---|
| 102 | { |
|---|
| 103 | BSTD_UNUSED(pcmcapture); |
|---|
| 104 | return BSETTOP_ERROR(berr_not_supported); |
|---|
| 105 | } |
|---|
| 106 | |
|---|