[go: up one dir, main page]

CN100442375C - Audio signal processing circuit capable of modifying digital audio signal - Google Patents

Audio signal processing circuit capable of modifying digital audio signal Download PDF

Info

Publication number
CN100442375C
CN100442375C CNB031044980A CN03104498A CN100442375C CN 100442375 C CN100442375 C CN 100442375C CN B031044980 A CNB031044980 A CN B031044980A CN 03104498 A CN03104498 A CN 03104498A CN 100442375 C CN100442375 C CN 100442375C
Authority
CN
China
Prior art keywords
bit stream
audio signal
circuit
data
digital
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB031044980A
Other languages
Chinese (zh)
Other versions
CN1523599A (en
Inventor
林宗瑶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MediaTek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MediaTek Inc filed Critical MediaTek Inc
Priority to CNB031044980A priority Critical patent/CN100442375C/en
Publication of CN1523599A publication Critical patent/CN1523599A/en
Application granted granted Critical
Publication of CN100442375C publication Critical patent/CN100442375C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

An audio signal processing circuit includes an analyzer, a bitstream buffer, an audio signal processor, a first buffer, an IEC burst circuit, and a digital interface. The audio signal processing circuit uses the analyzer to read out the data in the medium and temporarily store the data in the bitstream buffer. The audio signal processor includes a bitstream repair circuit for detecting the bitstream transmitted from the bitstream buffer and repairing the bitstream to conform to a predetermined standard. The modified data is buffered in the first buffer, and a burst preamble is added to the data stored in the first buffer before the data is output via the digital interface using the IEC burst circuit.

Description

可修改数字声频信号的声频信号处理电路 Audio signal processing circuit capable of modifying digital audio signal

技术领域technical field

本发明提供一种声频信号处理电路,尤其指一种可修改数字声频信号(digital audio signal)的声频信号处理电路。本发明的声频信号处理电路可以使用于光盘播放机中。The present invention provides an audio signal processing circuit, especially an audio signal processing circuit capable of modifying a digital audio signal. The audio signal processing circuit of the present invention can be used in CD players.

先前技术prior art

请参考图1,图1为IEC 60958的数据猝发(data-bursts)格式的示意图。IEC 61937为定义非线性脉冲码调制(pulse-code modulation,PCM)编码声频信号位流的接口规格,而该编码声频信号位流使用IEC 60958的规格。IEC 60958接口的格式是由一连串的IEC 60958子帧(subframe)所组成,每一个IEC 60958子帧通常用来运送非线性脉冲码调制样本,但也可能用来传输数据。每一子帧包含数据猝发以及填补。不同子帧中的数据猝发大小可能不同,而填补的作用即是为了维持每一子帧的大小为一特定值。每一个数据猝发由猝发前同步码(burst-preamble)之后接着猝发载量(burst-payload)组成,其中猝发前同步码包括Pa、Pb、Pc及Pd四个16位的字,Pa及Pb为同步字、Pc为猝发载量的相关数据,Pc为位流数目,而猝发载量的内容为编码声频信号帧的数据。Please refer to Figure 1, Figure 1 is a schematic diagram of the IEC 60958 data-bursts format. IEC 61937 is an interface specification for defining a non-linear pulse-code modulation (PCM) encoded audio signal bit stream, and the encoded audio signal bit stream uses the specification of IEC 60958. The format of the IEC 60958 interface is composed of a series of IEC 60958 subframes (subframes). Each IEC 60958 subframe is usually used to transport nonlinear pulse code modulation samples, but may also be used to transmit data. Each subframe contains a data burst and padding. The size of the data burst in different subframes may be different, and the function of padding is to maintain the size of each subframe at a specific value. Each data burst consists of a burst-preamble followed by a burst-payload, where the burst-preamble includes four 16-bit words Pa, Pb, Pc, and Pd, and Pa and Pb are The sync word, Pc is the relevant data of the burst capacity, Pc is the number of the bit stream, and the content of the burst capacity is the data of the coded audio signal frame.

请参考图2,图2为公知光盘播放机中声频信号处理电路10结构的示意图。声频信号处理电路10包含一分析器12,一位流缓冲器14,一声频信号处理器16,一第二缓冲器18,一数字/模拟转换器20,一IEC猝发电路22,以及一数字接口24。一光盘片26置入光盘播放机后,经过伺服器(未图示)读取数据,分析器12会将读出光盘片26中的数字数据暂存于位流缓冲器14,接着声频信号处理器16会将存储于位流缓冲器14中的数字数据解码成为脉冲码调制编码,并将解码后的脉冲码调制编码暂存于第二缓冲器18,最后由数字/模拟转换器20将存储于第二缓冲器18的脉冲码调制编码转换成模拟讯号作为输出。由于使用者可能不想使用本光盘播放机内部的声频信号处理电路,而希望使用更专业的解码/扩大机装置来做数字声频信号的处理,因此评价光盘播放机中的声频信号处理电路10除了提供上述的解码程序来播放光盘片26中的数字声频信号数据之外,也可以通过数字接口24连接至后级的解码/扩大机装置28。光盘播放机通过数字接口24将光盘播放机由光盘片26中所读出的数字声频信号数据不进行解码、改而转换成特定的数字声频信号格式(例如:IEC 61937/IEC 60958声频信号格式)之后,传输至光盘播放机外部的解码/扩大机装置28,以供解码/扩大机装置28对该数字数据进行处理。然而通过数字接口24传送于光盘播放机及解码/扩大机装置28之间的数据必须符合IEC 61937/IEC 60958的规格,否则解码/扩大机装置28便无法对该数字数据进行解码,所以使用数字接口24来连接光盘播放机及解码/扩大机装置28时,光盘片26中的数字数据会先由分析器12读出并暂存于位流缓冲器14,为使输出至数字接口24的数字数据成为IEC 60958的规格,在存储于位流缓冲器14中的数字数据传送至数字接口24之前,使用IEC猝发电路22将位流分成适当大小的猝发载量、加上猝发前同步码、再加上适当大小的填补,使原始的声频信号位流符合IEC 60958的规格,再将位流经由数字接口24输出至解码/扩大机装置28。Please refer to FIG. 2 . FIG. 2 is a schematic diagram of the structure of an audio signal processing circuit 10 in a conventional optical disc player. The audio signal processing circuit 10 includes an analyzer 12, a bit stream buffer 14, an audio signal processor 16, a second buffer 18, a digital/analog converter 20, an IEC burst circuit 22, and a digital interface twenty four. After an optical disc 26 is inserted into the optical disc player, the data is read by a server (not shown), and the analyzer 12 will temporarily store the digital data in the read optical disc 26 in the bit stream buffer 14, and then process the audio signal The device 16 will decode the digital data stored in the bit stream buffer 14 into a pulse code modulation code, and temporarily store the decoded pulse code modulation code in the second buffer 18, and finally store it in the digital/analog converter 20 The PCM encoded in the second buffer 18 is converted into an analog signal for output. Since the user may not want to use the audio signal processing circuit inside the CD player, but wants to use a more professional decoder/amplifier device to process the digital audio signal, the evaluation of the audio signal processing circuit 10 in the CD player not only provides In addition to playing the digital audio signal data in the optical disc 26 through the above-mentioned decoding program, it can also be connected to a subsequent decoder/amplifier device 28 through the digital interface 24 . The optical disc player converts the digital audio signal data read by the optical disc player from the optical disc 26 into a specific digital audio signal format (for example: IEC 61937/IEC 60958 audio signal format) through the digital interface 24 without decoding. Afterwards, the digital data is transmitted to the decoder/amplifier device 28 outside the CD player for the decoder/amplifier device 28 to process the digital data. However, the data transmitted between the optical disc player and the decoder/amplifier device 28 through the digital interface 24 must comply with the specifications of IEC 61937/IEC 60958, otherwise the decoder/amplifier device 28 cannot decode the digital data, so digital data is used. When the interface 24 is used to connect the optical disc player and the decoder/amplifier device 28, the digital data in the optical disc 26 will be read out by the analyzer 12 and temporarily stored in the bit stream buffer 14, so that the digital data output to the digital interface 24 The data becomes the specification of IEC 60958. Before the digital data stored in the bit stream buffer 14 is transmitted to the digital interface 24, the bit stream is divided into burst loads of appropriate size using the IEC burst circuit 22, a burst preamble is added, and then Add appropriate padding to make the original audio signal bit stream comply with the IEC 60958 specification, and then output the bit stream to the decoder/amplifier device 28 through the digital interface 24 .

由上述可知,声频信号处理电路10会先将由光盘片26中读出的数字数据暂存于位流缓冲器14之中,而存储于位流缓冲器14的数字数据由声频信号处理器16解码成脉冲码调制编码后暂存于第二缓冲器18,再使用数字/模拟转换器20将存储于第二缓冲器18中的脉冲码调制编码转换成模拟讯号输出。此外,光盘播放机也可以通过声频信号处理电路10内部的数字接口24连接解码/扩大机装置28,而存储于位流缓冲器14的数字数据经由IEC猝发电路22在每一批数据经过适当的处理转换成为IEC 60958的规格后,传送至数字接口24输出至解码/扩大机装置28进行解码及放大讯号。然而IEC猝发电路22仅是直接将存储于位流缓冲器14中的每一批数据做格式转换,并未检查数据本身的内容,因此不完全符合数字音乐规格的数据(例如:由欠佳的声频信号编码软件、硬件所编制而成的声频信号位流)也会同样的经由数字接口24输出至解码/扩大机装置28,造成解码/扩大装置28接收到含有不尽符合数字声频信号规格的数据时产生无法解码或爆音的现象。It can be seen from the above that the audio signal processing circuit 10 will first temporarily store the digital data read from the optical disc 26 in the bit stream buffer 14, and the digital data stored in the bit stream buffer 14 is decoded by the audio signal processor 16. After being coded by pulse code modulation, it is temporarily stored in the second buffer 18, and the digital/analog converter 20 is used to convert the code stored in the second buffer 18 into an analog signal for output. In addition, the optical disc player can also be connected to the decoder/amplifier device 28 through the digital interface 24 inside the audio signal processing circuit 10, and the digital data stored in the bit stream buffer 14 passes through the IEC burst circuit 22 after each batch of data passes through appropriate After the processing is converted into the IEC 60958 standard, it is sent to the digital interface 24 and output to the decoder/amplifier device 28 for decoding and amplifying the signal. However, the IEC burst circuit 22 only directly converts the format of each batch of data stored in the bit stream buffer 14, and does not check the content of the data itself, so the data that does not fully comply with the digital music specification (for example: caused by poor quality data) The audio signal bit stream compiled by the audio signal encoding software and hardware) will also be output to the decoding/amplifying device 28 via the digital interface 24, causing the decoding/amplifying device 28 to receive the audio signal that does not fully meet the digital audio signal specification. The phenomenon that the data cannot be decoded or the sound pops occurs.

