Mercurial > libavformat.hg
comparison beosaudio.cpp @ 2534:bbfeec27c98c libavformat
Separate audio_(de)muxer into oss_(de)muxer and audio_beos_(de)muxer
| author | ramiro |
|---|---|
| date | Fri, 07 Sep 2007 13:43:40 +0000 |
| parents | 62792a60f740 |
| children | 2ede5472f331 |
comparison
equal
deleted
inserted
replaced
| 2533:5f44093c0cdc | 2534:bbfeec27c98c |
|---|---|
| 419 | 419 |
| 420 audio_close(s); | 420 audio_close(s); |
| 421 return 0; | 421 return 0; |
| 422 } | 422 } |
| 423 | 423 |
| 424 static AVInputFormat audio_demuxer = { | 424 static AVInputFormat audio_beos_demuxer = { |
| 425 "audio_device", | 425 "audio_device", |
| 426 "audio grab and output", | 426 "audio grab and output", |
| 427 sizeof(AudioData), | 427 sizeof(AudioData), |
| 428 NULL, | 428 NULL, |
| 429 audio_read_header, | 429 audio_read_header, |
| 431 audio_read_close, | 431 audio_read_close, |
| 432 NULL, | 432 NULL, |
| 433 AVFMT_NOFILE, | 433 AVFMT_NOFILE, |
| 434 }; | 434 }; |
| 435 | 435 |
| 436 AVOutputFormat audio_muxer = { | 436 AVOutputFormat audio_beos_muxer = { |
| 437 "audio_device", | 437 "audio_device", |
| 438 "audio grab and output", | 438 "audio grab and output", |
| 439 "", | 439 "", |
| 440 "", | 440 "", |
| 441 sizeof(AudioData), | 441 sizeof(AudioData), |
| 454 extern "C" { | 454 extern "C" { |
| 455 | 455 |
| 456 int audio_init(void) | 456 int audio_init(void) |
| 457 { | 457 { |
| 458 main_thid = find_thread(NULL); | 458 main_thid = find_thread(NULL); |
| 459 av_register_input_format(&audio_demuxer); | 459 av_register_input_format(&audio_beos_demuxer); |
| 460 av_register_output_format(&audio_muxer); | 460 av_register_output_format(&audio_beos_muxer); |
| 461 return 0; | 461 return 0; |
| 462 } | 462 } |
| 463 | 463 |
| 464 } // "C" | 464 } // "C" |
| 465 | 465 |
