> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetShapePcmLoopStartOrWritePointer

> GetShapePcmLoopStartOrWritePointer

# GetShapePcmLoopStartOrWritePointer

Obtiene el inicio de bucle para búferes lineales o un puntero de escritura para búferes circulares.

## Sintaxis

```cpp theme={null}
UINT32 GetShapePcmLoopStartOrWritePointer(  
         const SHAPE_PCM_CONTEXT* context  
)  
```

### Parámetros

*context*   \_In\_\
Tipo: [SHAPE\_PCM\_CONTEXT\*](/reference/audio/shapepcmcontext/structs/shape_pcm_context)

Puntero a una estructura [SHAPE\_PCM\_CONTEXT](/reference/audio/shapepcmcontext/structs/shape_pcm_context).

### Valor devuelto

Tipo: UINT32

El inicio del bucle o un puntero de escritura.

## Comentarios

| Función                       | Descripción                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| PCM lineal sin bucle          | Inicie la voz con la constante `SHAPE_SRC_COMMAND_TYPE_START` del convertidor de frecuencia de muestreo (SRC). Deje que la voz se reproduzca hasta el final o, si lo desea, deténgala antes del final con la constante `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE`. Para obtener más información, consulte la enumeración [SHAPE\_SRC\_COMMAND\_TYPE](/reference/audio/shapesrccontext/enums/shape_src_command_type).                                            |
| PCM lineal con bucle infinito | Establezca el recuento de bucles *loopCount* del contexto de modulación por impulsos codificados (PCM) en la constante `SHAPE_PCM_INFINITE_LOOP_COUNT`. Inicie la voz con `SHAPE_SRC_COMMAND_TYPE_START` para el SRC. Deje que la voz se reproduzca hasta que quiera detenerla, ya sea al final de un bucle con `SHAPE_SRC_COMMAND_TYPE_STOP_END`, dejando que la voz termine de reproducirse, o inmediatamente con `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE`. |
| PCM lineal con bucle finito   | Establezca el recuento de bucles *loopCount* del contexto PCM en \[0, 254]. Inicie la voz con `SHAPE_SRC_COMMAND_TYPE_START` para el SRC. Deje que la voz se reproduzca hasta el final o, si lo desea, deténgala al final de un bucle con `SHAPE_SRC_COMMAND_TYPE_STOP_END` y deje que la voz termine de reproducirse, o deténgala inmediatamente con `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE`.                                                               |
| PCM circular                  | Inicie la voz con `SHAPE_SRC_COMMAND_TYPE_START` para el SRC. Siga transmitiendo datos y actualizando el puntero de escritura del contexto PCM hasta que quiera detenerla. Use `SHAPE_SRC_COMMAND_TYPE_STOP_END` para dejar que el SRC reproduzca hasta el puntero de escritura PCM actual `loopStartWritePointer`, o `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE` para detenerla inmediatamente.                                                                 |

## Requisitos

**Encabezado:** shapepcmcontext.h

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[Información general sobre ACP](/build/console-features/audio/overviews/acp-overview)\
[Información general de Shape](/build/console-features/audio/overviews/shape-overview)\
[shapepcmcontext](/reference/audio/shapepcmcontext/shapepcmcontext_members)


## Related topics

- [ShapePcmContext](/es/reference/audio/shapepcmcontext/shapepcmcontext_members.md)
- [SetShapePcmLoopStartOrWritePointer](/es/reference/audio/shapepcmcontext/functions/setshapepcmloopstartorwritepointer.md)
- [SHAPE_PCM_CONTEXT](/es/reference/audio/shapepcmcontext/structs/shape_pcm_context.md)
- [GetShapePcmLoopCount](/es/reference/audio/shapepcmcontext/functions/getshapepcmloopcount.md)
- [GetShapePcmLoopEnd](/es/reference/audio/shapepcmcontext/functions/getshapepcmloopend.md)