其他相关的技术可以参考美国专利5,794,181、美国专利5,884,048、美国专利6,272,153、美国专利6,128,579、美国专利6,122,619。Other related technologies can refer to US Patent 5,794,181, US Patent 5,884,048, US Patent 6,272,153, US Patent 6,128,579, and US Patent 6,122,619.

发明内容Contents of the invention

因此本发明的主要目的是提供一种可修改数字声频信号的装置及方法,以解决上述问题。Therefore, the main object of the present invention is to provide an apparatus and method for modifying digital audio signals to solve the above problems.

本发明的较佳实施例中提供一种声频信号处理电路,其包括一分析器,用来读取媒体中的原始数据;一位流缓冲器,连接于该分析器,用来暂存该分析器所读取数据的位流;一声频信号处理器,连接于该位流缓冲器,该声频信号处理器包含一位流修复电路,用来检测由该位流缓冲器传来的位流并将其修复为符合一预定的标准规格;一第一缓冲器,连接于该声频信号处理器,用来暂存该位流修复电路修改后的位流;一IEC猝发电路,连接于该第一缓冲器,用来将位流分成适当大小的猝发载量、加上猝发前同步码、再加上适当大小的填补,使原始的声频信号位流符合IEC 60958的规格;以及一数字接口,连接于该IEC猝发电路用来输出由该IEC猝发电路传来的位流。A preferred embodiment of the present invention provides an audio signal processing circuit, which includes an analyzer for reading raw data in the medium; a bit stream buffer connected to the analyzer for temporarily storing the analysis The bit stream of the data read by the device; an audio signal processor is connected to the bit stream buffer, and the audio signal processor includes a bit stream repair circuit for detecting the bit stream transmitted from the bit stream buffer and Repairing it to meet a predetermined standard specification; a first buffer, connected to the audio signal processor, used to temporarily store the modified bit stream of the bit stream repairing circuit; an IEC burst circuit, connected to the first a buffer for dividing the bit stream into appropriately sized burst loads, adding burst preambles, and adding appropriately sized padding so that the original audio signal bit stream conforms to the specifications of IEC 60958; and a digital interface connecting The IEC burst circuit is used to output the bit stream transmitted from the IEC burst circuit.

