Lines Matching refs:stream
22 the input stream is pointed to by "samples", and the current output stream
72 /* Create a sonic stream. Return NULL only if we are out of memory and cannot
73 allocate the stream. Set numChannels to 1 for mono, and 2 for stereo. */
75 /* Destroy the sonic stream. */
76 void sonicDestroyStream(sonicStream stream);
77 /* Use this to write floating point data to be speed up or down into the stream.
79 int sonicWriteFloatToStream(sonicStream stream, float *samples, int numSamples);
80 /* Use this to write 16-bit data to be speed up or down into the stream.
82 int sonicWriteShortToStream(sonicStream stream, short *samples, int numSamples);
83 /* Use this to write 8-bit unsigned data to be speed up or down into the stream.
85 int sonicWriteUnsignedCharToStream(sonicStream stream, unsigned char *samples, int numSamples);
86 /* Use this to read floating point data out of the stream. Sometimes no data
88 int sonicReadFloatFromStream(sonicStream stream, float *samples, int maxSamples);
89 /* Use this to read 16-bit data out of the stream. Sometimes no data will
91 int sonicReadShortFromStream(sonicStream stream, short *samples, int maxSamples);
92 /* Use this to read 8-bit unsigned data out of the stream. Sometimes no data will
94 int sonicReadUnsignedCharFromStream(sonicStream stream, unsigned char *samples, int maxSamples);
95 /* Force the sonic stream to generate output using whatever data it currently
98 int sonicFlushStream(sonicStream stream);
100 int sonicSamplesAvailable(sonicStream stream);
101 /* Get the speed of the stream. */
102 float sonicGetSpeed(sonicStream stream);
103 /* Set the speed of the stream. */
104 void sonicSetSpeed(sonicStream stream, float speed);
105 /* Get the pitch of the stream. */
106 float sonicGetPitch(sonicStream stream);
107 /* Set the pitch of the stream. */
108 void sonicSetPitch(sonicStream stream, float pitch);
109 /* Get the rate of the stream. */
110 float sonicGetRate(sonicStream stream);
111 /* Set the rate of the stream. */
112 void sonicSetRate(sonicStream stream, float rate);
113 /* Get the scaling factor of the stream. */
114 float sonicGetVolume(sonicStream stream);
115 /* Set the scaling factor of the stream. */
116 void sonicSetVolume(sonicStream stream, float volume);
118 int sonicGetChordPitch(sonicStream stream);
121 void sonicSetChordPitch(sonicStream stream, int useChordPitch);
123 int sonicGetQuality(sonicStream stream);
125 void sonicSetQuality(sonicStream stream, int quality);
126 /* Get the sample rate of the stream. */
127 int sonicGetSampleRate(sonicStream stream);
128 /* Set the sample rate of the stream. This will drop any samples that have not been read. */
129 void sonicSetSampleRate(sonicStream stream, int sampleRate);
131 int sonicGetNumChannels(sonicStream stream);
133 void sonicSetNumChannels(sonicStream stream, int numChannels);
134 /* This is a non-stream oriented interface to just change the speed of a sound
139 /* This is a non-stream oriented interface to just change the speed of a sound