---
name: "snd_pcm_new_stream"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_pcm_new_stream"
---

# snd\_pcm\_new\_stream(9)

create a new PCM stream

## NAME

snd\_pcm\_new\_stream - create a new PCM stream

## SYNOPSIS

**int snd\_pcm\_new\_stream(struct snd\_pcm \*** *pcm***, int** *stream***, int** *substream\_count***);**

## ARGUMENTS

*pcm*

the pcm instance

*stream*

the stream direction, SNDRV\_PCM\_STREAM\_XXX

*substream\_count*

the number of substreams

## DESCRIPTION

Creates a new stream for the pcm. The corresponding stream on the pcm must have been empty before calling this, i.e. zero must be given to the argument of **snd\_pcm\_new**.

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