附图说明Description of drawings

图1为IEC 60958的数据猝发(data-bursts)格式的示意图。Figure 1 is a schematic diagram of the IEC 60958 data-bursts format.

图2为公知光盘播放机结构的示意图。Fig. 2 is a schematic diagram of the structure of a known optical disc player.

图3为本发明实施例的光盘播放机结构的示意图。FIG. 3 is a schematic diagram of the structure of an optical disc player according to an embodiment of the present invention.

图4为使用本发明实施例的声频信号处理电路修正位流的流程图。FIG. 4 is a flow chart of modifying a bit stream using an audio signal processing circuit according to an embodiment of the present invention.

图5为使用本发明实施例的声频信号处理电路改变解码/扩大机装置的解码方式的流程图。FIG. 5 is a flow chart of changing the decoding method of the decoder/amplifier device using the audio signal processing circuit of the embodiment of the present invention.

图6为使用本发明实施例的声频信号处理电路检查位流错误的示意图。FIG. 6 is a schematic diagram of checking bit stream errors using an audio signal processing circuit according to an embodiment of the present invention.

附图符号说明Description of reference symbols

10公知声频信号处理电路        12分析器10 Known audio signal processing circuit 12 Analyzer

14位流缓冲器                  16声频信号处理器14-bit stream buffer 16 audio signal processors

18第二缓冲器                  20数字/模拟转换器18 second buffer 20 digital/analog converter

22IEC猝发电路                 24数字接口22IEC burst circuit 24 digital interface

26光盘片                      28解码/扩大机装置26 discs 28 decoder/amplifier device

30本发明实施例的声频信号处理电路30 The audio signal processing circuit of the embodiment of the present invention

32声频信号处理器              34解码电路32 audio signal processor 34 decoding circuit

36位流修复电路                38第一缓冲器36-bit stream repair circuit 38 first buffer

具体实施方式Detailed ways

