From: Jaroslav Kysela Date: Mon, 31 Aug 1998 14:21:06 +0000 (+0000) Subject: New docs.. X-Git-Tag: v1.0.3~1587 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=82fc81e31e76c13271a189cfdca9a23d004de29c;p=alsa-lib.git New docs.. --- diff --git a/doc/soundapi-3.html b/doc/soundapi-3.html index 0f218b0e..47daa30d 100644 --- a/doc/soundapi-3.html +++ b/doc/soundapi-3.html @@ -134,11 +134,11 @@ int card = 0, err; void *handle; stuct snd_ctl_hw_info info; -if ( (err = snd_ctl_open( &handle, card )) < 0 ) { +if ( (err = snd_ctl_open( &handle, card )) < 0 ) { fprintf( stderr, "open failed: %s\n", snd_strerror( err ) ); return; } -if ( (err = snd_ctl_hw_info( handle, &info )) < 0 ) { +if ( (err = snd_ctl_hw_info( handle, &info )) < 0 ) { fprintf( stderr, "hw info failed: %s\n", snd_strerror( err ) ); snd_ctl_close( handle ); return; diff --git a/doc/soundapi-4.html b/doc/soundapi-4.html index b458b8f3..719315e7 100644 --- a/doc/soundapi-4.html +++ b/doc/soundapi-4.html @@ -228,11 +228,11 @@ void *handle; snd_mixer_info_t info; snd_mixer_channel_t channel; -if ( (err = snd_mixer_open( &handle, card, device )) < 0 ) { +if ( (err = snd_mixer_open( &handle, card, device )) < 0 ) { fprintf( stderr, "open failed: %s\n", snd_strerror( err ) ); return; } -if ( (err = snd_mixer_info( handle, &info )) < 0 ) { +if ( (err = snd_mixer_info( handle, &info )) < 0 ) { fprintf( stderr, "info failed: %s\n", snd_strerror( err ) ); snd_mixer_close( handle ); return; @@ -241,13 +241,13 @@ printf( "Installed MIXER channels for card #i and device %i: %i\n", card + 1, device, info.channels ); master = snd_mixer_channel( handle, SND_MIXER_ID_MASTER ); if ( master >= 0 ) { - if ( (err = snd_mixer_read( handle, master, &channel )) < 0 ) { + if ( (err = snd_mixer_read( handle, master, &channel )) < 0 ) { fprintf( stderr, "master read failed: %s\n", snd_strerror( err ) ); snd_mixer_close( handle ); return; } channel -> left = channel -> right = 50; - if ( (err = snd_mixer_write( handle, master, &channel )) < 0 ) { + if ( (err = snd_mixer_write( handle, master, &channel )) < 0 ) { fprintf( stderr, "master write failed: %s\n", snd_strerror( err ) ); snd_mixer_close( handle ); return; diff --git a/doc/soundapi-5.html b/doc/soundapi-5.html index 83ce1352..0701b7df 100644 --- a/doc/soundapi-5.html +++ b/doc/soundapi-5.html @@ -394,7 +394,7 @@ should not be equal to count.

of snd_pcm_playback_status.

time

Delay till played of the first sample from next write. This value should be used for time synchronization. Returned value is in the same format as -returned from the standard C function gettimeofday( &time, NULL ). +returned from the standard C function gettimeofday( &time, NULL ). This variable contains right value only if playback time mode is enabled (look to snd_pcm_playback_time function).

stime

Time when playback was started. @@ -434,7 +434,7 @@ should not be equal to count.

to snd_pcm_record_status.

time

Lag since the next sample read was recorded. This value should be used for time synchronization. Returned value is in the same format as returned by the -from standard C function gettimeofday( &time, NULL ). This +from standard C function gettimeofday( &time, NULL ). This variable contains right value only if record time mode is enabled (look to snd_pcm_record_time function).

stime

Time when record was started. This variable contains right value only if @@ -503,14 +503,14 @@ char *buffer; buffer = (char *)malloc( 512 * 1024 ); if ( !buffer ) return; -if ( (err = snd_pcm_open( &handle, card, device, SND_PCM_OPEN_PLAYBACK )) < 0 ) { +if ( (err = snd_pcm_open( &handle, card, device, SND_PCM_OPEN_PLAYBACK )) < 0 ) { fprintf( stderr, "open failed: %s\n", snd_strerror( err ) ); return; } format.format = SND_PCM_SFMT_MU_LAW; format.rate = 8000; format.channels = 1; -if ( (err = snd_pcm_playback_format( handle, &format )) < 0 ) { +if ( (err = snd_pcm_playback_format( handle, &format )) < 0 ) { fprintf( stderr, "format setup failed: %s\n", snd_strerror( err ) ); snd_pcm_close( handle ); return; @@ -534,7 +534,7 @@ if ( !memcmp( buffer, ".snd", 4 ) ) { if ( idx > 128 ) idx = 128; if ( idx > count ) idx = count; } -size = snd_pcm_write( handle, &buffer[ idx ], count - idx ); +size = snd_pcm_write( handle, &buffer[ idx ], count - idx ); printf( "Bytes written %i from %i...\n", size, count - idx ); snd_pcm_close( handle ); free( buffer );