请参考图3,图3为本发明一较佳实施例中,光盘播放机结构的示意图。为方便说明,图3与图1中相同的元件有相同的功能并且使用相同的标号。声频信号处理电路30包含一分析器12,一位流缓冲器14,一声频信号处理器32,一第二缓冲器18,一数字/模拟转换器20,一第一缓冲器38,一IEC猝发电路22,以及一数字接口24。声频信号处理器32包含一解码电路34以及一位流修复电路36。光盘片26置入声频信号处理电路30后,分析器12会读出光盘片26中的数字数据并暂存于位流缓冲器14,接着声频信号处理器32的解码电路34会将存储于位流缓冲器14中的数字数据解码成为脉冲码调制编码,并将解码后的脉冲码调制编码暂存于第二缓冲器18,最后由数字/模拟转换器20将存储于第二缓冲器18的脉冲码调制编码转换成模拟讯号作为输出。本实施例声频信号处理电路30同样也提供一般的解码程序来播放光盘片26中的数字声频信号数据,但与公知技术不同的是,当光盘播放器连接解码/扩大机装置28时,声频信号处理电路30先使用声频信号处理器32的位流修复电路36来检查、并修复存储于位流缓冲器14中的数字数据,并将通过检查、或是修复完成的位流修复电路36检查的数据暂存于第一缓冲器38中,再以IEC猝发电路22整理数字声频信号数据的格式、使其成为IEC 60958的规格后,传送至数字接口24输出。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of the structure of an optical disc player in a preferred embodiment of the present invention. For convenience of description, the same elements in FIG. 3 and FIG. 1 have the same functions and use the same reference numerals. The audio signal processing circuit 30 includes an analyzer 12, a bit stream buffer 14, an audio signal processor 32, a second buffer 18, a digital/analog converter 20, a first buffer 38, an IEC burst circuit 22, and a digital interface 24. The audio signal processor 32 includes a decoding circuit 34 and a bit stream restoration circuit 36 . After the optical disc 26 is inserted into the audio signal processing circuit 30, the analyzer 12 will read out the digital data in the optical disc 26 and temporarily store it in the bit stream buffer 14, and then the decoding circuit 34 of the audio signal processor 32 will store the digital data stored in the bit stream buffer 14. The digital data in the stream buffer 14 is decoded into a pulse code modulation code, and the decoded pulse code modulation code is temporarily stored in the second buffer 18, and finally the digital/analog converter 20 stores the code in the second buffer 18 The pulse code modulation code is converted into an analog signal as an output. The audio signal processing circuit 30 of this embodiment also provides a general decoding program to play the digital audio signal data in the optical disc 26, but unlike the known technology, when the optical disc player is connected to the decoder/amplifier device 28, the audio signal The processing circuit 30 first uses the bit stream repair circuit 36 of the audio signal processor 32 to check and repair the digital data stored in the bit stream buffer 14, and checks or repairs the completed bit stream repair circuit 36. The data is temporarily stored in the first buffer 38, and then the format of the digital audio signal data is arranged by the IEC burst circuit 22 to make it conform to the IEC 60958 standard, and then sent to the digital interface 24 for output.

请参考图4,图4为本实施例声频信号处理电路30修正位流的流程图。存储在位流缓冲器14中的每一批数据前面都会有同步字来作为每一批数据的分隔,当数据内容没有发生错误而只是产生了位移、导致其格式未能完全符合数字声频信号规格要求时,如果没有去检查每一批数据的同步字就直接将数据做格式转换以及输出,可能会使解码/扩大机装置28发生解码错误而产生爆音。例如对于MPEG声频信号而言,同步字为指定的位组,其值为0xfff,为防止产生上述因位移所产生的错误,声频信号处理电路30在将数据由位流缓冲器14传送至IEC猝发电路22前,会先使用声频信号处理器32的位流修复电路36来检查数据,再将修正后的数据暂存于第一缓冲器38,尔后才做格式转换以及输出。Please refer to FIG. 4 . FIG. 4 is a flow chart of modifying the bit stream by the audio signal processing circuit 30 of the present embodiment. Before each batch of data stored in the bit stream buffer 14, there will be a sync word as the separation of each batch of data. When there is no error in the data content but only a displacement, the format cannot fully comply with the digital audio signal specification. When required, if the data is directly format-converted and output without checking the sync word of each batch of data, it may cause a decoding error in the decoder/amplifier device 28 and produce popping sounds. For example, for the MPEG audio signal, the sync word is a designated bit group, and its value is 0xfff. In order to prevent the above-mentioned errors caused by the displacement, the audio signal processing circuit 30 transmits the data to the IEC burst by the bit stream buffer 14. Before the circuit 22, the bit stream repair circuit 36 of the audio signal processor 32 is used to check the data, and then the corrected data is temporarily stored in the first buffer 38, and then the format is converted and output.

检查的步骤如下:The steps to check are as follows:

步骤110:找出位流缓冲器14中的同步字,并设定指标sft=0,进行步骤120;Step 110: find out the synchronization word in the bit stream buffer 14, and set the index sft=0, and proceed to step 120;

步骤120:检查同步字是否为指定的位组,是则进行步骤130,否则进行步骤140;Step 120: check whether the synchronous word is a designated bit group, if yes, proceed to step 130, otherwise proceed to step 140;

步骤130:将位流缓冲器14中的位流复制到第一缓冲器38并偏移sft个位,结束此位流检查,由步骤110开始,进行下一个位流的检查;Step 130: copy the bit stream in the bit stream buffer 14 to the first buffer 38 and offset sft bits, end this bit stream inspection, start from step 110, and carry out the inspection of the next bit stream;

步骤140:设定指标sft=sft+1,表示检查出一个位的偏移量,进行步骤150;Step 140: Set the index sft=sft+1, indicating that the offset of one bit has been checked, and proceed to step 150;

步骤150:将同步位左移一个位后,最高位舍去,并补进一个最低位,回到步骤120。Step 150: After the synchronization bit is shifted to the left by one bit, the highest bit is discarded, and a lowest bit is added, and the process returns to step 120.

位流在经过上述步骤处理后,可消除不正确的位移,经过声频信号处理器32的位流修复电路36的检查后的位流暂存于第一缓冲器38,最后使用IEC猝发电路22整理数字声频信号数据的格式后经由数字接口24传输至解码/扩大机装置28。如此一来就可以增加声频信号处理电路30及解码/扩大机装置28之间的相容性。After the bit stream is processed through the above steps, the incorrect displacement can be eliminated, and the bit stream after being checked by the bit stream repair circuit 36 of the audio signal processor 32 is temporarily stored in the first buffer 38, and finally the IEC burst circuit 22 is used to sort it out The format of the digital audio signal data is then transmitted to the decoder/amplifier device 28 via the digital interface 24 . In this way, the compatibility between the audio signal processing circuit 30 and the decoder/amplifier device 28 can be increased.

请参考图5,图5为使用本发明第二实施例中,声频信号处理电路30改变解码/扩大机装置28的解码方式的流程图。在某些情形下,可能因为解码/扩大机装置28的设计不良,造成无法正确地对由声频信号处理电路30所传来的数据作解码,这时候声频信号处理电路30便可利用声频信号处理器32的位流修复电路36来改变由光盘片26中读出的数据内容,使得解码/扩大机装置28能够正常的运作。例如在MPEG声频信号中,有一个2位的字段(field)称为模式(mode),模式字段记录着该声频信号的播放效果,通常可分为单声(mono)、双声(dual mono)以及立体声(stereo)三种模式,其中单声代表只有一个声道有声音,双声和立体声则是两个声道播放不同的声音,使声音有立体感。部分解码/扩大机装置28无法正确辨识双声模式,因此该些解码/扩大机装置28虽然可以正确地以单声道播放单声模式,以双声道播放立体声模式,但是当模式字段为双声时,却往往以单声道来播放,使用者很容易感觉到光盘播放机与该解码/扩大机装置28可能有相容性的问题。本实施例中的声频信号处理电路30可以使用声频信号处理器32的位流修复电路36将来自光盘片26数据中的模式字段由双声改成立体声,如此一来,这些解码/扩大机装置28就能以双声道播放双声的光盘片26数据。由于绝大部分的解码/扩大机装置28都可以正确辨识双声道模式,因此经由本实施例的数字声频信号处理,本光盘播放机与各式解码/扩大机装置28之间的相容性就获得了改善。声频信号处理器32的位流修复电路36改变模式字段的步骤如下:Please refer to FIG. 5 . FIG. 5 is a flow chart of the audio signal processing circuit 30 changing the decoding mode of the decoding/amplifying device 28 according to the second embodiment of the present invention. In some cases, the data sent by the audio signal processing circuit 30 cannot be correctly decoded due to poor design of the decoder/amplifier device 28. At this time, the audio signal processing circuit 30 can use the audio signal processing The bit stream repair circuit 36 of the device 32 is used to change the content of the data read from the optical disc 26, so that the decoder/enlarger device 28 can operate normally. For example, in an MPEG audio signal, there is a 2-bit field (field) called mode (mode), and the mode field records the playback effect of the audio signal, which can usually be divided into mono, dual mono and Stereo (stereo) three modes, where mono means only one channel has sound, and dual and stereo means that two channels play different sounds, making the sound stereoscopic. Some decoding/enlarging machine devices 28 cannot correctly identify the dual-sound mode, so although these decoding/enlarging machine devices 28 can correctly play the monophonic mode with mono and play the stereo mode with two channels, when the mode field is dual-sound , but it is often played in mono, the user can easily feel that there may be a compatibility problem between the CD player and the decoder/amplifier device 28. The audio signal processing circuit 30 in this embodiment can use the bit stream restoration circuit 36 of the audio signal processor 32 to change the mode field in the data from the optical disc 26 from dual sound to stereo sound, so that these decoding/amplifier devices 28 Just can play the CD 26 data of double sound with double sound. Since most of the decoder/amplifier devices 28 can correctly identify the two-channel mode, the compatibility between the CD player and various decoder/amplifier devices 28 can be improved through the digital audio signal processing of this embodiment. improved. The steps that the bit stream restoration circuit 36 of the audio signal processor 32 changes the mode field are as follows:

步骤210:找出位流缓冲器14中数据位流的同步字,将同步字复制到第一缓冲器38中;Step 210: find out the synchronization word of the data bit stream in the bit stream buffer 14, and copy the synchronization word into the first buffer 38;

步骤220:撷取位流直到找到模式的字段,将由位流缓冲器14取得的数据存储于第一缓冲器38;Step 220: Retrieve the bit stream until the field of the mode is found, and store the data obtained by the bit stream buffer 14 in the first buffer 38;

步骤230:分析来自位流缓冲器14中模式字段的数据;Step 230: analyzing the data from the mode field in the bitstream buffer 14;

步骤240:改变原来的模式成为新的模式,将新的模式数据存储于第一缓冲器38中;Step 240: changing the original pattern into a new pattern, and storing the new pattern data in the first buffer 38;

步骤250:撷取剩余的位流直到位流结束,将由位流缓冲器14取得的数据存储于第一缓冲器38。Step 250 : Retrieve the remaining bit stream until the end of the bit stream, and store the data obtained from the bit stream buffer 14 in the first buffer 38 .

除了更改模式字段之外,声频信号处理器32的位流修复电路36也可以用在版权的管理上,一般的版权可分为不可复制(no copy)、可复制(copyalways)以及可复制一次(copy once)。当光盘片26的版权字段为不可复制时,光盘片26仅能用来读取播放。当光盘片26的版权字段为可复制时,则光盘片26可被复制使用。若是光盘片26的版权字段为可复制一次时,则在第一次复制使用之后,声频信号处理器32的位流修复电路36就会将版权字段更改成不可复制。In addition to changing the mode field, the bit stream repair circuit 36 of the audio signal processor 32 can also be used in copyright management. General copyrights can be divided into non-copyable (no copy), copyable (copyalways) and copyable once ( copy once). When the copyright field of the optical disc 26 is non-copyable, the optical disc 26 can only be used for reading and playing. When the copyright field of the optical disc 26 is copyable, the optical disc 26 can be copied. If the copyright field of the optical disc 26 can be copied once, the bit stream repair circuit 36 of the audio signal processor 32 will change the copyright field to non-copyable after the first copy.

请参考图6,图6为本发明第三实施例中,声频信号处理电路30检查位流错误的示意图。声频信号处理器32的位流修复电路36的另一项功能就是检查数据位流中是否含有错误,声频信号处理电路30使用分析器12将光盘片26中的数据读出暂存于位流缓冲器14后,位流修复电路36就会对其中的数据位流中的每个字段作检查,如图6所示,首先找出位流的同步字,接着逐项检查首标(header)、附属信息(side information)、尺度因子(scale factor)、声频信号样本(audio sample)、以及补充数据(ancillary data)等字段,当检查出任何一个字段的数据内容含有错误时,位流修复电路36会尝试修复,若修复成功后就将数据暂存于第一缓冲器38中,接着继续检查下一个字段,若无法修复成功,则舍弃这批数据位流而开始下一批数据位流的检查,换句话说,位流修复电路36不会让任何含有错误的数据通过,因为对于解码/扩大机装置28而言、以及考虑到使用者的聆听感受,数据遗失所造成的无声要比数据错误所造成的爆音对声音品质的影响来得轻微的多。Please refer to FIG. 6 . FIG. 6 is a schematic diagram of the audio signal processing circuit 30 checking bit stream errors in the third embodiment of the present invention. Another function of the bit stream repair circuit 36 of the audio signal processor 32 is to check whether there is an error in the data bit stream, and the audio signal processing circuit 30 uses the analyzer 12 to read out the data in the optical disc 26 and temporarily store it in the bit stream buffer After the device 14, the bit stream repairing circuit 36 will check each field in the data bit stream wherein, as shown in Figure 6, first find out the synchronization word of the bit stream, then check the header (header), item by item. Auxiliary information (side information), scale factor (scale factor), audio signal sample (audio sample), and supplementary data (ancillary data) and other fields, when checking out that the data content of any field contains errors, the bit stream repair circuit 36 It will try to repair, if the repair is successful, the data will be temporarily stored in the first buffer 38, and then continue to check the next field, if it cannot be repaired successfully, then abandon this batch of data bit streams and start the inspection of the next batch of data bit streams In other words, the bit stream repair circuit 36 will not pass any data containing errors, because for the decoder/amplifier device 28, and considering the user's listening experience, the silence caused by the loss of data is more important than the error of the data The resulting pops have a much lesser impact on the sound quality.

由上述可知,本发明声频信号处理电路30除了提供一般的解码程序来播放光盘片26中的数字数据外,并且在声频信号处理器32中加入位流修复电路36,用来处理暂存于位流缓冲器14中的数字数据,包含修正位流的位移,修改位流中的数据内容,检查位流中的数据内容并尝试修复等功能,位流缓冲器14中的数据经过声频信号处理器32的位流修复电路36处理后暂存于第一缓冲器38,再由IEC猝发电路22加入猝发前同步码成为IEC 60958的规格,通过数字接口24将数据传输至解码/扩大机装置28,如此可增加声频信号处理电路30及解码/扩大机装置28之间的相容性。As can be seen from the above, the audio signal processing circuit 30 of the present invention not only provides a general decoding program to play the digital data in the optical disc 26, but also adds a bit stream restoration circuit 36 in the audio signal processor 32 to process the data temporarily stored in the bit stream. The digital data in the stream buffer 14 includes functions such as modifying the displacement of the bit stream, modifying the data content in the bit stream, checking the data content in the bit stream and trying to repair it, and the data in the bit stream buffer 14 passes through the audio signal processor The bit stream repair circuit 36 of 32 is temporarily stored in the first buffer 38 after processing, and then the burst preamble is added by the IEC burst circuit 22 to become the specification of IEC 60958, and the data is transmitted to the decoder/amplifier device 28 through the digital interface 24, This increases the compatibility between the audio signal processing circuit 30 and the decoder/amplifier device 28 .

与公知技术相比较,公知声频信号处理电路在使用数字接口来连接至解码/扩大机装置时,直接使用IEC猝发电路将存储于位流缓冲器的数字数据转换成为IEC 60958的规格,接着就由数字接口输出至解码/扩大机装置,由于IEC猝发电路并未检查存储于位流缓冲器中数字数据的内容,造成含有错误、或不完全符合规格的数据也被传送至解码/扩大机装置,导致解码/扩大机装置无法解码或产生爆音的现象。本发明声频信号处理电路在使用数字接口来连接至解码/扩大机装置时,会先使用声频信号处理器的位流修复电路来处理位流缓冲器中的数据并暂存于第一缓冲器,再由IEC猝发电路将存储于第一缓冲器的数据转换成为IEC 60958的规格,如此可除去含有错误的数据位流、或修正原本不完全符合规格的声频信号数据,使解码/扩大机装置可以正确的对数字声频信号数据解码,增加相容性。Compared with the known technology, the known audio signal processing circuit directly uses the IEC burst circuit to convert the digital data stored in the bit stream buffer into the IEC 60958 specification when the digital interface is used to connect to the decoder/amplifier device, and then the The digital interface is output to the decoder/amplifier device. Since the IEC burst circuit does not check the content of the digital data stored in the bit stream buffer, data that contains errors or does not fully meet the specifications is also transmitted to the decoder/amplifier device. A phenomenon that causes the decoder/amplifier device to fail to decode or produce popping sounds. When the audio signal processing circuit of the present invention uses a digital interface to connect to the decoder/amplifier device, it first uses the bit stream restoration circuit of the audio signal processor to process the data in the bit stream buffer and temporarily stores it in the first buffer, Then the IEC burst circuit converts the data stored in the first buffer into IEC 60958 specifications, so that the data bit stream containing errors can be removed, or the audio signal data that does not fully meet the specifications can be corrected, so that the decoding/amplifier device can Correctly decode digital audio signal data to increase compatibility.

以上所述仅为本发明的较佳实施例,凡依本发明权利要求书所做的等效变化与修改,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (19)

1. audio signal treatment circuit, be used for producing one second bit stream that meets a digital interface standard specification according to one first bit stream, this first bit stream has many group digital datas, and each group digital data has a plurality of fields, and this audio signal treatment circuit includes:
One bit stream buffering device is used for the numerical data of temporary this first bit stream;
One bit stream is repaired circuit, is connected in this bit stream buffering device, is used for detecting at least one field of these a plurality of fields in these many group digital datas and at least one field of revising these a plurality of fields according to a predetermined standard specification;
One first impact damper is connected in this bit stream and repairs circuit, is used for keeping in the numerical data after this bit stream is repaired circuit modification; And
One IEC burst circuit is connected in this first impact damper, is used for that those amended numerical datas are divided into a plurality of burst carrying capacity and each carrying capacity of bursting and adds the preamble of bursting, to form this second bit stream.
2. audio signal treatment circuit as claimed in claim 1 should predetermined standard specification be the MPEG audio signal wherein.
3. audio signal treatment circuit as claimed in claim 1, wherein this first bit stream is obtained by reading a CD.
4. audio signal treatment circuit as claimed in claim 1, it also includes:
One decoding circuit is connected in this bit stream buffering device, is used for the bitstream decoding that transmits by this bit stream buffering device;
One second impact damper is connected in this decoding circuit, is used for keeping in the bit stream that this decoding circuit decoding produces; And
One digital/analog converter is connected in this second impact damper, and the bit stream translation that is used for being transmitted by this second impact damper is an analog signal.
5. audio signal treatment circuit as claimed in claim 4, wherein this decoding circuit and this bit stream are repaired circuit by an audio signal processor that comprehensively is this audio signal treatment circuit.
6. audio signal treatment circuit, be used for producing one second bit stream that meets a digital interface standard specification according to one first bit stream, this first bit stream has many group digital datas, each group digital data has a plurality of fields, these a plurality of fields have a synchronization character field, and this audio signal treatment circuit includes:
One bit stream buffering device is used for the numerical data of temporary this first bit stream;
One bit stream is repaired circuit, be connected in this bit stream buffering device, be used for finding out near the desired location of the synchronization character field in these many group digital datas the synchronization character in these many group digital datas and revise these many group digital datas according to the physical location of the synchronization character of having found out;
One first impact damper is connected in this bit stream and repairs circuit, is used for keeping in the numerical data after this bit stream is repaired circuit modification; And
One IEC burst circuit is connected in this first impact damper, is used for those amended numerical datas are divided into a plurality of carrying capacity and add the preamble of bursting on each bursts carrying capacity of bursting, to form this second bit stream.
7. audio signal treatment circuit as claimed in claim 6, wherein this first bit stream is obtained by reading a CD.
8. audio signal treatment circuit as claimed in claim 6, it also includes:
One decoding circuit is connected in this bit stream buffering device, is used for the bitstream decoding that transmits by this bit stream buffering device;
One second impact damper is connected in this decoding circuit, is used for keeping in the bit stream that this decoding circuit decoding produces; And
One digital/analog converter is connected in this second impact damper, and the bit stream translation that is used for being transmitted by this second impact damper is a simulating signal.
9. audio signal treatment circuit as claimed in claim 8, wherein this decoding circuit and this bit stream are repaired circuit by an audio signal processor that comprehensively is this audio signal treatment circuit.
10. one kind is used for producing according to one first bit stream the method for one second bit stream meet a digital interface standard specification, and this first bit stream has many group digital datas, and each group digital data has a plurality of fields, and this method includes:
(a) detect at least one field of these a plurality of fields in these many group digital datas and at least one field of revising these a plurality of fields according to a predetermined standard specification; And
(b) those amended numerical datas are divided into a plurality of carrying capacity and add the preamble of bursting of bursting, to form this second bit stream in each carrying capacity of bursting.
11. method as claimed in claim 10, wherein this first bit stream is obtained by reading a CD.
12. method as claimed in claim 10 should predetermined standard specification be the MPEG audio signal wherein.
13. method as claimed in claim 10, it also includes:
The decode numerical data of this first bit stream; And
With decoded digital data conversion is simulating signal.
14. method as claimed in claim 10, wherein step (a) also includes:
If have any skew in the numerical data of this first bit stream, then cast out at least one position, be to meet this predetermined standard specification with this first bit stream reparation of river.
15. method as claimed in claim 10, wherein step (a) also includes:
Change a field of set of number data in the numerical data of this first bit stream, being to meet this predetermined standard specification with this first bitstream modification.
16. method as claimed in claim 15, wherein reformed field are to be a copyright management field.
17. method as claimed in claim 15, wherein this reformed field is to be an audio signal pattern field.
18. method as claimed in claim 10, wherein step (a) also includes:
If exist in the numerical data of this first bit stream and anyly can't then give up at least one error bit, being to meet this predetermined standard specification with this first bit stream reparation according to the error bit of this predetermined standard specification reparation success.
19. method as claimed in claim 10, wherein step (a) also includes:
Revise the mistake in the field of numerical data of this first bit stream, being to meet this predetermined standard specification with this first bit stream reparation.
CNB031044980A 2003-02-18 2003-02-18 Audio signal processing circuit capable of modifying digital audio signal Expired - Fee Related CN100442375C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031044980A CN100442375C (en) 2003-02-18 2003-02-18 Audio signal processing circuit capable of modifying digital audio signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031044980A CN100442375C (en) 2003-02-18 2003-02-18 Audio signal processing circuit capable of modifying digital audio signal

Publications (2)

Publication Number Publication Date
CN1523599A CN1523599A (en) 2004-08-25
CN100442375C true CN100442375C (en) 2008-12-10

Family

ID=34282238

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031044980A Expired - Fee Related CN100442375C (en) 2003-02-18 2003-02-18 Audio signal processing circuit capable of modifying digital audio signal

Country Status (1)

Country Link
CN (1) CN100442375C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103197142B (en) * 2013-03-15 2015-02-18 清华大学 Method for simultaneously acquiring unknown frequency continuous analog signal and burst digital signal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1179870A (en) * 1995-12-07 1998-04-22 菲利浦电子有限公司 Method and device for encoding, transferring and decoding non-PCM bitstream between digital versatile disc device and multi-channel reproduction apparatus
KR20020089838A (en) * 2001-05-24 2002-11-30 주식회사 하이닉스반도체 Apparatus for contrrol of Pulse Code Modulation data and method using the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1179870A (en) * 1995-12-07 1998-04-22 菲利浦电子有限公司 Method and device for encoding, transferring and decoding non-PCM bitstream between digital versatile disc device and multi-channel reproduction apparatus
KR20020089838A (en) * 2001-05-24 2002-11-30 주식회사 하이닉스반도체 Apparatus for contrrol of Pulse Code Modulation data and method using the same

Also Published As

Publication number Publication date
CN1523599A (en) 2004-08-25

Similar Documents

Publication Publication Date Title
HK1042372B (en) Copy Protection of Digital Audio Compact Disk
KR20020007367A (en) The copy protection of digital audio compact discs
KR20000050384A (en) Caption indicating MP3 player, MP3 data format and reproduct method thereof
US20050270949A1 (en) Optical disc player and method for reproducing thereof
AU776151B2 (en) Embedding a first digital information signal into a second digital information signal for transmission via transmission medium
CN101266820B (en) Data reproduction apparatus and data reproduction method
CN100442375C (en) Audio signal processing circuit capable of modifying digital audio signal
US20030237040A1 (en) Intelligent error checking method and mechanism
US8010374B2 (en) Audio coding apparatus and audio decoding apparatus
US7149159B2 (en) Method and apparatus for editing data streams
TWI254282B (en) Processing circuit capable of modifying digital audio signals and method of processing digital audio signals in a media playback device
US7479594B2 (en) Sound data encoding apparatus and sound decoding apparatus
JP2008197199A (en) Audio encoding apparatus and audio decoding apparatus
JP2857246B2 (en) Digital audio signal recording device
JP3711630B2 (en) RECORDING DATA TRANSMITTING DEVICE, REPRODUCING DATA RECEIVING DEVICE, RECORDING / REPRODUCING DATA TRANSMITTING DEVICE, RECORDING DATA TRANSMITTING METHOD, AND REPRODUCING DATA RECEIVING METHOD
WO2003041072A1 (en) Method of and apparatus for preventing illicit copying of digital content
JP4787131B2 (en) Audio playback apparatus, audio playback method and program, audio recording apparatus, and audio recording method
CN100399464C (en) Method and apparatus for determining compact disk format
JP2008226365A (en) Audio reproduction apparatus and audio reproduction method
US20050053362A1 (en) Method of adaptively inserting karaoke information into audio signal and apparatus adopting the same, method of reproducing karaoke information from audio data and apparatus adopting the same, method of reproducing karaoke information from the audio data and apparatus adopting the same, and recording medium on which programs realizing the methods are recorded
JPH06105535B2 (en) Recording / reproducing apparatus, reproducing apparatus, recording apparatus, reproducing medium, and transmission method
KR100859089B1 (en) Subtitle file inspection device
US7023784B2 (en) Encoding method for recording data on compack disk
KR100826942B1 (en) Bit conversion method of digital audio data, decoder device performing the same and method of reproducing digital audio data
CN1460342A (en) Prevention of CD-audio piracy using sub-code channels

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081210

Termination date: 20200218

CF01 Termination of patent right due to non-payment of annual fee